Need help connecting USB WiFi Adapter to virtual box

Adzkash99

BANNED
Joined
Jan 1, 2021
Messages
132
Reaction score
29
I am trying to install driver for Realtek 8812BU so that it functions properly on my virtualbox, because whenever I try to connect it to my kali machine on vbox it just stops functioning basically as soon as i plug it in, but works fine on my host. MY WIRELESS Adapter is an AIGITAL 1200M Realtek USB 3.0 802.11ac.
I tried loads of solutions which didn’t work or came to a dead end. I figured I need to install the drivers on the virtual machine inside the virtual box but can’t seem to do so.

I followed all these commands:

sudo apt update sudo apt -y install dkms git bc git clone https://github.com/fastoe/RTL8812BU.git cd RTL8812BU VER=$(sed -n 's/\PACKAGE_VERSION="(.*)"/\1/p' dkms.conf) sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} sudo dkms add -m rtl88x2bu -v ${VER} sudo dkms build -m rtl88x2bu -v ${VER} sudo dkms install -m rtl88x2bu -v ${VER} sudo modprobe 88x2bu sudo reboot

When I add the dkms it is fine and says it is added.. but after that it shows this:

Kernel preparation unnecessary for this kernel. Skipping...

Building module: cleaning build area... make -j4 KERNELRELEASE=5.10.0-kali3-amd64 KVER=5.10.0-kali3-amd64 src=/usr/src/rtl88x2bu-5.6.1....(bad exit status: 2) Error! Bad return status for module build on kernel: 5.10.0-kali3-amd64 (x86_64) Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.

I dont know what to do or how to fix this stupid problem with my WiFi adapter. If someone could please save me, i would really appreciate it.
 
What kind of connection are you using for the vm? Try bridge network connection. Not an expert in vmware, but the bridge network works fine for me.
 
What kind of connection are you using for the vm? Try bridge network connection. Not an expert in vmware, but the bridge network works fine for me.
Bridged doesn’t work either
I tried
 
I would suggest you to use vmware workstation instead. VBox has these known problems.
 
Back
Top