Kali Linux on M1 Mac

Kali Linux on M1 Mac

Realtek USB Wi-Fi Adapter detection

·

2 min read

I've been able to install Kali Linux and live boot Kali Linux on two different VMs through UTM on Mac OS Ventura (13.1), however, I was never able to get the Alpha USB adapter (AWUS036ACS) to be detected. Make sure you download the ARM64 versions of either the live boot or the installer. All that was shown with iwconfig was the virtualized ethernet port and no USB wifi network adapters. With version 2022.4, I wasn't able to get the installed VM to boot. After googling around it seems that the version 2022.3 works for now with UTM. It seems that both Parallels and VMWare Fusion 13 (free for personal use with registration) will work with Kali Linux and certain USB wifi adapters. Since this Alpha USB wifi adapter uses the RealTek drivers, I was hoping it would work.

VMWare Fusion

After installing VMWare Fusion and having Kali Linux installed correctly. I ensured that the USB wifi adapter which was detected by Mac OS was directed to the Linux VM. Then once booted onto the desktop, I opened up a terminal and updated apt-get index and all installed packages.

sudo apt-get update && apt-get upgrade

Running the iwconfig command shows no wireless adapters:

This adapter is not plug-and-play. We'll have to try finding a compatible driver. Get the latest Linux kernel headers.

sudo apt-get install linux-headers-$(uname -r)

If this is Kali Linux, git should already be installed. If some other distro, ensure it is:

sudo apt-get install git

Then clone the wireless drivers git repository under your location of choice. I like mine under ~/git.

mkdir ~/git
cd ~/git
git clone https://github.com/aircrack-ng/rtl8812au

Install dkms which is a framework where device driver source code can be compiled into the existing Linux kernel.

apt-get install dkms

Navigate to the cloned directory:

cd rtl8812au

Compile the module and install compatible drivers:

sudo make dkms_install

Supposedly this might work also sudo dkms autoinstall, but I didn't test this.

Finally, reboot the VM.

sudo reboot

The iwconfig should show the wireless adapter, in my case it was wlan0.

References