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.<div>
<br></div><div>Regards</div><div>Ananth<br><br><div class="gmail_quote">On Tue, Jul 24, 2012 at 3:22 PM, Arun Sharma <span dir="ltr"><<a href="mailto:arajmail@gmail.com" target="_blank">arajmail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello <br><br>Facing below error while trying to access the iface-list.<br><br># virsh iface-list<br><b>error: Failed to list active interfaces<br>
error: this function is not supported by the connection driver: virConnectNumOfInterfaces</b><br>
<br>root@kvm-1:/usr/local/src/libvirt# virsh list<br> Id    Name                           State<br>----------------------------------------------------<br> 1     vm1                            running<br><br><br><br><br>

After some finding, i saw it require me to build libvirt with --with-netcf. I tried that too but still facing the same problem. <br><br>Here are the steps perform on Ubuntu 1204 (64 bit) + qemu KVM.<br><br># git clone git://<a href="http://libvirt.org/libvirt.git" target="_blank">libvirt.org/libvirt.git</a><br>

# ./autogen.sh --prefix=/usr --with-qemu --with-init-script=upstart --with-yajl --with-netcf --with-network --with-init-script=upstart --with-libvirtd<br># make<br># make install<br># /usr/sbin/libvirtd &<br># /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<br>

<br><br>Pl. let me know what could be the problem?<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br>Arun<br><br>
</font></span><br>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards<br>Ananth<br>

</div>