Bug 784893 - Feature Request: sniff a virtual interface of an guest
Summary: Feature Request: sniff a virtual interface of an guest
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-26 15:23 UTC by Hendrik Schwartke
Modified: 2016-04-26 16:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-23 20:44:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Hendrik Schwartke 2012-01-26 15:23:51 UTC
Description of problem:

There is currently no support for sniffing the network traffic of a virtual nic, from local or remote. In some cases the debugging or monitoring of a guest is therefore not as easy as it could be.

Although it's easy to start a network sniffer on the physical host, it requires direct access to a shell and some knowledge of the current configuration of virtual networks.

I think it would be a great benefit for libvirt if network sniffing would be possible out of the box.

Comment 1 Ralf Spenneberg 2012-01-26 16:11:04 UTC
One idea would be to start a local tshark sniffing on the card and connect this to a local socket. This could then be forwarded by ssh to a wireshark process running on a desktop.

Comment 2 Dave Allan 2012-01-26 17:58:26 UTC
This sounds like an interesting piece of functionality, and I believe it could be implemented with libvirt's support for data streams.  It's unlikely that anyone will take up the task for you, but if you are willing to work on it yourself I'd suggest floating the idea on libvir-list.  You'll get a rapid response as to whether others think it would be a useful feature, which I imagine they will, as well as advice on the mechanics of implementing it.

Comment 3 Cole Robinson 2016-03-23 20:44:01 UTC
I concur with Dave, it's an interesting idea but this RFE sitting here isn't going to generate any results. It would need someone to send patches or start a mailing list discussion to drum up interest. Closing this as DEFERRED


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