Skip to contentSkip to conversation

xc_domain_shutdown

DISCUSSION Shaun R. 2 participants 2 messages Aug 18, 2008 – Aug 19, 2008

lore
Share & tools
lore

Shaun R.

author
#0 lore raw

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

#1 lore raw
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