Re: LIBVIRT-PHP List of domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/24/2012 03:24 PM, Ali Raza Memon wrote:
> Hi.. I am trying to get the names of all the xen domains using
> libvirt-php. I saw this php script: 
> 
> <?php
>      $conn = libvirt_connect('null', false);
>      $doms = libvirt_list_domains($conn);
>      print_r($doms); ?>
> 
>  It gives me error. Could you please tell me how to connect to xen
> hypervisor? I have also tried: $conn = libvirt_connect('xen:///',
> false); but it wont work..
> 

Hi,

I can only guess without further information. Is libvirt running on the
same machine as the script? What authentication are you using (you want
read/write connection)? As what user is the script running? Also the
error you get could help us solve this.

Martin

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]