Displaying 3 results from an estimated 3 matches for "libvirt_domain_reboot".
2019 Aug 01
3
Detach disk from VM - virsh (working) vs. PHP (not working)
...e.".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 will not boot (GRUB error)
2, simple:
libvirt_domain_disk_remove($domain,“vda“);
libvirt_domain_reboot($domain);
The problem of this solution is thats not working. The remove disk is failing with error „Unable attach disk“ - i looks to source code, and yes, there is a mystake with „attach“/„detach“, but main problem i see in log from libvirt:
Aug 1 02:57:05 ry libvirtd[19051]: missing source inf...
2019 Aug 02
0
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...- it's not a libvirt-php
function. There are two possibilities here:
1) make sure domain_create_xml() sets boot devices
2) construct disk XML yourself, and put "<boot order='N'/>" into it
>
> 2, simple:
>
> libvirt_domain_disk_remove($domain,“vda“);
> libvirt_domain_reboot($domain);
>
> The problem of this solution is thats not working. The remove disk is failing with error „Unable attach disk“ - i looks to source code, and yes, there is a mystake with „attach“/„detach“, but main problem i see in log from libvirt:
Oh, that's only typo in the error message...
2019 Aug 02
2
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...bvirt-php function. There are two possibilities here:
>
> 1) make sure domain_create_xml() sets boot devices
> 2) construct disk XML yourself, and put "<boot order='N'/>" into it
>
>> 2, simple:
>> libvirt_domain_disk_remove($domain,“vda“);
>> libvirt_domain_reboot($domain);
>> The problem of this solution is thats not working. The remove disk is failing with error „Unable attach disk“ - i looks to source code, and yes, there is a mystake with „attach“/„detach“, but main problem i see in log from libvirt:
>
> Oh, that's only typo in the error...