I have over 20 guests running on a particular host and the three longest running ones are missing the network device information in their XML description: <interface type='network'> <mac address='54:52:10::f2:c5'/> <source network='local'/> </interface> Compared to the others which have: <interface type='network'> <mac address='54:52:d1:32:0a:a1'/> <source network='local'/> <target dev='vnet13'/> </interface> This is problematic as I wanted to use domifstat on the domains. Using the packet counts shown via ifconfig on the host, I was able to determine what the vnet interface should be, but passing that to domifstat doesn't work: $ virsh domifstat maki221 vnet13 Connecting to uri: qemu:///system error: Failed to get interface stats guest19 vnet13 error: invalid argument in invalid path, 'vnet13' is not a known interface How did this happen? Is there a way I can get libvirt to know about the interfaces? And the guest OS's network connections work fine. Thanks! .:. jeremy
On Tue, Jun 08, 2010 at 05:31:50PM -0700, jeremy avnet wrote:> I have over 20 guests running on a particular host and the three > longest running ones are missing the network device information in > their XML description: > > <interface type='network'> > <mac address='54:52:10::f2:c5'/> > <source network='local'/> > </interface>I guess you restarted libvirtd - there was a bug that causes it to forget the interface name if you restart it. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|