Skip to contentSkip to conversation

auto startup and shutdown of domains

DISCUSSION James Harper 3 participants 5 messages Aug 5, 2004

lore
Share & tools
lore
#0 lore raw

How do I get domains to automatically start up at boot time (or when xend start) and shutdown when xend is killed? There used to be a xendomains script which I never tried but it appears to be gone now, and there is a /etc/xen/auto folder, but that doesn't seem to do anything either.

any ideas?

thanks

James

#1 lore raw
Quoted 1 line

How do I get domains to automatically start up at boot time (or when xend start) and shutdown when xend is killed? There used to be a xendomains script which I never tried but it appears to be gone now, and there is a /etc/xen/auto folder, but that doesn't seem to do anything either.

I'm not sure what the intended use of 'auto' is, but it would seem to make sense to have xend check that all the VM configs specified in /etc/xen/auto are running whenever it starts. Of course, these configs would have to not have any input parameters (e.g. vmid).

I think I'd prefer to add another level of directory hierachy below /etc/xen to separate the domain configs from the other config files and scripts, perhaps an /etc/xen/xmconfigs

I'm then inclined to change the default config name from /etc/xen/xmdefaults to /etc/xen/xmconfigs/defconfig since 'defaults' no longer really makes sense for the way 99% of people use 'xm'. Rather than shipping a defconfig in the repo (which always needs tailoring), we'll supply an example1 and example2. The former will be a very simple config without any input variables, and the 2nd will show a more complex example.

Any objections?

BTW: For those of you that have been following the Linux 2.6.7 port, it's actually quite stable now as both a dom0 and unprivileged kernel -- I've been running LTP (Linux Test Project) and a bunch of other tests for sometime now without problems. There are a number of optimizations we need to turn on, but performance isn't too bad. Expect 2.0-rc1 RSN...

Best,
Ian

 -=- MIME -=- 

--_D631781F-9CAF-4E16-A6A9-F59D7CE3605F_

Content-Type: text/plain;
	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable

How do I get domains to automatically start up at boot time (or when xend s= tart) and shutdown when xend is killed? There used to be a xendomains scrip= t which I never tried but it appears to be gone now, and there is a /etc/xe= n/auto folder, but that doesn't seem to do anything either.

any ideas?

thanks

James

--_D631781F-9CAF-4E16-A6A9-F59D7CE3605F_

Content-Type: text/html;
	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#000000 size=3D2>How do I get domains to au= tomatically start up at boot time (or when xend start) and shutdown when xe= nd is killed? There used to be a xendomains script which I never tried but = it appears to be gone now, and there is a /etc/xen/auto folder, but that do= esn't seem to do anything either.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>any ideas?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>James</FONT></DIV></BODY></HTML>

--_D631781F-9CAF-4E16-A6A9-F59D7CE3605F_--

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com

#2 lore raw

2.6

what's involved in building 2.6? From the looks of the makefile, 'make world' followed by 'make linux26' then 'make install' should do it. Does that sound right?

thanks

James

From: Ian Pratt
Sent: Thu 5/08/2004 1:15 PM
To: James Harper
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [Xen-devel] auto startup and shutdown of domains

BTW: For those of you that have been following the Linux 2.6.7 port, it's actually quite stable now as both a dom0 and unprivileged kernel -- I've been running LTP (Linux Test Project) and a bunch of other tests for sometime now without problems. There are a number of optimizations we need to turn on, but performance isn't too bad. Expect 2.0-rc1 RSN...

#3 lore raw

Re: 2.6

Quoted 2 lines

what's involved in building 2.6? From the looks of the makefile, 'make world' followed by 'make linux26' then 'make install' should do it. Does that sound right?

Yep, that should work. We haven't added it to 'make world' yet as it's still in testing. We've been holding off releasing 2.0 until we're totally happy with it.

I know of at least one remaining bug whereby in systems with complex PCI bus layouts it may miss some devices. I haven't seen any crashes since a crucial fix went in yesterday.

Ian

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com

#4 lore raw
In reply to James Harper

The xendomains script did indeed to auto startup and shutdown but in a slightly hacky way because we didn't have a centralised domain controller now.
The proper thing is probably for Xend to help in dealing with this. It'd be
a nice feature to have...

The /etc/xen/auto folder is probably there as a hangover from the days when xendomains did work. It probably doesn't have any significance at the moment.

HTH,
Mark

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com