On Fri, Mar 12, 2010 at 08:48:14AM -0500, Tom Georgoulias wrote: > I have a python script that monitors the guest VMs on a servers > running Xen, but the script doesn't work properly on a server I just > built with KVM. The script runs as a non-root user (same on all > servers) and simply gathers some details on the status and names of > the domains running on the host. > > The Xen and KVM servers are running CentOS 5.4 x86_64 and are using > the same version of libvirt: > > libvirt-0.6.3-20.1.el5_4 > libvirt-python-0.6.3-20.1.el5_4 > > Both Xen and KVM servers have the default libvirt.conf config file > and the following /var/run/libvirt permissions: > [...] > When I try the same thing on the KVM server: > > [testu@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) > 14:33:07.303: error : No vport operation path found for host0 > 14:33:07.320: error : No vport operation path found for host4 > 14:33:07.325: error : No vport operation path found for host3 > 14:33:07.367: error : No vport operation path found for host1 > 14:33:07.368: error : No vport operation path found for host2 http://libvirt.org/uri.html try libvirt.openReadOnly("qemu:///system") Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@xxxxxxxxxxxx | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/