Displaying 2 results from an estimated 2 matches for "libvirt_domain_nic_add".
2019 Aug 02
2
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
Thank you for your help!
1, i used vda as install disk and vdb as target disk, because i boot from the first. After setup boot order flag i was able change install disk to vdb and target disk to vda. With this configuration when i boot from vdb i can install OS with grub and after it redefine XML without vdb without problem. Thanks a lot.
2, maybe i have something wrong, but still not working:
2019 Aug 03
0
Re: Detach disk from VM - virsh (working) vs. PHP (not working)
...b
Ah, of coure. I overlooked that virDomainDetachDeviceFlags() is called
with VIR_DOMAIN_AFFECT_CONFIG, which means that live configuration is
not affected and if the disk you're trying to detach exists only in live
XML then the API fails. The same problem was found in
libvirt_domain_disk_add, libvirt_domain_nic_add and
libvirt_domain_nic_remove.
I've pushed the fixes to the master. Thanks for the report.
Michal