
Well, it's a HVM guest. So, should I install the paravirt driver if i need the statistcs? 2011-05-19 黄亮 发件人: Daniel P. Berrange 发送时间: 2011-05-13 17:44:29 收件人: 黄亮 抄送: libvir-list 主题: Re: [libvirt] why is network i/o always zero? On Wed, May 11, 2011 at 09:32:53PM +0800, 黄亮 wrote:
hi all
I'm using Xen on CentOS.I wanna monitor the network activity of a domain. When I use Domain.InterfaceStats( ... ), which is the C# binding of virDomainInterfaceStats, it returns -1.
I wonder if the function is not supported by Xen. So I using "domifstat", and I get
vif1.0 rx_bytes 0 vif1.0 rx_packets 0 vif1.0 rx_errs 0 vif1.0 rx_drop 0 vif1.0 tx_bytes 0 vif1.0 tx_packets 0 vif1.0 tx_errs 0 vif1.0 tx_drop 0
but it never change even when I use that domain to ping another. You don't mention if it is a paravirt or HVM guest. If it is a HVM guest, then you don't get any statistics, unless the paravirt drivers are installed. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| __________ Information from ESET Smart Security, version of virus signature database 6105 (20110508) __________ The message was checked by ESET Smart Security. http://www.eset.com