4

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.

3 Answers 3

8

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
1

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?

1
  • seems tcpdump on vmnets dont work, just tried it out.
    – user44468
    Oct 15, 2011 at 19:49
0

What are you trying to achieve?

You could listen for packets on your physical interface which it is routed/bridged through. Then, with the source/destination IP, you can make out which packets are going to/from the VM instead of the host.

1
  • 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.
    – Benjamin
    Dec 16, 2009 at 5:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .