Not able to connect to wireless network on Kali virtual box VM

kachu

New Member
Joined
Sep 15, 2024
Messages
4
Reaction score
0
Credits
33
I have tried almost everything and nothing seems to wok.
I created a VM on virtual box.
And Connected my VM with realtek WLAN for wireless adaptor but it is still not detecting the usb (connected tplink wireless adapter on a usb port)
my base system does.

I tried apt-get update
apt-get upgrade
1726374192034.png


Please see the attached screenshots
1726369624056.png




Please help!
I need some guidance
 
Last edited:


Have you read the Kali Docs, it is not a suitable distribution if you are not Linux experienced and terminal competent?, Have you used a VM/VB before?, if not read up on how they work.


oh and TPlink usually use RTL chipsets, so you may need to download the correct drivers for that particular chipset.
 
Have you read the Kali Docs, it is not a suitable distribution if you are not Linux experienced and terminal competent?, Have you used a VM/VB before?, if not read up on how they work.


oh and TPlink usually use RTL chipsets, so you may need to download the correct drivers for that particular chipset.
Yes, you are right although I used Virtual machines to set up AD labs before, I just started using Linux not long ago and trying to connect to the USB tplink wireless adaptor for the first time.

FYI
I have installed necessary drivers for my tplink on windows and
Extension pack is also installed.

But the documentation looks promising let me go through it once and I will post again soon.
Thank you for your help.

1726410541070.png



1726410606301.png



1726410732662.png



1726410818288.png


1726410913360.png
 
Last edited:
OK so just to remind you, when using a VM/VB the guest system [Kali in your instant] cannot directly connect to the outside world through either the Ethanet or wi-fi which are given over to the Host OS [windows in your case] the guest connects to the outside world by use of a host bridge [shown in your Linux connections]
If you want/need the guest to have a direct connection, you will need a second wi-fi which you will have to set up in the guest USB peramiters
I have installed necessary drivers for my tplink on windows and
Windows drivers will not work in Linux
 
The most elegant solution to this is to simply create a virtual NIC with openvswitch which since it's virtual will be available to guest system.
Then configure virtual NIC (IP address, subnet etc.) and then the guest can then connect to it. (without internet access at that stage)

Then configure nftables to NAT and forward traffic from/to vNIC by using physical NIC internet connection.
Additionally you can install and configure dnsmasq and unbound for DNS and DHCP function to achieve automation and better security if you use multiple VM's.

To figure out all of this and configure properly will take you a day or two.
This is how I use my VM's networking, it's was not simple to set up ofc. so make sure to write down the procedure for future use because it's a lot of configuration but it's worth the effort.

But if you need hardware access to NIC (ex. to hack someones WI-FI) then this won't work. and you'll need to pass trough the physical NIC instead.
 
VMs tend to use a device called eth0 on a private local network. The host machine will also show a network device. I use VMware myself. Tell your VM software to run the network in NAT mode to allow a connection to the outside world. This also allows the host machine to talk to the host running in the VM itself.

Signed,

Matthew Campbell
 
It may be a little confusing but even if you have your host configured with wireless, VM is expecting wired only. Because this is all virtual hardware, then guest will connect just fine as long as you have selected wired device that is supported by your guest kernel.
 
OK so just to remind you, when using a VM/VB the guest system [Kali in your instant] cannot directly connect to the outside world through either the Ethanet or wi-fi which are given over to the Host OS [windows in your case] the guest connects to the outside world by use of a host bridge [shown in your Linux connections]
If you want/need the guest to have a direct connection, you will need a second wi-fi which you will have to set up in the guest USB peramiters

Windows drivers will not work in Linux
Thanks for pointing me to the right direction.
My USB wireless adaptor tplink ac600 archer t2u plus does not support linux/kali.

So I had to find a git repo for the RTL chipset drivers and it now looks like this (greyed out though)

1726554325837.png
 
My USB wireless adaptor tplink ac600 archer t2u plus does not support linux/kali.

So I had to find a git repo for the RTL chipset drivers and it now looks like this (greyed out though)
According to specifications here: https://www.tp-link.com/us/home-networking/usb-adapter/archer-t2u/#specifications
Your USB device will not be suitable for wireless hacking, but should work fine otherwise to have internet connection.

Your problem right now is that you need hardware access to USB adapter, which to make possible the answer is USB passtrough.

Virtual Box which you're using does not support GPU passtrough for sure from what I know and this tells me that it doesn't support passtrough of any kind at all also.

Will you be doing wireless hacking in Kali or some other things unrelated to wireless?
Knowing this you might save yourself from troubleshooting impossible.
 
According to specifications here: https://www.tp-link.com/us/home-networking/usb-adapter/archer-t2u/#specifications
Your USB device will not be suitable for wireless hacking, but should work fine otherwise to have internet connection.

Your problem right now is that you need hardware access to USB adapter, which to make possible the answer is USB passtrough.

Virtual Box which you're using does not support GPU passtrough for sure from what I know and this tells me that it doesn't support passtrough of any kind at all also.

Will you be doing wireless hacking in Kali or some other things unrelated to wireless?
Knowing this you might save yourself from troubleshooting impossible.
sole purpose is to learn wireless hacking.
 
sole purpose is to learn wireless hacking.
Then I suggest you to purchase one of the Alfa cards which are the best for wireless hacking, I have several Alfa cards myself albeit older ones and had great experience with them in Kali-Linux in the past.

Modern USB adapters supporting ac standard can be found here:

In any case I do not suggest VBox for Kali, a much better virtual machine is KVM/QEMU.
For graphical interface you can use virt-manager and for networking openvswitch, and other packages already mentioned in my previous post.

If you're setting up VM on Windows machine and not on Linux then QEMU probably isn't an option IDK, in that case it's much better to create live Kali USB if your only objective is Wireless.

If I'm buying a new one, I'd choose this one:
 
Last edited:

Members online


Top