LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-17-2021, 02:21 PM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Host PC has internet connection but virt-man VMs don't.


Hi.

It did work before.

Does anyone know a fix?

Thanks.

Note: I should have mentioned earlier that I upgraded from Debian 10 to 11 instead of doing a clean install. Perhaps that's a cause?

Last edited by linustalman; 09-20-2021 at 01:14 AM.
 
Old 09-17-2021, 07:27 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you need to create a new bridge

I am on opensuse ( KDE) and not on Debian so as to just how you go about it ?
i do not know .
 
Old 09-18-2021, 04:03 AM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I also use AQEMU and have a FreeBSD VM. It can connect to the internet without issue.
 
Old 09-18-2021, 04:04 AM   #4
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by John VV View Post
you need to create a new bridge

I am on opensuse ( KDE) and not on Debian so as to just how you go about it ?
i do not know .
Hi John. I never had to create a bridge [AFAIR] when I was on Debian 10.
 
Old 09-18-2021, 07:31 AM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
These steps did get internet working again in virt-man, before. I tried them again and it works again.

Code:
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils libguestfs-tools genisoimage virtinst libosinfo-bin virt-manager
Code:
sudo adduser $USER libvirt
sudo adduser $USER libvirt-qemu
sudo reboot
I just hope something doesn't again stop the internet working in VM.
 
Old 09-19-2021, 12:42 AM   #6
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Upon bootup this morn, the internet is again not working in virt-man. :-(
 
Old 09-19-2021, 01:05 AM   #7
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Some lines from bootup (perhaps useful?):

Sep 18 12:44:52 mypcname NetworkManager[887]: <info> [1631965492.1979] device (lo): carrier: link connected
Sep 18 12:45:10 mypcname kernel: r8169 0000:03:00.0: firmware: failed to load rtl_nic/rtl8168f-1.fw (-2)
Sep 18 12:45:10 mypcname kernel: firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
Sep 18 12:45:10 mypcname kernel: r8169 0000:03:00.0: Direct firmware load for rtl_nic/rtl8168f-1.fw failed with error -2
Sep 18 12:45:10 mypcname kernel: r8169 0000:03:00.0: Unable to load firmware rtl_nic/rtl8168f-1.fw (-2)
Sep 18 12:45:10 mypcname kernel: RTL8211E Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bushy_addr=r8XYZ-300:00, irq=IGNORE)
Sep 18 12:45:10 mypcname kernel: r8169 0000:03:00.0 enp3s0: Link is Down
Sep 18 12:45:10 mypcname kernel: bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
 
Old 09-20-2021, 01:13 AM   #8
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I again ran this but it's tiresome to have to reboot just to get back the internet in virt-man.

Code:
sudo adduser $USER libvirt && sudo reboot

Last edited by linustalman; 09-24-2021 at 01:25 PM.
 
Old 09-25-2021, 04:49 AM   #9
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question

It's strange. When I run just the part:

Code:
sudo adduser $USER libvirt
it always says

Code:
The user LS is already a member of libvirt.
I don't get why rebooting is even needed. 🤔

What's missing?

Perhaps my upgrade from Debian 10 to 11 caused issues with some config files?

Last edited by linustalman; 09-25-2021 at 01:16 PM.
 
Old 09-28-2021, 06:18 AM   #10
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Unhappy

I solved the virt-man issue by going to synaptic and completely removing all 'qemu' and 'virt-man' packages. Then did a reboot, then went through the virt-man setup from here: https://youtu.be/2SdSiJTGKLM

Update: The issue is back.

Last edited by linustalman; 09-29-2021 at 06:10 AM.
 
Old 10-04-2021, 08:25 AM   #11
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I can't launch a VM when networking is disabled (right click option on Network Manager system tray icon). I get this message [see image attached]. Perhaps that gives a clue?

If I re-enable networking, then I can launch the VM but must do the reboot trick mentioned earlier to actually get the internet working in the VM.

On Debian 10, I never had to have networking enabled to launch a VM - there were many times when I just wanted to do some brief task in a VM that didn't require the internet.
Attached Thumbnails
Click image for larger version

Name:	Windowshot_2021-10-04_08-11-42.png
Views:	17
Size:	38.7 KB
ID:	37370  
 
Old 10-05-2021, 08:44 AM   #12
eashleyfl
LQ Newbie
 
Registered: Nov 2004
Posts: 13

Rep: Reputation: 3
In virt-manager right click on the QEMU/KVM connection to the server, choose Details->Virtual Networks. There you can set up autostart and apply. Any running VM will see the change in the network without rebooting.
 
Old 10-05-2021, 08:47 AM   #13
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by eashleyfl View Post
In virt-manager right click on the QEMU/KVM connection to the server, choose Details->Virtual Networks. There you can set up autostart and apply. Any running VM will see the change in the network without rebooting.
Hi eashleyfl. That was already checked.
 
Old 10-08-2021, 06:23 PM   #14
mredc
Member
 
Registered: May 2016
Location: USA
Distribution: Debian, Ubuntu
Posts: 73

Rep: Reputation: Disabled
I have never had the default network enabled since I started using qemu-kvm. I chose to set the network source on the nic setting in virt-manager (host device eno1 macvtap). Could this be how your was set up? If so, could it be possible that your network adapter changed at some point? Also, I see from one of your post that your logs say that you were having some network setup problem during boot and that you may be missing some firmware. It might help to install or re-install linux-firmware.
 
Old 10-09-2021, 01:30 AM   #15
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by mredc View Post
I have never had the default network enabled since I started using qemu-kvm. I chose to set the network source on the nic setting in virt-manager (host device eno1 macvtap). Could this be how your was set up? If so, could it be possible that your network adapter changed at some point? Also, I see from one of your post that your logs say that you were having some network setup problem during boot and that you may be missing some firmware. It might help to install or re-install linux-firmware.
Hi mredc. I reinstalled all packages with a 'firmware-' search in Synaptic:

firmware-linux-free
firmware-realtek
intel-microcode
ipxe-qemu
ovmf

I'll let ye know how it fares.
 
  


Reply

Tags
internet, virt man, virt-man



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Migrate Virtualbox VMs Into KVM VMs In Linux LXer Syndicated Linux News 0 07-10-2020 01:01 AM
[URGENT] Is 'virt-install' cannot generate isolated VMs using same existing qcow2 ? donghyun Kim Linux - Virtualization and Cloud 8 10-05-2014 12:51 PM
Virt manager won't start my VMs kkroopani Linux - Virtualization and Cloud 1 10-21-2012 12:53 AM
[Tcptraceroute/Traceroute/Ping] Windows VMs & Linux VMs BiFo Linux - Networking 0 08-24-2010 02:07 PM
LXer: Using Xen With LVM-Based VMs Instead Of Image-Based VMs (Debian Etch) LXer Syndicated Linux News 0 01-14-2009 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration