virt-manager / libvirtd - boot up the VMs in a specific order
Is there a way in virt-manager / libvirtd (or hand edit some file) to
specify the boot order of the VMs that are configured as "Start at
boot time"
My setup is as follows:
Host OS: Debian Wheezy amd64 stock kernel (3.2), virt-manager v0.9.1
Guest VMs: A bunch of Linux based servers - CentOS 6, Debian 6/7,
Ubuntu 12.04 (all amd64 with stock kernel). All of them defined using
virt-manager GUI interface.
Among the VMs one is a DB server and a few app servers that connect
to the DB server.
Similar to the init script naming convention in /etc/rc?.d (S00, S99
etc.), I have named the VMs like 00-<VM_name>, 01-<VM_name> etc.
The DB server name starting with a 00 prefix and the app servers with
a 99 prefix, with the expectation that the DB server will boot first
and be ready for connection requests coming from the app servers when
they boot up. Additionally, in the app servers I have added up to 45
sec time out in grub.
When the host system boots up, I find the applications (in the app
server) complaining about their respective connections to the backend
database (to the DB server). I have to restart the db connections
manually and then the applications come up fine.
I have searched but found things related to VMWare but not for virt-manager
Any pointers / suggestions much appreciated.
Thanks,
--
Arun Khan
Sent from my non-iphone/non-android device
Reply to: