Bug 712289 - RFE: domifstats support for qemu usermode networking
Summary: RFE: domifstats support for qemu usermode networking
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: i686
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-10 06:33 UTC by Gareth Williams
Modified: 2016-03-23 12:45 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-23 12:45:53 UTC


Attachments (Terms of Use)
dumpxml of usermode VM (2.55 KB, text/x-log)
2011-06-10 06:33 UTC, Gareth Williams
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.