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 “”, line 39, in
File “”, line 22, in open_connection
print “*** VMs =”,con.listAllDomains()
File “/usr/lib/python2.7/dist-packages/”, 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@’” 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@”.