LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-17-2021, 09:33 AM   #31
mredc
Member
 
Registered: May 2016
Location: USA
Distribution: Debian, Ubuntu
Posts: 73

Rep: Reputation: Disabled

So are you saying that if you don't turn your networking off on your host that your virtual machines in virt-manager do start as expected?
 
Old 10-17-2021, 09:38 AM   #32
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 mredc View Post
So are you saying that if you don't turn your networking off on your host that your virtual machines in virt-manager do start as expected?
They will start with my host internet on but they won't have internet access unless I run
Code:
sudo adduser $USER libvirt && sudo reboot
I have 'nmcli networking off' mapped to an alias that I run whenever I want to do a lot of things that don't require me being connected to the Internet.
 
Old 10-17-2021, 10:05 AM   #33
mredc
Member
 
Registered: May 2016
Location: USA
Distribution: Debian, Ubuntu
Posts: 73

Rep: Reputation: Disabled
To be honest and this is just me thinking out loud. You should only have to run that adduser command once unless it pertains to a different user each time.

But are you saying that you turn on your host internet, run those two commands to add a user to the libvirt group and reboot your host? This then allows you to start your virtual machines which obtain and maintain a persistent network connection?
 
Old 10-17-2021, 11:08 AM   #34
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 mredc View Post
To be honest and this is just me thinking out loud. You should only have to run that adduser command once unless it pertains to a different user each time.

But are you saying that you turn on your host internet, run those two commands to add a user to the libvirt group and reboot your host? This then allows you to start your virtual machines which obtain and maintain a persistent network connection?
It doesn't matter if my networking is enabled or not when I run those commands. After running them, rebooting, enabling my host networking/internet connection, then I can access Internet on the virt-man VM's for that session. If I shutdown or reboot as normal, the Internet is again gone for the virt-man VMs. It's a mystery.
 
Old 11-07-2021, 08:06 AM   #35
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 just tried 'sudo adduser $USER libvirt && sudo reboot' and now that doesn't even get the internet working inside virt-man.
 
Old 11-08-2021, 01:34 AM   #36
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 tried that command again. This time I had the virt-man program opened (no vm open). Maybe virt-man needs to be launched and then running that temporary fix command for it to work. 💡

Update: I can confirm this. I did the temp fix command again and forgot to open Virt Man first, the same thing happened.

Last edited by linustalman; 11-14-2021 at 09:03 AM.
 
Old 12-09-2021, 10:07 AM   #37
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've since installed Debian 11 on a new PC and new drive. At first all seemed fine -- now the issue back. Argh!

Last edited by linustalman; 12-09-2021 at 10:14 AM.
 
Old 12-09-2021, 11:18 AM   #38
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

The usual temporary fix applies like before.

This must narrow down the cause. My old PC had an Intel CPU, this current PC has an AMD CPU.
 
Old 12-09-2021, 01:19 PM   #39
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 never have this issue with AQEMU or GNOME Boxes - only virt-man. I wonder if there's an old config folder in my hold directory that's causing the issue? Or perhaps something to do with my wireless USB dongle?

Last edited by linustalman; 12-09-2021 at 01:20 PM.
 
Old 12-11-2021, 02:21 AM   #40
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

This isn't too bad now since I recently moved from a HDD to SSD - the bootups are very quick.

I'd still love to know what could be causing this.

Last edited by linustalman; 12-11-2021 at 11:07 AM.
 
Old 01-09-2022, 07:24 AM   #41
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 ran this:

Code:
sudo systemctl status libvirtd.service
I noticed this in one of the output lines:
Code:
no servers found in /etc/resolv.conf, will retry
 
Old 01-22-2022, 07:41 PM   #42
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 60

Rep: Reputation: 37
You need to install iptables for it to work without having to manually keep setting it each time, its a dependency, and from reading your posts, you haven't actually added this;

sudo apt-get install iptables

I had this issue myself with KVM and scratched my head for while


More information on virtual networking here;

https://wiki.libvirt.org/page/VirtualNetworking
 
Old 01-23-2022, 01:26 AM   #43
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 Fearless Fred View Post
You need to install iptables for it to work without having to manually keep setting it each time, its a dependency, and from reading your posts, you haven't actually added this;

sudo apt-get install iptables

I had this issue myself with KVM and scratched my head for while


More information on virtual networking here;

https://wiki.libvirt.org/page/VirtualNetworking
I was hoping that would fix it. I went to install iptables and saw that it was already installed.
 
Old 01-26-2022, 06:08 AM   #44
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 60

Rep: Reputation: 37
no servers found in /etc/resolv.conf, will retry


I use libvirt and in that file is just the nameservers IP, i.e. my router IPv4 and IPv6 and the 'domain'..(only router IP listed below of course)


# Generated by NetworkManager
nameserver 192.168.1.1


Do you use virt-manager or the CLI to admin your VM's?
virt-manager does give helpful error messages..

Last edited by Fearless Fred; 01-26-2022 at 06:10 AM.
 
Old 01-26-2022, 06:34 AM   #45
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 Fearless Fred View Post
no servers found in /etc/resolv.conf, will retry


I use libvirt and in that file is just the nameservers IP, i.e. my router IPv4 and IPv6 and the 'domain'..(only router IP listed below of course)


# Generated by NetworkManager
nameserver 192.168.1.1


Do you use virt-manager or the CLI to admin your VM's?
virt-manager does give helpful error messages..
Hi Fred.

In /etc/resolv.conf, I have:

Code:
# Generated by NetworkManager
search fritz.box
nameserver 192.168.178.1
I always launch just:

Code:
virt-manager
 
  


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 08:59 PM.

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