Wireshark cannot see traffic from a VirtualBox guest on Windows 7

54,080

Solution 1

When guest OS is set up, a network interface is assigned to it.
Is wireshark listening on that interface?
In linux, there is an option to use "any" interface, which listens on all possible network interfaces, but I don't know if such option exists on the windows.

Here is explained that wireshark in windows has difficulties listening on loopback interface, the interface used when machine sends messages to it self.

Solution 2

Configure the Attached to: combo box to Bridged Adapter and set the Promiscuous Mode: combo box to Allow All.

Having done this I'm now seeing all traffic going to/from the guest OS.

Solution 3

In my experience Wireshark only sees the host's really external network interfaces. For example, if you use a web browser to look at a web page served by a web-server on the same PC (http://localhost), you can't use Wireshark to look at this traffic.

Similarly, the delivery of data by the VM to the host is local and not directed through a physical NIC. Presumably this provides no structure in the host operating system that looks like a "network interface" to Wireshark.

Solution 4

I have an idea for solve your issue , too late but hope it help somebody else:)

Create Host-Only Adapter and bridge with your LAN Adapter. run wireshark on LAN Adapter, It will do the work

Share:
54,080
santiagozky
Author by

santiagozky

Updated on September 18, 2022

Comments

  • santiagozky
    santiagozky over 1 year

    I have been trying to use Wireshark to capture some traffic that comes from a virtual machine.

    The setup is:

    • Windows 7 host
    • Ubuntu guest
    • VirtualBox 4

    I send some packets from the guest to the host or another IP in the host LAN. The packets get there, but Wireshark cannot see them.

    I have run Wireshark on both the guest and the host. Curiously, if I send the packet to another computer, the packets are captured without problem in the second machine. I don't understand how I cannot capture the packets in the machine that is sending them.

    How should I setup VirtualBox, Windows 7 or Wireshark in order to capture the packets sent by the guest machine?

    • Admin
      Admin almost 13 years
      You can try if the following works out for you: Wireshark under virtualbox broken after version 4
    • Admin
      Admin almost 13 years
      @slhck that is for running wireshark in the guest, he wast to know why it is not capturing on the host.
    • Admin
      Admin about 2 years
      @santiagozky - answer should be changed. Wireshark now supports this, but there are software bugs.
  • santiagozky
    santiagozky almost 13 years
    the link explaining the loopback problem in windows was very helpful.
  • Rikku121
    Rikku121 about 3 years
    This definitely did it
  • Admin
    Admin about 2 years
    This is fixed on Wireshark now. See my answer.