From mboxrd@z Thu Jan 1 00:00:00 1970 From: stevegt@TerraLuna.Org Subject: Re: Graceful shutdown of a virtual domain Date: Sat, 31 Jan 2004 12:34:51 -0800 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <20040131203451.GW28636@pathfinder> References: <20040130013055.GM28636@pathfinder> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Keir Fraser Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org On Sat, Jan 31, 2004 at 12:24:26PM +0000, Keir Fraser wrote: > > Hi All, > > > > I've been looking through the code and list archives but haven't found > > this yet... From dom0, how do you cause a virtual domain to gracefully > > shutdown? It seems like the machinery is there somewhere, because the > > hypervisor can do it to dom0... > > > > For reference, in UML you do this by putting this in /etc/inittab: > > > > ca:12345:ctrlaltdel:/sbin/shutdown -h now > > > > ...and then sending it a ctrlaltdel signal from the userland tool. > > In Xen 1.2 you can use the xc_dom_control script: > xc_dom_control.py shutdown > > In Xen 1.3 the scripts aren't completely up to date yet. There's an > old script in tools/examples that should do the trick though: > destroydom.py > > In both cases, if the domain is unresponsive then there is an option > to forcibly kill it. Cool! That means it'll work in 1.2rc also -- that'll save me from an upgrade for a little while longer. I hadn't noticed that destroydom.py was able to do a graceful shutdown (and hadn't realized that xc.domain_destroy(domid,0) was in fact a graceful shutdown). ;-) Thanks Keir, Steve -- Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC stevegt@TerraLuna.Org http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn