search for: domain_create_xml

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

2019 Aug 01
3
Detach disk from VM - virsh (working) vs. PHP (not working)
...ut 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($domain); (or instead libvirt_domain_d...
2019 Aug 02
0
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...in 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($domain); > > (or...
2019 Aug 02
2
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...main 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($domain); &g...