[libvirt-users] virsh iface-list error

Hello Facing below error while trying to access the iface-list. # virsh iface-list *error: Failed to list active interfaces error: this function is not supported by the connection driver: virConnectNumOfInterfaces* root@kvm-1:/usr/local/src/libvirt# virsh list Id Name State ---------------------------------------------------- 1 vm1 running After some finding, i saw it require me to build libvirt with --with-netcf. I tried that too but still facing the same problem. Here are the steps perform on Ubuntu 1204 (64 bit) + qemu KVM. # git clone git://libvirt.org/libvirt.git # ./autogen.sh --prefix=/usr --with-qemu --with-init-script=upstart --with-yajl --with-netcf --with-network --with-init-script=upstart --with-libvirtd # make # make install # /usr/sbin/libvirtd & # /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override Pl. let me know what could be the problem? Thanks Arun

How are you launching the virsh program? The newly built libvirt will also have virsh program. Ensure that you launch that virsh, otherwise the virsh which is already defined in your PATH will be triggered, which would connect to older version of libivrt. Ensure you replaced the libivirt socket file with the new one. Type version on virsh prompt and verify if it is the same as the one you compiled. Regards Ananth On Tue, Jul 24, 2012 at 3:22 PM, Arun Sharma <arajmail@gmail.com> wrote:
Hello
Facing below error while trying to access the iface-list.
# virsh iface-list *error: Failed to list active interfaces error: this function is not supported by the connection driver: virConnectNumOfInterfaces*
root@kvm-1:/usr/local/src/libvirt# virsh list Id Name State ---------------------------------------------------- 1 vm1 running
After some finding, i saw it require me to build libvirt with --with-netcf. I tried that too but still facing the same problem.
Here are the steps perform on Ubuntu 1204 (64 bit) + qemu KVM.
# git clone git://libvirt.org/libvirt.git # ./autogen.sh --prefix=/usr --with-qemu --with-init-script=upstart --with-yajl --with-netcf --with-network --with-init-script=upstart --with-libvirtd # make # make install # /usr/sbin/libvirtd & # /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override
Pl. let me know what could be the problem?
Thanks Arun
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Regards Ananth

On 07/24/2012 03:52 AM, Arun Sharma wrote:
Hello
Facing below error while trying to access the iface-list.
# virsh iface-list *error: Failed to list active interfaces error: this function is not supported by the connection driver: virConnectNumOfInterfaces*
I think this is a result of this bug: https://www.redhat.com/archives/libvir-list/2012-July/msg01068.html -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 07/24/2012 05:11 PM, Eric Blake wrote:
On 07/24/2012 03:52 AM, Arun Sharma wrote:
Hello
Facing below error while trying to access the iface-list.
# virsh iface-list *error: Failed to list active interfaces error: this function is not supported by the connection driver: virConnectNumOfInterfaces* I think this is a result of this bug: https://www.redhat.com/archives/libvir-list/2012-July/msg01068.html
Only if the host OS actually has support for the netcf library that's required to get the iface-* commands. Otherwise, fixing that bug won't change the outcome - you would still need netcf to get the iface-* functions. As far as I can see, Ubuntu 12.04 doesn't have the netcf library (although I know the Ubuntu guys have been working on patching it). Do you have their netcf build?
participants (4)
-
Ananth
-
Arun Sharma
-
Eric Blake
-
Laine Stump