WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xc_domain_shutdown

To: "Shaun R." <mailinglists@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xc_domain_shutdown
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 19 Aug 2008 09:10:09 +0100
Cc:
Delivery-date: Tue, 19 Aug 2008 01:10:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <g8c9ne$u0o$1@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckB0v8EPYmJ7m3GEd20BAAWy6hiGQ==
Thread-topic: [Xen-devel] xc_domain_shutdown
User-agent: Microsoft-Entourage/11.4.0.080122
On 18/8/08 17:57, "Shaun R." <mailinglists@xxxxxxxxxxxxxxxx> 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/<domid>/control/shutdown'.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>