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.

Benjamin
  • 147
  • 1
  • 1
  • 6

3 Answers3

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
Gerald Combs
  • 6,331
  • 23
  • 35
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?

gm3dmo
  • 9,632
  • 1
  • 40
  • 35
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.

sybreon
  • 7,357
  • 1
  • 19
  • 19
  • 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 '09 at 05:18