Julio Faracco
2016-May-12 14:32 UTC
Re: [libvirt-users] Dump network traffic from each VM.
Hi Daniel, I changed the libvirt code to support "-net dump" because it is more comfortable to me and to users here. I don't know if it is interesting to the community, but... most of the code is ready if someone needs. Julio Cesar Faracco 2016-05-05 10:34 GMT-03:00 Daniel P. Berrange <berrange@redhat.com>:> On Wed, May 04, 2016 at 12:37:14PM -0300, Julio Faracco wrote: >> Hi guys, >> >> Does anybody know how to dump the network trafic from each virtual >> machine using libvirt? >> >> Here, we usually use VPN softwares and other network tools inside >> Virtual Machines (Windows and Linux). Sometimes, this applications >> does not work properly, so we need to dump the network traffic of each >> Virtual Machine to compare and debug. >> >> How can I enable it using libvirt? I know that if you use a QEMU >> instance, you can enable the dump using "-netdev dump,...". > > Libvirt does not support the QEMU netdev dump feature at this time. > > Best bet is to just connect tcpdump to the TAP device associated > with the virtual machine in question. See the XML config for the > name of the currently assigned TAP device > > Regards, > 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 :|
Daniel P. Berrange
2016-May-12 15:59 UTC
Re: [libvirt-users] Dump network traffic from each VM.
On Thu, May 12, 2016 at 11:32:00AM -0300, Julio Faracco wrote:> Hi Daniel, > > I changed the libvirt code to support "-net dump" because it is > more comfortable to me and to users here. > > I don't know if it is interesting to the community, but... most of the > code is ready if someone needs.Sure, we're always happy to receive patches if you want to polish it off for submission Regards, 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 :|
Julio Faracco
2016-May-12 16:45 UTC
Re: [libvirt-users] Dump network traffic from each VM.
Thanks Daniel! I will clean up the trash and submit a patch or a RFC soon. Julio Cesar Faracco 2016-05-12 12:59 GMT-03:00 Daniel P. Berrange <berrange@redhat.com>:> On Thu, May 12, 2016 at 11:32:00AM -0300, Julio Faracco wrote: >> Hi Daniel, >> >> I changed the libvirt code to support "-net dump" because it is >> more comfortable to me and to users here. >> >> I don't know if it is interesting to the community, but... most of the >> code is ready if someone needs. > > Sure, we're always happy to receive patches if you want to polish > it off for submission > > Regards, > 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 :|