View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3595
|
Posted: Thu Apr 28, 2016 6:43 pm Post subject: Xen vm autostart @boot |
|
|
Since I switched from xm to xl I've been starting my all my VM manually.
Since some of those are backbones to others, it would be of some interest to start the formers automatically.
I don't know how to manage this... Any ideas?
Thks 4 ur attention. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3131
|
Posted: Thu Apr 28, 2016 7:05 pm Post subject: |
|
|
I don't know xen, but... Is there any reason not to create for them init scripts at host and make them depend on each other?
If you have any sort of heartbeat or OS monitoring, you can use it to delay the dependent machine until it's dependency is ready. If not, you can still poll it's network for service availability, or launch nc in listen mode and wait for an incoming connection (init script in guest) that would tell you the VM is ready, or use vmware-style heartbeat (e.g. qemu supports virtio device for guest-host interface), and finally set avahi and connect to dbus, or partially reimplement it without dbus and wait for events (it's much easier than is seems at the first glance) |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3595
|
Posted: Thu Apr 28, 2016 8:04 pm Post subject: |
|
|
Yes you're right.
Actually I have implement it in /etc/local.d/local.start, but back in the old days (former xend stack instead of current xl stack) xen had a internal entry point for this kind of behavior. I'm just wondering if it pertains whithin the xl stack...
Thks 4 ur attention, interest & support |
|
Back to top |
|
|
twalter Tux's lil' helper
Joined: 07 Apr 2004 Posts: 103 Location: Churchill, Canada
|
Posted: Fri May 06, 2016 5:35 pm Post subject: |
|
|
Link the domU's in /etc/xen/machines into /etc/xen/auto and the xendomains script in init.d should start them up. |
|
Back to top |
|
|
|