I changed my upstart script to ensure both the bridge and the md0 device
(on which the LVM volume is located) are started before libvirt is
started. In my situation this makes sure all my virtual machines can be
started. However, different virtual machines can have different
dependencies on (possibly slow) hardware being available or not. Perhaps
it is a good idea to create separate upstart scripts for each virtual
machine? This way it could be ensured that the hardware a specific
virtual machine is relying on is brought up.

I fixed my problems with the following `start on' line in /etc/init
/libvirt-bin.conf:

start on runlevel [2345] and net-device-added INTERFACE="br0" and block-
device-added DEVNAME="/dev/md0"

br0 is the bridge I am using
md0 is the raid volume on which the LVM2 volumes are located, it seems 
(although I'm not 100% sure) that the block-device-added event is always fired 
after all LVM volumes on the block device are up

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/495394

Title:
  autostart almost always fails on boot time host

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to