On Fri, Mar 12, 2010 at 4:53 AM, Tom Georgoulias <tomg at mcclatchyinteractive.com> wrote: > [testu at kvm ~]$ virsh -c qemu:///system list --all > Id Name State > ---------------------------------- > 8 changed running > 13 changed2 running > 14 changed3 running > > [testu at kvm ~]$ python > Python 2.4.3 (#1, Sep 3 2009, 15:37:37) > [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import libvirt > >>> conn = libvirt.openReadOnly(None) > 07:45:56.893: error : No vport operation path found for host0 > 07:45:56.912: error : No vport operation path found for host4 > 07:45:56.919: error : No vport operation path found for host3 > 07:45:56.967: error : No vport operation path found for host1 > 07:45:56.968: error : No vport operation path found for host2 > >>> domains = conn.listDomainsID() > >>> print domains > [] In the case of virsh, you have a chance to add the -c qemu:///system option (which is required when running the command as non-root). So, the question is if this option can be somehow added in python. Akemi