[libvirt] LIBVIRT-PHP List of domains
Martin Kletzander
mkletzan at redhat.com
Tue Mar 27 07:11:43 UTC 2012
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
More information about the libvir-list
mailing list