xc_domain_shutdown
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 )
~Shaun
Quoted 4 lines · Shaun R.
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