Sniffing the Vmware vmnet1 network with Wireshark

14,002

Solution 1

VMWare's products seem to be all over the place with respect to capturing on the host. As davey says, on Linux you capture on the host without any trouble. Server on Windows lets you list interfaces but not capture from them. Fusion doesn't provide a BPF device so you can't capture using tcpdump or Wireshark. They do provide their own capture utility, although it doesn't support filtering:

/Library/Application\ Support/VMware\ Fusion/vmnet-sniffer

The equivalent on Windows (in case anyone needs it) is vnetsniffer.

On Mac VMware Fusion 5, the location is:

/Applications/VMware\ Fusion.app/Contents/Library/vmnet-sniffer

Solution 2

This maybe a "Fusion" thing. I can definitely capture the "vmnet" interfaces using Wireshark on my linux boxes.

Question: Can you use "tcpdump" against the vmnet interfaces:

$ sudo tcpdump -i vmnet1 -w /tmp/vmnet1.dmp

Then use wireshark to view the capture file?

Share:
14,002

Related videos on Youtube

Benjamin
Author by

Benjamin

Updated on September 17, 2022

Comments

  • Benjamin
    Benjamin over 1 year

    I have a virtual machine deployed in vmware fusion which is communicating with the host over the interface vmnet1. Unfortunately, wireshark does not offer me to to listen on that interface.

    Is there a solution for wireshark to listen on that interface? Please note that I am running on Mac.

    Thanks for that.

  • Benjamin
    Benjamin over 14 years
    I would like to be able to see the packets going through the interface vmnet1. Wireshark simply does not offer me to intercept those packets. Does that makes more sense? Sorry if my original post was not clear enough.
  • harry
    harry over 12 years
    seems tcpdump on vmnets dont work, just tried it out.