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.
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.