From: Keir Fraser Subject: Re: xc_domain_shutdown Date: Tue, 19 Aug 2008 09:10:09 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Shaun R." , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 18/8/08 17:57, "Shaun R." wrote: > The following destroys a domain, how can i gracefully shutdown the domU with > this, just as if i sent it a `xm domid shutdown`??? > > xc_domain_shutdown( xc_handle, domid, SHUTDOWN_poweroff ) You have to tell the guest to shut itself down gracefully by writing to xenstore. I think it would be something like writing 'poweroff' to the node '/local/domain//control/shutdown'. -- Keir