[libvirt] How to reboot domain(virtual machine) after shutdown it through php-libvirt

Subhu G gvsubhu at yahoo.com
Sat Aug 2 09:08:05 UTC 2014


How to reboot domain(virtual machine) after shutdown it through php-libvirt:

Hi,

Am new to php livbvirt. and i successfully listed the all domains in server. and get resource of particular domain and call the shutdown function.
$res = libvirt_domain_lookup_by_name($conn, $name);
$stop = libvirt_domain_shutdown($res);

Now shutdowned domain is not display in domain list.

Now the problem is how to reboot/restart that domain again? libvirt having function for reboot, that is,
libvirt_domain_create($res);
My doubt is what is argument here, how to get that shutdowned domain resources.

Any one kindly help me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140802/6175323d/attachment-0001.htm>


More information about the libvir-list mailing list