Eric
2005-Oct-16 17:55 UTC
[Xen-users] Supported/normal way of creating domains at start-up?
Hi! I''m a new xen user, and I''ve searched the docs and list archives, but I can''t seem to find the "official" or recommended way for starting domUs at machine start-up and shutting them down (safely) at shutdown. What do people normally do ? Thanks, ...Eric _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Oct-16 18:07 UTC
Re: [Xen-users] Supported/normal way of creating domains at start-up?
On 2005-10-16 19:55, Eric wrote:> Hi! I''m a new xen user, and I''ve searched the docs and list archives, > but I can''t seem to find the "official" or recommended way for starting > domUs at machine start-up and shutting them down (safely) at > shutdown. What do people normally do ?put a symlink to the xen domU config files into /etc/xen/auto/ Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tom Brown
2005-Oct-16 18:24 UTC
Re: [Xen-users] Supported/normal way of creating domains at start-up?
On Sun, 16 Oct 2005, Matus Harvan wrote:> On 2005-10-16 19:55, Eric wrote: > > Hi! I''m a new xen user, and I''ve searched the docs and list archives, > > but I can''t seem to find the "official" or recommended way for starting > > domUs at machine start-up and shutting them down (safely) at > > shutdown. What do people normally do ? > > put a symlink to the xen domU config files into /etc/xen/auto/that covers startup, but is there anything in xen to send a signal to init in the domUs to request a shutdown? -Tom _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Oct-16 18:31 UTC
Re: [Xen-users] Supported/normal way of creating domains at start-up?
On 2005-10-16 20:24, Tom Brown wrote:> that covers startup, but is there anything in xen to send a signal to init > in the domUs to request a shutdown?from /etc/init.d/xendomains: stop() { # NB. this shuts down ALL Xen domains (politely), not just the ones in # AUTODIR/* # This is because it''s easier to do ;-) but arguably if this script is run # on system shutdown then it''s also the right thing to do. echo -n $"Shutting down all Xen domains:" xm shutdown --all --wait --halt RETVAL=$? [ $RETVAL -eq 0 ] && rm -f $LOCKFILE on_fn_exit } So all domUs are shutdown when you call /etc/init.d/xendomains stop. Sure, you could change it to shutdown only domUs in /etc/xen/auto/. Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2005-Oct-17 18:18 UTC
Re: [Xen-users] Supported/normal way of creating domains at start-up?
On Sunday 16 October 2005 19:24, Tom Brown wrote:> On Sun, 16 Oct 2005, Matus Harvan wrote: > > On 2005-10-16 19:55, Eric wrote: > > > Hi! I''m a new xen user, and I''ve searched the docs and list archives, > > > but I can''t seem to find the "official" or recommended way for starting > > > domUs at machine start-up and shutting them down (safely) at > > > shutdown. What do people normally do ? > > > > put a symlink to the xen domU config files into /etc/xen/auto/ > > that covers startup, but is there anything in xen to send a signal to init > in the domUs to request a shutdown?As Matus Harvan also mentioned, the init script should handle this too. It sends a shutdown request to each domain, which should shut itself down politely and then go away. Note that "rude" or malicious domains can hold up dom0 arbitrarily long by not shutting themselves down on request... You''ll want to bear this in mind: you must a reasonable confidence that the domains won''t do this all the time, or at least that you''ll notice and come and kill them. Cheers, Mark> > -Tom > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users