I am trying to scan wifi networks via Linux terminal running on a virtual machine. I am running virtual machine on Mac OS. On MAC terminal, I can see all Wi-Fi networks using (airport) command and can connect to one network.
The NetworkAdapter setting for Virtual machine is set to "Share with MAC".
On Linux terminal, When I do ifconfig -a, I get
eth0 & lo
However, when I type : sudo iwlist eth0 scan , I get error message:
sudo iwlist eth0 scan
eth0 Interface doesn't support scanning.
Can someone explain how I can do that with Linux running on virtual machine? What I am doing wrong?