I have a Kali distro installed by the .iso file as a VBox virtual machine, with a Win11 kesktop host (AMD Ryzen 7). My desktop has an AWUS036ACH Alfa Network adapter, known to be capricious when used with Linux. I installed its drivers using aircrack-ng Github page (Realtek 8812AU). The device is recognized, I can use it in monitor mode.
The first connection to my AP always works. To do so, I use VBox bridge mode and I activate the USB that corresponds to my WiFi adapter. The problem occurs when I want to connect to my AP again, let’s say after a reboot, or after having switched to NAT.
The Kali WiFi icon rotates, iwconfig command doesn’t work anymore (it is stuck after I press enter), same thing for networking and NetworkManager services.
After a while, my VM freezes.
The only way to remove that bug is to manually go into nmcli, delete the entry for my AP, and start the connection process over. I also tried to create a .conf file passed as a parameter to wpa_supplicant, but the problem remains the same. It seems that the NetworkManager daemon can’t handle a reconnexion.
By the way, I almost have the same set-up on my laptop, but I don’t have any problem. The only difference is that my laptop also has an internal WiFi adapter, so when I plug the Alfa device when my Kali VM is running, it automatically detects it thanks to the USB passthrough. The other difference is that the running Kali on my laptop is a bit older, but it’s up-to-date.