<div dir="ltr"><div><div>Hi, <br><br></div>After my original post, I did some more tests but I was unable to post the result because of the bug report closure.  Time has passed and I've forgot it...<br></div>So below is the post I tried to send, if it could help ...<br>
<br><div>---------------------------------------------------------------------------------------------------------<br>Hi, Maybe I have some new info.<br>
I tried 2 new fresh install with debian sid. the 1st one with e1000,<br>
the 2nd one with virtio.<br>
<br>
- Linux sid-virtio 3.10-1-amd64 #1 SMP Debian 3.10.3-1 (2013-07-27)<br>
x86_64 GNU/Linux<br>
- snmpd : 5.7.2~dfsg-8.1<br>
<br>
With the e1000 driver, I can retrieve nic speed :<br>
<br>
# lspci -k<br>
00:12.0 Ethernet controller: Intel Corporation 82540EM Gigabit<br>
Ethernet Controller (rev 03)<br>
  Subsystem: Red Hat, Inc Device 1100<br>
  Kernel driver in use: e1000<br>
<br>
# cat /sys/devices/pci0000\:00/0000\<div id=":21k">:00\:12.0/net/eth0/speed<br>
1000<br>
<br>
But with the virtio driver, I get no information<br>
<br>
# lspci -k<br>
00:12.0 Ethernet controller: Red Hat, Inc Virtio network device<br>
  Subsystem: Red Hat, Inc Device 0001<br>
  Kernel driver in use: virtio-pci<br>
<br>
# cat /sys/devices/pci0000\:00/0000\:00\:12.0/net/eth0/speed: No such<br>
file or directory<br>
<br>
I think snmpd tries to get speed info from this file and 0 is default<br>
value (according to this link) :<br>
<a href="http://sources.debian.net/src/net-snmp/5.7.2%7Edfsg-8.1/agent/mibgroup/if-mib/data_access/interface_linux.c" target="_blank">http://sources.debian.net/src/net-snmp/5.7.2~dfsg-8.1/agent/mibgroup/if-mib/data_access/interface_linux.c</a><br>

<br>
Moreover, "ethtool eth0" returns only "Link detected: yes"  with the<br>
virtio driver<br>
The virtio_pci driver seems to give very little information (in the<br>
normal way - like e1000 driver does) to fill files like the "speed"<br>
file in /sys/devices/<br>
That could explain why some tools like ethtool and snmpd are unable to<br>
retrieve some data.<br>
<br>
And is it the right place for this bug now that virtio-pci driver is<br>
embeded in the kernel ?<br>
<br>
Regards,<br>
Laurent<br>---------------------------------------------------------------------------------------------------------<br></div><br>If it needs to be post in a more formal way (new debian bug report maybe), just tell me how to do it and to which package it must be attached, and I'll do it.<br>
<br></div><div>Regards,<br>Laurent<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/24 Frédéric Massot <span dir="ltr"><<a href="mailto:frederic@juliana-multimedia.com" target="_blank">frederic@juliana-multimedia.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 26/04/2013 14:49, Guido Günther a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Apr 26, 2013 at 09:06:27PM +0900, Hideki Yamane wrote:<br>
 > On Fri, 26 Apr 2013 09:06:09 +0200<br>
 > Guido Günther <<a href="mailto:agx@sigxcpu.org" target="_blank">agx@sigxcpu.org</a>> wrote:<br>
 > > virtio network values are reported fine by libvirt. Check e.g.<br>
 > > libvirt-munin-plugions.<br>
 ><br>
 > I'm not familiar with libvirt, so please tell me that does libvirt not<br>
 > provide NIC negotiation state info (10/100/1000MB, full/half dupllex,<br>
etc)<br>
 > as same as baremetal one? libvirt-munin-plugins imports libvirt python<br>
 > module, so it seems that we need to use libvirt interface to get<br>
 > such info, right?<br>
<br>
libvirt has packet and volume counters per interface. How are you<br>
querying the results from libvirt that you assume it's failing?<br>
</blockquote>
<br>
Hi,<br>
<br>
I do not know why this bug is archived, for me it is still valid, the problem is still not resolved. I'm sorry to have put several people in copy, but the bug is archived and can no longer respond.<br>
<br>
I do not really understand the answer of Guido Günther and use of Munin.<br>
<br>
<br>
My problem is that snmpd on the guest returns zero for the speed of the virtio network interface.<br>
<br>
Why should I install munin-libvirt-plugins package that depends on the munin-node package for snmpd returns a good value?  :o)<br>
<br>
<br>
Regards.<span class="HOEnZb"><font color="#888888"><br>
-- <br>
==============================<u></u>================<br>
|              FRÉDÉRIC MASSOT               |<br>
|     <a href="http://www.juliana-multimedia.com" target="_blank">http://www.juliana-multimedia.<u></u>com</a>      |<br>
|   mailto:<a href="mailto:frederic@juliana-multimedia.com" target="_blank">frederic@juliana-<u></u>multimedia.com</a>   |<br>
| <a href="tel:%2B33.%280%292.97.54.77.94" value="+33297547794" target="_blank">+33.(0)2.97.54.77.94</a>  <a href="tel:%2B33.%280%296.67.19.95.69" value="+33667199569" target="_blank">+33.(0)6.67.19.95.69</a> |<br>
===========================<u></u>Debian=GNU/Linux===<br>
</font></span></blockquote></div><br></div>