Destroy guest OS using php
- by Alee
I am using libvirt-php to manage my virtual machines, and I need to shutdown/destroy domU.
For this I used the following php script:
< ? php $conn=libvirt_connect("xen:///");
$name=libvirt_domain_lookup_by_id($conn,4);
$dest=libvirt_domain_destroy($name);
echo $dest; ?
When I run this on xampp server i get the…