I just can't get my Realtek USB WiFi adapter to work on Kali. I have read hours of forum posts but still can't resolve things. I'm hoping somebody here can help me.

My setup:
- MacBook Pro (Running MacOS 10.14.6 Mojave)
- Kali running as a VM inside Virtualbox
- Realtek Wifi adapter (
Realtek 802.11 ac NIC [0210]). Uses RTL8812AU chipset)

Kali version:
root@kali:~# uname -a
Linux kali 5.2.0-kali3-amd64 #1 SMP Debian 5.2.17-1kali1 (2019-09-27) x86_64 GNU/Linux

Issue:
I have virtualbox setup ok to pass the USB adapter through to Kali. The Realtek adapter is listed in USB devices:

root@kali:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:b812 Realtek Semiconductor Corp. 802.11ac NIC
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@kali:~#


I have installed the driver using the following commands:

apt-get update && apt-get upgrade
git clone https://github.com/aircrack-ng/rtl8812au
apt-get install dkms
cd rtl8812au
./dkms install.sh
./dkms remove.sh


Here is the status:

root@kali:~# dkms status
realtek-rtl88xxau, 5.2.20.2~20190617, 5.2.0-kali3-amd64, x86_64: installed
rtl88x2bu, 5.2.4.4: added
virtualbox-guest, 6.0.12, 5.2.0-kali2-amd64, x86_64: installed
virtualbox-guest, 6.0.12, 5.2.0-kali3-amd64, x86_64: installed
root@kali:~#


However, no wireless interface is listed:

root@kali:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.6 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe7c:8e8e prefixlen 64 scopeid 0x20<link>
ether 08:00:27:7c:8e:8e txqueuelen 1000 (Ethernet)
RX packets 70 bytes 9612 (9.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 168 bytes 15041 (14.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 28 bytes 1512 (1.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 1512 (1.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

root@kali:~# iwconfig
eth0 no wireless extensions.

lo no wireless extensions.

root@kali:~#

I have rebooted Kali, but still no luck. Device is listed in USB devices, but no network interface.

Any suggestions?

Many thanks.