search for: libvirt_domain_define_xml

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

2019 Aug 01
3
Detach disk from VM - virsh (working) vs. PHP (not working)
...bian-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_disk_add i can define disk directly in XML) But in this case, the server...
2019 Aug 02
0
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...> 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_disk_add i can define disk directly in XML) > >...
2019 Aug 02
2
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...t;> 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_disk_add i can define disk directly in XML) >...