Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xen vm autostart @boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Thu Apr 28, 2016 6:43 pm    Post subject: Xen vm autostart @boot Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3131

PostPosted: Thu Apr 28, 2016 7:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Thu Apr 28, 2016 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
twalter
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 103
Location: Churchill, Canada

PostPosted: Fri May 06, 2016 5:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum