<br><font size=2 face="sans-serif">Hi Laine,</font>
<br>
<br><font size=2 face="sans-serif">Thank you for your reply, I just want
to verify if these libvirt functions can be used to get the physical interface
information when using kvm hypervisor. </font>
<br>
<br><font size=2 face="sans-serif">It's a good news that </font><font size=2>Red
Hat Enterprise Linux will have a port of netcf library :)  </font>
<br>
<br>
<br><font size=2 face="sans-serif">(P.S. I used RHEL5.5 and here are the
errors which you can't see in the last mail:</font>
<br>
<br><font size=2 face="sans-serif">virsh command error:</font>
<br><font size=2 color=blue face="sans-serif">$virsh iface-list --all</font>
<br><font size=2 color=blue face="sans-serif">error: Failed to list active
interfaces</font>
<br><font size=2 color=blue face="sans-serif">error: This function is not
supported by the hypervisor£ºVirConnectNumOfInterface</font>
<br><font size=2 face="sans-serif">libvirt api call error:</font>
<br><font size=2 color=blue>libvir: error : this function is not supported
by the hypervisor: virConnectNumOfInterfaces</font>
<br><font size=2 color=blue>org.libvirt.LibvirtException: this function
is not supported by the hypervisor: virConnectNumOfInterfaces</font><font size=2 face="sans-serif">
 )</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
<br>
Best Regards,<br>
<br>
Fengdan Liu<br>
Tivoli ITCAM Solution, IBM China Software Development Lab, <br>
Tel:   13811762746 <br>
Email: liufengd@cn.ibm.com<br>
3/F, Haohai Bldg., No.7, 5th Street, Shangdi, <br>
Haidian District, Beijing 100085, P.R.China</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Laine Stump <laine@laine.org></b>
</font>
<br><font size=1 face="sans-serif">Sent by: sendmail <justsendmailnothingelse@gmail.com></font>
<p><font size=1 face="sans-serif">2010-07-01 00:19</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Feng Dan Liu/China/IBM@IBMCN</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">libvir-list@redhat.com, Flo Kandefer
<kandefer@us.ibm.com>, Todd Gatts <tgatts@us.ibm.com>, Bruce
Anderson <andersbc@us.ibm.com>, Jennifer Kuvlesky <jkuvlesk@us.ibm.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [libvirt] Ask for help about libvirt
error: can't get physical interface data for kvm.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>On 06/30/2010 05:18 AM, Feng Dan Liu wrote: </font>
<br><font size=2 face="sans-serif"><br>
I saw both libvirt api and virsh commands support to get the physical interfaces
data, but it always fail when I using them for KVM hypervisor. I was thought
that it was due to the old version of libvirt/KVM hypervisor, but the error
still exist when using the latest libvirt and kvm hypervisor.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
So I wonder if the following functions of libvirt haven't been implemented
for KVM, could you pls help me get the answer about this? Thanks in advance!</font><font size=3>
<br>
</font><font size=3 color=blue><u><br>
</u></font><a href="http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListInterfaces"><tt><font size=3 color=blue><u>virConnectListInterfaces</u></font></tt></a><font size=3>
</font><font size=3 color=blue><u><br>
</u></font><a href="http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfDefinedInterfaces"><tt><font size=3 color=blue><u>virConnectNumOfDefinedInterfaces</u></font></tt></a><font size=3>
</font><font size=3 color=blue><u><br>
</u></font><a href="http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfInterfaces"><tt><font size=3 color=blue><u>virConnectNumOfInterfaces</u></font></tt></a><font size=3>
</font><font size=3 color=blue><u><br>
</u></font><a href="http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListDefinedInterfaces"><tt><font size=3 color=blue><u>virConnectListDefinedInterfaces</u></font></tt></a><font size=3>
</font><font size=3 color=blue><u><br>
</u></font><a href="http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceLookupByName"><tt><font size=3 color=blue><u>virInterfaceLookupByName</u></font></tt></a><font size=3>
<br>
<br>
</font>
<br><font size=3><br>
Just to make sure you understand what these functions do - they are used
to examine and configure the interfaces on the *physical host* that is
running the hypervisor, not the virtual hosts (guests) running under that
hypervisor. (One of the main motivations to add this API was to make it
easier for management software to create bridge devices on the host, for
use by the guests).<br>
<br>
These functions only work on a system that has the netcf library installed
(regardless of hypervisor). Currently, only Fedora (12 and beyond), and
Red Hat Enterprise Linux 6 (in beta) have a port of that library, although
there has been some talk of a Suse port (and also someone was supposedly
working on a Gentoo port last year, but I never saw anything more about
that).<br>
<br>
netcf information can be found at </font><a href=https://fedorahosted.org/netcf><font size=3 color=blue><u>https://fedorahosted.org/netcf</u></font></a><font size=3>,
and there is a mailing list at </font><a href="https://fedorahosted.org/mailman/listinfo/netcf-devel"><font size=3 color=blue><u>https://fedorahosted.org/mailman/listinfo/netcf-devel</u></font></a><font size=3>.<br>
<br>
Patches to port netcf to other platforms are gratefully accepted. If you
are running on a platform that doesn't have netcf support and would like
to take on that task, please send mail to the list and we'll do what we
can to help.<br>
<br>
(P.S. When you send mail to the libvirt list, you should probably try to
avoid embedded graphics, as you have used to show your error message -
many people reading the list are using text-only mail readers, and won't
be able to see the graphical content.)<br>
</font>
<br>