Hi,

thanks for the report.  I assume you have libvirt set up to start these VMs
automatically, and what you are asking is for the startup scripts to wait for
two minutes after boot before starting the VMs?

There are three ways I would consider going about this.

One is to simply mark the VMs to not start up automatically.  You could start
them manually, or create another job in /etc/init/ which waits 2 minutes and
then starts the VMS.

Another is to edit /etc/init/libvirt-bin.conf to make libvirt wait to start up
altogether.  If the aoe mounts have their own upstart job which works
correctly, then you can make it depend on that, or you can simply add a
'prestart exec sleep 3m' to amke it wait 3 minutes until after boot.  You
might want to talk to upstart folks for the best way to do this.

Another is to patch libvirt to add the capability to wait to auto-start VMs.
You can discuss this with upstream at libvir-l...@redhat.com.

The best solution is the second one, particularly if there is an aoe upstart
job which emits a completion event when the mounts are available.

-- 
starting kvm guests with libvirt on virthost startup doesn't wait till all 
dependencies are available
https://bugs.launchpad.net/bugs/595388
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.

-- 
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