Bug 712289

Summary: RFE: domifstats support for qemu usermode networking
Product: [Community] Virtualization Tools Reporter: Gareth Williams <gareth>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DEFERRED QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, clalance, crobinso, itamar, jforbes, laine, rbalakri, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-23 12:45:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
dumpxml of usermode VM none

Description Gareth Williams 2011-06-10 06:33:32 UTC
Created attachment 504023 [details]
dumpxml of usermode VM

Description of problem:
If I attempt virsh domifstat <domain> <device> as a normal user (usermode) against a QEMU session running as a normal user (virsh list as the user shows it running), I cannot get any stats.  Connecting to a VM running as 'system' works.  Checking virsh dumpxml <domain> on both shows that there is a <target dev='vnet0'> entry for the 'system' VM which I can use as an argument for domifstat but not for the usermode VM, which explains why I can't get any interface stats.

Version-Release number of selected component (if applicable):
libvirt 0.8.8-4.fc15.i686

How reproducible:
Always

Steps to Reproduce:
1. Create usermode VM
2. virsh dumpxml <domain>
3.
  
Actual results:
No target dev for network to use in virsh domifstat <domain> <interface>

Expected results:
A <target dev='???'> for the network interface.

Additional info:

Comment 1 Fedora Admin XMLRPC Client 2011-09-22 17:52:28 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora Admin XMLRPC Client 2011-09-22 17:55:54 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2011-11-30 20:02:22 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-11-30 20:02:34 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2011-11-30 20:07:04 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2011-11-30 20:07:11 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Cole Robinson 2012-06-07 00:20:55 UTC
Hmm, this is a non trivial problem. usermode networking is just not configured the same way as most other network devices, so we can't get stats in the same way.

Moving to upstream tracker: since boxes is using usermode networking there may eventually be some movement on implementing this.

Comment 8 Cole Robinson 2016-03-23 12:45:53 UTC
AFAICT there isn't any way to actually do this... there's no host side interface to poll, and qemu doesn't provide any monitor command to get network stats.

Given that usermode networking is generally not a recommended setup, and that this would take qemu work to implement, I'm closing this since I don't think it will ever actually happen