Linux – Kali-Linux VM doesn’t get ip when connecting to wireless connection

kali-linuxlinuxnetworkingvirtualbox

I am setting up my Kali Linux VM hosted in Virtual box to work through the wireless interface on my computer. I need to access few tools from the host machine, so I want to have an IP for this machine that I can use, Here is how ifconfig output looks like.

enter image description here

When I have wired connection to the computer itself, the eth0 interface shows an ip address and everything works great. However, when my computer is connected to wireless, I don't seem to get anything working. Here is how virtual-box settings for the VM.
enter image description here

Its probably obvious from my question that I am a newbie to linux, I'll appreciate if some step-by-step type of method could be described that can help solve this issue.

UPDATE
If Attached to is set to NAT, this is what I see in ifconfig. Still cannot access internet etc.
enter image description here

UPDATE-2
After Sam3000 suggestions, below is what I get
enter image description here

Best Answer

I have come across the following as a potential solution, so its worth a try:

  1. Shut down your VM.
  2. Open up VirtualBox - your VM should be powered off
  3. Click on your VM
  4. Click settings
  5. Click Network
  6. You should have adapter 1: (Enable Network Adapter checked) Adapter type: Intel PRO/1000 MT Desktop, Attached to: NAT, Name: (blank)
  7. Click on adapter 2 - here you will create a new adapter.. Adapter type: Intel PRO/1000 MT Desttop, Attached to: Bridged Adapter, Name: en1:[Pick a name, no square brackets]
  8. Click OK
  9. Start your VM and test
Related Question