How to get TP-Link Wifi USB adapter to work in Kali Linux?

Hello Experts,

I've spent way too much time trying to find answers to this so I'm posting the question on here.  I am working with Virtualbox Version 4.2.22 r91556 and I am running Kali Linux as one of my virtual machines.  I'm trying to get my TP-Link TL-WN722N wifi USB adapter to work inside of my virtual machine, but I keep getting "no wireless extensions" when I run "iwconfig" in the terminal.  I've messed around with the settings over and over and can't seem to get the thing to work no matter what I try.  Can someone who knows what they are doing please walk me through this and make sure I have all of the settings correct and what not?  I'd greatly appreciate it.
Brent JohnsonAsked:
Who is Participating?
 
rindiConnect With a Mentor Commented:
Sorry for the late reply, I had missed your comments somehow.

You must disable the adapter for your Windows host first, or it won't be available in Kali. It can only be available on one system at a time, either the host, or a VM. If it is being used by the Windows Host, then VBox will just present Kali with a Virtual LAN adapter (in your last screenshot as eth0), and not as a WLAN adapter. That way you get connectivity within the VM, but you won't be able to do any Wireless penetration testing that way.
0
 
JohnConnect With a Mentor Business Consultant (Owner)Commented:
I thought Virtual Box provided network adapters to the VM. Certainly in VMware Workstation, you do not install network devices inside the guest. The guest should see a Virtual Box network adapter.
0
 
bbaoConnect With a Mentor IT ConsultantCommented:
firstly, you need to enable USB support for the VM. check below official manual about how to change the settings.

https://www.virtualbox.org/manual/ch03.html#idp93064144

secondly, is your WiFi adapter a USB 3 device? be aware USB 3 devices are NOT yet supported hence you can't expect the guest OS to see a USB 3 adapter.

however, some people reported that connecting a USB 2 hub to your computer and then connecting your USB 3 device to the hub will convert the USB 3 to 2 though you can't expect USB 3 performance.

FYI - https://www.virtualbox.org/ticket/8873
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
Brent JohnsonAuthor Commented:
It's USB 2.0, not 3.  I will follow your suggestions and report back after I do so.
0
 
rindiConnect With a Mentor Commented:
You first have to make sure the wireless adapter isn't being used by your host OS. Disable any connections.

Then you must make sure the VBox guest additions are installed in Kali. Many Linux distro's automatically load those additions when they are booted up as they realize they are being run as a VBox VM, but some don't. In that case you can normally install those additions via the package manager (on kali that would be synaptics, and search for VirtualBox).

Then just click on the "Devices" menu option of the VM Window, and your WLan adapter should be available in the USB or Network Devices. Click on it so it gets enabled for the VM. After that it should be available inside kali.
0
 
gheistCommented:
You must install Virtualbox extensions for USB 2.0 support. Then you can map USB network card to VM as USB device without low end hub trick.
0
 
bbaoIT ConsultantCommented:
> You must install Virtualbox extensions for USB 2.0 support.

agree with gheist. but... just wondering if the extension is also available for that particular OS?
0
 
JohnBusiness Consultant (Owner)Commented:
@Brent Johnson  - Also, why not just use the host network connection. That should work just fine with less fuss.
0
 
bbaoConnect With a Mentor IT ConsultantCommented:
> why not just use the host network connection.

@John Hurst per the official manual here, can you please clarify which one of the following modes is "host network connection"?

* Not attached
* Network Address Translation (NAT)
* NAT Network (new)
* Bridged networking
* Internal networking
* Host-only networking
* Generic networking

thanks.
0
 
rindiCommented:
The Guest additions for VBox are usually included with most linux distro's as I suggested earlier, and they can be installed via the Distro's package manager if they aren't already loaded by default. Kali is based on Ubuntu, and in Ubuntu you can definitely install them via the package manager.
0
 
JohnBusiness Consultant (Owner)Commented:
NAT networking, Bridged Networking and Generic Networking should all get a working NIC device that is connected to the host. I am not sure I said this perfectly, but my VM's have working NIC's supplied by VMware and the guest NIC is attached to the host NIC. I assume Virtual Box works similarly.
0
 
rindiCommented:
The reason for wanting Kali to use it's own Wifi interface directly is probably for penetration testing or auditing or similar purposes, as Kali was built with specifically that in mind, and then it needs direct access to the wireless adapter.

If on the other hand you just need to connect to the LAN or Internet, then of course it doesn't need to control the wireless adapter and you can use NAT or bridged networking as provided by the host OS.
0
 
gheistCommented:
It is not about guest additions, it is about USB 2.0 support from host extensions. It needs Administrator/gksu/kdesu access to install kernel drivers for USB2.0 bridge. I assume asker intends to run USB device in monitor mode, which is not possible using bridge network.
0
 
Brent JohnsonAuthor Commented:
Okay, on my host machine in network connections, I have VirtualBox Host-Only Network, Network Bridge, and Wireless Network Connection 2 (which is the TP-Link Wireless USB Adapter).  I have a few other network connections, but I've disabled those.  To get Kali online with the USB adapter, how should these network connections be configured?  Should VB Host-only network connection be bridged to the network bridge?  Which connections should be bridged to what, if at all? I also already installed the USB 2.0 extension pack for VirtualBox and I installed it successfully.  I don't need to have wireless access on my host machine and my Kali vm at the same time...
0
 
JohnBusiness Consultant (Owner)Commented:
Set your guest for NAT or bridged networking. I only use Host only for sand boxing. If the guest does not need Internet, then Host Only could work
0
 
rindiCommented:
Just follow my instructions I first posted. You don't need to nat, bridge or host-only anything.
0
 
Brent JohnsonAuthor Commented:
When you say guest, you are referring to my Kali box, correct?  If so, let me clarify... I DO NEED internet on the GUEST VM, but I don't need internet on both, my host and my guest vm at the same time.
0
 
gheistCommented:
Install host extensions to enable USB 2.0 passthrough. And prove it with lsusb screenshot from the guest.
0
 
Brent JohnsonAuthor Commented:
gheist, do I do all of that within Kali, or in the settings of Kali in VirtualBox?
0
 
rindiCommented:
You just need to click on "Devices" in the Windows of Kali, Where you have the other options like "Machine, View and Help". Then expand "USB Devices", and your TP-Link adapter should be shown there. Enable it by clicking on it, so it gets a tick, and after that it is available within kali.
0
 
Brent JohnsonAuthor Commented:
lsusbhost network connectionskali settings networkkali settings usb
0
 
gheistCommented:
That adapter is supported with kali linux. (and ubuntu 14.04.2 for that matter)

"modprobe ath9k"

and check end of dmesg whats wrong
0
 
Brent JohnsonAuthor Commented:
kali devices
0
 
Brent JohnsonAuthor Commented:
Are all these settings in the screenshots how they should be??
0
 
rindiCommented:
The last one is how it should be. The one with your Windows network connections, it shouldn't be available, and in USB device Filters shouldn't be necessary either.
0
 
Brent JohnsonAuthor Commented:
kalikali2
0
 
Brent JohnsonAuthor Commented:
It's still showing as no wireless extensions and internet is still not working...
0
 
Brent JohnsonAuthor Commented:
Is there a command I need to enter to bring up wifi networks?
0
 
gheistCommented:
virtualbox takes over used USB adapters just fine...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.