Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Libvirt shuts down when networkmanager loses connection?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
acidtonic
n00b
n00b


Joined: 30 Mar 2014
Posts: 3

PostPosted: Sun Mar 30, 2014 9:33 pm    Post subject: Libvirt shuts down when networkmanager loses connection? Reply with quote

I have been trying to figure out an issue that is bothering me.

I am using VM's to run certain applications over X11 tunneling. I've defined a basic NAT network which is shared between my VM's and the host.

Yet when my workstation loses network connectivity, libvirt shuts down my guest VM's and refuses to let me restart them. Saying "Networkmanager is inactive". Once I plug in network manager gets an IP the VM's immediately start on their own again.

I looked around in the /etc/init.d/libvirt script but I see nothing tying this to networking. It's to the point where I cannot use WIFI because if the connection is lost my programs come crashing down as libvirt shuts off.

This is TOTALLY unacceptable and I'm amazed that it's a default behavior for a workstation! I'd rather my VM's lose a bit of network connectivity to the outside world instead of suspending everything.

Please help :).
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4250
Location: USA

PostPosted: Mon Mar 31, 2014 5:15 am    Post subject: Reply with quote

Curious, are you using systemd here?
Agreed that's pretty crappy behavior here...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
acidtonic
n00b
n00b


Joined: 30 Mar 2014
Posts: 3

PostPosted: Wed Apr 02, 2014 2:37 pm    Post subject: Reply with quote

This is with the default rc-init.
Code:

USE="-bindist mmx sse sse2 sse3 ssse3 sse4_1 avx avx2 ncurses ssl vnc truetype smp lm_sensors crypt bash_completion X acpi alsa udev vim-syntax dbus lock python aac a52 xv zlib networkmanager ncurses icu xinerama lvm parted device-mapper virt-network virtio consolekit policykit pam"

Code:

# rc-update
       NetworkManager |      default                 
             bootmisc | boot                         
           consolekit |      default                 
                 dbus |      default                 
                devfs |                       sysinit
                dmesg |                       sysinit
                 fsck | boot                         
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
             libvirtd | boot default                 
                local |      default                 
           localmount | boot                         
             loopback | boot                         
                  lvm | boot                         
              metalog |      default                 
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
             netmount |      default                 
               procfs | boot                         
                 root | boot                         
            savecache |              shutdown       
                 sshd |      default                 
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |      default          sysinit
           udev-mount |                       sysinit
              urandom | boot 
Back to top
View user's profile Send private message
DirectXMan12
n00b
n00b


Joined: 20 Aug 2011
Posts: 5

PostPosted: Thu Jul 24, 2014 11:44 pm    Post subject: Reply with quote

I've been having this problem, and I finally tracked it down.
Check your /etc/conf.d/libvirtd file -- there's a line that adds "net" as a custom dependency, like you would in /etc/rc.conf
You can just comment that out, and you should be all set.

Best Regards,
Solly (directxman12)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum