search for: libvirt_domain_undefine

Displaying 3 results from an estimated 3 matches for "libvirt_domain_undefine".

2019 Aug 01
3
Detach disk from VM - virsh (working) vs. PHP (not working)
...partitions) i need a restart virtual without a installation disk. If i use Virsh: detach-disk --domain debian-test2 --persistent --target vda reset debian-test2 everything works well. If i use a PHP, there is „complicated“ way and „simple“ way: 1, complicated: libvirt_domain_destroy($domain); libvirt_domain_undefine($domain); $xml = domain_create_xml($name,$uuid,$memory,$cpu,$vnc,$mac); $domain = libvirt_domain_define_xml($server->conn, $xml); libvirt_domain_disk_add($domain, "/users/".$name.".img", "vdb", "virtio", "qcow2", NULL); libvirt_domain_create($do...
2019 Aug 02
0
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...> If i use Virsh: > > detach-disk --domain debian-test2 --persistent --target vda > reset debian-test2 > > everything works well. > > If i use a PHP, there is „complicated“ way and „simple“ way: > > 1, complicated: > > libvirt_domain_destroy($domain); > libvirt_domain_undefine($domain); > > $xml = domain_create_xml($name,$uuid,$memory,$cpu,$vnc,$mac); > $domain = libvirt_domain_define_xml($server->conn, $xml); > libvirt_domain_disk_add($domain, "/users/".$name.".img", "vdb", "virtio", "qcow2", NULL); >...
2019 Aug 02
2
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...>> If i use Virsh: >> detach-disk --domain debian-test2 --persistent --target vda >> reset debian-test2 >> everything works well. >> If i use a PHP, there is „complicated“ way and „simple“ way: >> 1, complicated: >> libvirt_domain_destroy($domain); >> libvirt_domain_undefine($domain); >> $xml = domain_create_xml($name,$uuid,$memory,$cpu,$vnc,$mac); >> $domain = libvirt_domain_define_xml($server->conn, $xml); >> libvirt_domain_disk_add($domain, "/users/".$name.".img", "vdb", "virtio", "qcow2", NULL);...