Hardcore Linux

Anything about Ubuntu, Centos, openSuSe and Fedora

KVM guest not automatically starting at boot sequence

I don’t know but I encountered this problem using Ubuntu 12.04 as KVM host, even though I already added the guest VM in the /etc/libvirt/qemu/autostart as symlink  but during the host boot sequence it is still not automatically started (the guest machine).

Here’s a quickfix that works for me:

1. Modify the /etc/init/libvirt-bin.conf and look for the line with:

start on runlevel [2345]

2. Replace that with:

start on (runlevel [2345] and net-device-up IFACE=br0)

3. Done.

Please note that use your current bridge network device, in my example it is br0.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: