On Fri, Mar 31, 2006 at 04:47:38PM -0500, Daniel Veillard wrote:
> virDomainReboot(virDomainPtr domain)
> Reboot the domain.
Trivial kind of cut and paste from the Shutdown routines.
I just added the following:
/**
* virDomainReboot:
* @domain: a domain object
* @flags: extra flags for the reboot operation, not used yet
*
* Reboot a domain, the domain object is still usable there after but
* the domain OS is being stopped for a restart.
* Note that the guest OS may ignore the request.
*
* Returns 0 in case of success and -1 in case of failure.
*/
int
virDomainReboot(virDomainPtr domain, unsigned int flags)
there is also a new "virsh reboot" command to test it.
However there when trying it I saw that the guest OS shutdown in reboot mode:
------------------------
Turning off quotas:
Unmounting pipe file systems:
Please stand by while rebooting the system...
md: stopping all md devices.
md: md0 switched to read-only mode.
Restarting system.
.
------------------------
but the domain was not relaunched by default. I guess this also requires
to set up specific xenstore attributes so that the domain is actually restarted.
So not completely done yet.
Daniel
--
Daniel Veillard | Red Hat
http://redhat.com/
veillard(a)redhat.com | libxml GNOME XML XSLT toolkit
http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine
http://rpmfind.net/