Re: [libvirt-php] libvirt_list_storagepools() gives an error if all the storage pools on the host node are active

2020-04-24 Thread Fernando Casas Schössow
I can confirm the problem is fixed in current master. Thanks and have a great weekend! On vie, abr 24, 2020 at 4:49 PM, Fernando Casas Schössow wrote: Hi Michal, Thanks for quick reply. Let me pull from master, rebuild the container and test it. I will report back with the result. Thanks

Re: [libvirt-php] libvirt_list_storagepools() gives an error if all the storage pools on the host node are active

2020-04-24 Thread Fernando Casas Schössow
Hi Michal, Thanks for quick reply. Let me pull from master, rebuild the container and test it. I will report back with the result. Thanks, Fernando On vie, abr 24, 2020 at 4:16 PM, Michal Privoznik wrote: On 4/23/20 11:02 PM, Fernando Casas Schössow wrote: Hi, While using the function

[libvirt-php] libvirt_list_storagepools() gives an error if all the storage pools on the host node are active

2020-04-23 Thread Fernando Casas Schössow
Hi, While using the function libvirt_list_storagepools() I found that if all the storage pools on the host node are active, the function doesn't return the list of storage pools but it gives the following error instead: names in virConnectListDefinedStoragePools must not be NULL Expected

Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
Excellent and thanks again the rapid response. Fernando On jue, abr 16, 2020 at 1:22 PM, Michal Privoznik wrote: On 4/16/20 12:32 PM, Fernando Casas Schössow wrote: > Pushed fix for both problems. Michal

Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
That was fast! Thanks a lot Michal. Kind regards, Fernando On jue, abr 16, 2020 at 12:21 PM, Michal Privoznik wrote: On 4/16/20 12:08 AM, Fernando Casas Schössow wrote: I think I found the problem and it seems to affect only Windows guests. I'm not sure about the cause tough. Possible

[libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
Hi, While executing libvirt_domain_interface_addresses() with the qemu-agent running in the guest as the source, the function causes PHP to segfault. If I change the source to either dhcp or arp, the function executes correctly. Example: $netdetails =

[libvirt-php] libvirt_domain_interface_addresses() only returns only on IP address for NICs with multiple IPs

2020-04-16 Thread Fernando Casas Schössow
Hi, While using the function libvirt_domain_interface_addresses() with qemu guest agent as the source, for interfaces with more than one IP address, the function will only return one IP. Example code: $netdetails = libvirt_domain_interface_addresses($vmres, 2); foreach ($netdetails as $nic)

Re: [libvirt-php] libvirt_domain_interface_addresses causing segfault

2020-04-16 Thread Fernando Casas Schössow
opback Pseudo-Interface 1" not reporting a MAC address. Hope this additional information helps. Thanks. Fernando On mié, abr 15, 2020 at 11:41 PM, Fernando Casas Schössow wrote: Hi, While executing libvirt_domain_interface_addresses() with the qemu-agent running in the guest as the source, the fu

Re: [libvirt-php] libvirt_domain_interface_addresses() only returns only on IP address for NICs with multiple IPs

2020-04-16 Thread Fernando Casas Schössow
192.168.7.31/26 eth0 52:54:00:12:b9:22 ipv6 fe80::5054:ff:fe12:b922/64 eth1 52:54:00:8e:b0:35 ipv4 192.168.1.34/24 eth1 52:54:00:8e:b0:35 ipv6 fe80::5054:ff:fe8e:b035/64 Thanks, Fernando On jue, abr 16, 2020 at 12:58 AM, Fernando Casas Schössow wrote: Hi, While using the function

Re: [libvirt] [PATCH 00/16] Hyper-V: Improve 2008, Introduce 2012

2016-09-08 Thread Fernando Casas Schössow
Disregard my last email, it seems that while copying the patches from my browser some invisible chars got in. So I extracted the patches from the mailist txt archive. Now they are all applied just fine. Thanks. On jue, sep 8, 2016 at 6:48 , Fernando Casas Schössow <casasferna...@hotmail.

Re: [libvirt] [PATCH 00/16] Hyper-V: Improve 2008, Introduce 2012

2016-09-08 Thread Fernando Casas Schössow
pervDomainUndefine; /* 1.2.10 */ hypervHypervisorDriver.nodeGetFreeMemory = hypervNodeGetFreeMemory; /* 1.2.10 */ hypervHypervisorDriver.nodeGetInfo = hypervNodeGetInfo; /* 0.9.5 */ On Wed, Sep 7, 2016 at 6:17 PM, Matthias Bolte <matthias.bo...@googlemail.com> wrote: 2016-09-07 23:14 GMT+02:00

Re: [libvirt] [PATCH 00/16] Hyper-V: Improve 2008, Introduce 2012

2016-09-07 Thread Fernando Casas Schössow
Thanks for the reply Phil. These are brilliant news, hopefully libvirt support for Hyper-V will see some improvements soon and these patches are a great starting point. Regards. Fer On mié, sep 7, 2016 at 11:46 , Philipp Heckel wrote: Hi, I was wondering if any of

Re: [libvirt] [PATCH 00/16] Hyper-V: Improve 2008, Introduce 2012

2016-09-07 Thread Fernando Casas Schössow
Thanks for the reply Phil. These are brilliant news, hopefully libvirt support for Hyper-V will see some improvements soon and these patches are a great starting point. Regards. Fer On mié, sep 7, 2016 at 11:46 , Philipp Heckel wrote: Hi, I was wondering if any of

Re: [libvirt] [PATCH 00/16] Hyper-V: Improve 2008, Introduce 2012

2016-09-07 Thread Fernando Casas Schössow
Hi there, I was wondering if any of these patches actually made it into libvirt code. I'm really looking forward hyper-v support improvement and features like shutdown VM (not destroy/turn off but clean shutdown) implemented. Especially interested in 2012/2012 R2 since 2008 is getting old and

Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
The patch is working Michal. :) Thanks. Fer On mié, sep 7, 2016 at 6:16 , Fernando Casas Schössow <casasferna...@hotmail.com> wrote: Thanks Michal. :) I'm patching and re-building as we speak. Will report the results in a few minutes. On mié, sep 7, 2016 at 6:01 , Michal Privoznik

Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
Thanks Michal. :) I'm patching and re-building as we speak. Will report the results in a few minutes. On mié, sep 7, 2016 at 6:01 , Michal Privoznik <mpriv...@redhat.com> wrote: On 07.09.2016 15:58, Matthias Bolte wrote: 2016-09-07 14:20 GMT+02:00 Fernando Casas Schössow <c

Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
efree(ids); } Basically I took the code from libvirt_list_domains and fit it in. I'm almost sure it's not the most elegant and clean solution but it works fine in my tests. Hopefully a fix will be included in the next libvirt-php release. Thanks. Fer On mié, sep 7, 2016 at 3:58 , Matthias

[libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
Hi all, I'm using libvirt-php to manage a Hyper-V 2012 R2 host. When trying to retrieve the active VMs using the function libvirt_list_active_domains() I get an array with the correct amount of items but with garbage instead of the domain names: Array ( [0] => P’*µ [1] => +µ [2] =>

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Fernando Casas Schössow
work like a charm. Anyway I will open another thread for that since it's an entire different thing and I don't want to mix them. Fer On mié, sep 7, 2016 at 2:01 , Michal Privoznik <mpriv...@redhat.com> wrote: On 07.09.2016 13:02, Fernando Casas Schössow wrote: Ok. I managed to build t

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Fernando Casas Schössow
very much for your help Michal. I will be looking forward the next release (0.5.3?) of libvirt-php! Cheers, Fer On mié, sep 7, 2016 at 10:58 , Fernando Casas Schössow <casasferna...@hotmail.com> wrote: Thanks for the patches Michal. I'm using OBS to build my custom packages so let me

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-07 Thread Fernando Casas Schössow
Thanks for the patches Michal. I'm using OBS to build my custom packages so let me apply this patches and build a new RPM. I will test them and come back to you ASAP. Fer On mié, sep 7, 2016 at 10:44 , Michal Privoznik <mpriv...@redhat.com> wrote: On 06.09.2016 19:27, Fernando

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-06 Thread Fernando Casas Schössow
Thanks for the explanation Michal. I will be looking forward the fix to try it. :) On mar, sep 6, 2016 at 6:59 , Michal Privoznik <mpriv...@redhat.com> wrote: On 06.09.2016 13:45, Fernando Casas Schössow wrote: Thanks for the instructions since I'm not familiar with debugging

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-05 Thread Fernando Casas Schössow
he connection. If you want me to send you the full virsh trace, just let me know. Also, not sure if it worth mention it and I guess you are aware that libvirt depends on openwsman to connect to a Hyper-V host. Thanks in advance for your help. Fer On lun, sep 5, 2016 at 9:38 , Fernando Casas

Re: [libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-05 Thread Fernando Casas Schössow
e(2, "\1\7\0\1\0\361\7\0PHP Warning: unlink(tes"..., 928) = 928 [pid 49430] shutdown(2, SHUT_WR) = 0 [pid 49430] recvfrom(2, "\1\5\0\1\0\0\0\0", 8, 0, NULL, NULL) = 8 [pid 49430] close(2) = 0 [pid 49430] setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 [pid

[libvirt] [libvirt-php] libvirt_connect not reading out credential info on 0.5.2

2016-09-02 Thread Fernando Casas Schössow
I'm running libvirt-php 0.5.2 on CentOS 7 with libvirt 2.1.0. Using virsh I'm able to connect to hyper-v hosts correctly but using libvirt-php it fails during authentication since it seems that the credentials are not being passed along. This is the php code I'm using: $credentials =