SLES 11 SP3 Libvirt API giving : virConnectListAllDomains

Fresh SLES 11 SP3 with Xen host install, booted in xen hypervisor kernel.
From local virsh it is showing domains… but from a libvirt test program, it is failing.
Have a test program, cant get libvirt to connect to Xen on SLES 11 SP3.
Do I need to
Traceback (most recent call last):
File “tc.py”, line 39, in
open_connection(‘xen+ssh://root@192.168.12.152’)
File “tc.py”, line 22, in open_connection
print “*** VMs =”,con.listAllDomains()
File “/usr/lib/python2.7/dist-packages/libvirt.py”, line 4300, in listAllDomains
raise libvirtError(“virConnectListAllDomains() failed”, conn=self)
libvirt.libvirtError: this function is not supported by the connection driver: virConnectListAllDomains

Hi Jaydeep,

what happens when you run “ssh root@192.168.12.152’” in the host you’re trying to run your test program? My guess is that it will ask for confirmation of the host key and/or a password.

You probably will have to enable password-less login via ssh for the user that will run the client program by adding the user’s public key to “root@192.168.12.152:.ssh/authorized_keys”.

Regards,
Jens