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

Fernando Casas Schössow casasfernando at hotmail.com
Wed Sep 7 12:20:50 UTC 2016


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] => `„*µ [3] => 
°Ø*µ [4] => Є*µ [5] => `†*µ [6] => [7] => `†*µ 
[8] => [9] => p+µ [10] => p"+µ [11] => P#+µ [12] => ß*µ )

On the other hand libvirt_list_inactive_domains() and 
libvirt_list_domains() work as expected returning the right amount of 
items and the domain names correctly:

libvirt_list_inactive_domains() output:

Array ( [0] => DCHOMELAB01 [1] => VMFCSW7 [2] => REMOTEAPP01 [3] => 
MPSSD01 [4] => CS16SVR )


Sofware versions:

OS: CentOS Linux release 7.2.1511 (Core)
Kernel: 3.10.0-327.28.2.el7.x86_64
PHP: 5.4.16-36.3
libvirt: 2.1.0
libvirt-php: 0.5.2
Node: Hyper-V 2012 R2

Thanks in advance for your replies.

Fer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160907/026f53a1/attachment-0001.htm>


More information about the libvir-list mailing list