Install Kali Linux Virtual Machine on Apple M1 with UTM

Mery Antona
Women in Technology
5 min readJul 7, 2023

In this article, my first one here, I will show you how to install Kali Linux in UTM on an Apple M1 (a Mac Mini in my case).

Two of the most famous Virtualization apps, Virtual Box and VMware, don’t support the Apple M1 chip. Parallels, a native app for Mac OS devices, is not free (around 90 €).

So if you follow up, you will be able to install Kali Linux on your M1 for free with UTM.

UTM

UTM is a free virtualization software created for macOS. It is based on QEMU, a generic and open-source machine emulator and virtualizer.

UTM allows you to run Windows, Linux and more operating systems. You can also emulate older operating systems. Take a look at their gallery for some examples of what you can run inside of UTM.

KALI LINUX

Kali Linux is the favourite Linux Debian-based distribution for all sorts of pentesters, security auditors and cybersecurity enthusiasts.

It is equipped with more than 700 hacking tools and receives updates frequently from Offensive Security.

Step 1: Download and install UTM.

  1. Go to https://mac.getutm.app/
  2. Click on Download.
Click on the Download button

3.Open the UTM.dmg and drag it to Applications.

You can choose to download for free or download from the App Store, which will cost you 9,99€. The only advantage you get if you pay is automatic updates.

Step 2: Download the Kali Linux ARM image.

1. Visit https://www.kali.org/get-kali/#kali-installer-images

2. Select Apple Silicon (ARM64) and choose the ARM offline installer.

3. Download the installer. You can use torrent for faster velocity or your browser.

Step 3: Importing Kali ARM Image to UTM

  1. Open UTM and click on File → New Virtual Machine.
  2. Select Virtualize.

3. In the Operating System, select Other.

4. Browse to add the ISO Image you downloaded as the Boot Image. It will be called something like “kali-linux-2023.2a-installer-arm64”.

Click Continue.

5. Choose your Hardware Configuration. Default is fine for now. Give the memory from 3048mb to 4096mb for a stable and fast operating system.

6. Specify the storage size for the VM hard drive. At least 14–16 Gb recommended.

Don´t be shy.

7. Choose if you want a shared directory with your main computer.

8. Review your Summary and Save.

9. Before we run the Kali installation, we will have to change some settings in the VM so the installation does not get stuck in that ugly black screen everyone is reporting.

Click on the top-right settings icon.

10. Under Devices, click on New Serial. That way, we will have a terminal installed, so we can proceed with the console mode installation.

Trust me, you need to do it this way.

Step 4: Install Kali Linux

1. Run the VM for the first time. The Kali installation menu will pop up.

This is the tricky part; you will see two screens. One for the Regular installation and one for the terminal installation. The second one is the one we need. You can minimize the other.

If you only want to see the terminal window, you will have to remove Display under Devices.

Select install.

2. Proceed to the installation. You will be prompted with different options like: lenguaje, location, keyboard configuration, hostname for the system, domain name (leave blank for now), user account and password, clock configuration, partition disk (use guided-use entire disk, unless you want to encrypt your hard drive), disk to partition (leave it to default), finish partition.

Save changes to disk.

In software selection, we want to go with default and install Xfce (Kali’s default desktop environment). Leave the rest of the options checked so Kali tools get installed too.

3. Wait for Kali Linux to install in UTM. This can take some time.

4. Once the installation is complete. DO NOT BOOT THE MACHINE; instead, close this window and the VM. Don´t be afraid; you will not break the virtual machine.

5. Remove the installation media (The ISO Image), so you can boot into the new system rather than restarting the installation.

6. Remove also the Serial from Settings — Displays and click save.

7. Boot the Kali Linux Machine for the first time and log into the user you created before.

Step 5: Last adjustments

The last thing we need to do, so we can share the clipboard with our main machine and resize the display, is install the Spice Tools inside our brand new Kali Linux.

  1. Go into a terminal and type this command:
sudo apt install spice-vdagent spice-webdavd

Wait for the Spicy Tools installation to finish.

2. Restart your Kali Linux to save changes and enjoy !!

Conclusion

In this article, you have learned how to install Kali Linux on an Apple M1 Laptop in UTM. UTM is free, and you can easily use it to run any OS on your Mac.

Kali Linux is a must if you are planning on using some specific tools within the cybersecurity field.

Thanks for reading !

--

--

Mery Antona
Women in Technology

Security Analyst - Ethical Hacking - Pentesting - Scripting