This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Wireshark cannot see wireless interface on Ubuntu on virtual machine

0

Hello, I have installed wireshark on ubuntu through VM.I could just simplify everything and install it on my normal OS (windows 10), but I would like it in my open source OS just so I can get more familiar with it.

The whireshark version I am using is: 1.12.1

The problem I have is, when I check the interfaces, there is nothing in regards to my network. When I type in the command "tshark -D" I get the following:

  1. eth0
  2. any
  3. lo (Loopback)
  4. bluetooth-monitor
  5. nflog
  6. nfqueue
  7. usbmon1

None of these are referring to my wireless network. I am currently using my school campus WiFi and it is not showing up. Also, when I check all of these interfaces, there is 0 package flow

asked 12 Sep '16, 18:13

alex067's gravatar image

alex067
6223
accept rate: 0%

edited 12 Sep '16, 22:45

sindy's gravatar image

sindy
6.0k4851


One Answer:

0

I have installed wireshark on ubuntu through VM

...

None of these are referring to my wireless network.

Your virtual machine might not have a (virtual) wireless adapter; all the VMs on VMware Fusion on my MacBook Pro have Ethernet interfaces but no Wi-Fi interfaces, even though the MacBook Pro has no Ethernet interface unless I plug in my Thunderbolt Ethernet adapter.

If you want to capture on your wireless network, you'll have to run Wireshark (or tcpdump or whatever) on the host machine, not a VM guest, unless whatever VM software you're using has the ability to provide a virtual Wi-Fi adapter, or unless you get a USB Wi-Fi adapter, plug it into your machine, and have the OS and VM software attach it to the Ubuntu guest rather than to the host (assuming that there's a driver for it in Ubuntu).

answered 12 Sep '16, 21:24

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

I see, but how come I can access the internet through my ubuntu? It says it is connected to a wireless network at the top right, which I would assume indicates that I am indeed connected to the internet through the guest machine, as well as the host?

(12 Sep '16, 22:04) alex067

It is because the virtualization software includes an internal switch or router to which the virtual ethernet adapter of each VM is "connected". But this switch handles ethernet frames, not 802.11 ones; only the ethernet "part" of a received 802.11 frame (simplifying a bit) is extracted and sent to the switch, and vice versa, when your VM sends an ethernet frame, it is encapsulated into an 802.11 and sent out. So from the VM, you cannot control (or at least read from) the wireless interface directly.

(12 Sep '16, 22:18) sindy