Ubuntu for ARM on Apple Silicon (ARM64 VM guide)
Run Ubuntu ARM64 on an M1, M2, M3 or M4 Mac in a VM: find the right image, pick an app, size the VM, install Ubuntu and fix common boot problems.
Published · 8 min read
Key takeaways
- Download an ARM64 (aarch64) image, never amd64, and check that the distro publishes an ARM64 build before you download anything.
- A good starting VM for Ubuntu Desktop is 4 GB of RAM, 2 to 4 CPU cores and a 30 GB disk. You can change it later.
- SoftVM is free and runs ARM64 Linux on Apple Silicon (limits are listed at the end). For untrusted software, use a throwaway VM, share as little as possible and delete it afterward.
Yes, you can run Ubuntu on an M1, M2, M3 or M4 Mac in a virtual machine (VM), as long as the image you download is ARM64, also called aarch64, and not amd64. SoftVM can run ARM64 Ubuntu for free on Apple Silicon, and the same image rule applies in UTM, Parallels and VirtualBox.
The image is the step that fails most often, so start there.
Step 1: Find the current ARM64 image
Apple Silicon Macs normally need ARM64 Linux guests, while Intel Macs need x86_64. Look for arm64 or aarch64 in the filename or on the download page. An amd64 ISO is the wrong one.
Release numbers change, so don't copy a filename from a tutorial. Get the current image from Ubuntu itself:
- Open Ubuntu's official download page and choose Ubuntu Server for Arm. This is the ARM64 download on the main site.
- For the desktop edition, open Ubuntu's cdimage site, pick the release folder you want (the current LTS is a safe choice), and look for the file ending in
desktop-arm64.iso. The desktop ARM64 ISO can be missing from the main download page. - If you can't find a desktop ISO, use the Server image and add the
ubuntu-desktoppackage after installing (Step 4 covers this). - Compare the download's checksum with the
SHA256SUMSfile published next to it:
shasum -a 256 ~/Downloads/your-ubuntu-image.iso
Older tutorials often name releases that have since been replaced, so treat their version numbers as examples only.
Does the distro publish ARM64 at all?
An ARM64 build is still not a guarantee. Apple Silicon uses 4 kB or 16 kB memory pages, which some distros can't handle. BellSoft gives RHEL 8.x as an example that can't be installed even though it has an ARM64 build. Ubuntu Desktop (latest LTS, ARM64) and Alpine are listed there as options that work.
Step 2: Pick the app that fits your need
All of these can run ARM64 Linux on Apple Silicon, with different trade-offs:
- SoftVM is free and runs ARM64 Linux, with macOS guests alongside. It is built on Apple's Virtualization framework.
- UTM is free to download. In one tutorial on an M2 Mac, choosing Virtualize with the Ubuntu Server ARM ISO gave near-native speed. UTM's Emulate mode can also run x86-64 guests, but it is slower, so ARM64 ISOs are recommended wherever possible.
- Parallels Desktop is a paid product. Parallels and VMware Fusion Pro can run Ubuntu ARM64, and they are the usual choices if you also need Windows.
- VirtualBox on Apple Silicon needs the ARM64 build, and you set the VM version to Ubuntu ARM 64 Bit.
One point of confusion in UTM guides: the 'Use Apple Virtualization' checkbox switches the VM between Apple's framework and the QEMU backend, which is why some tutorials seem to contradict each other. That source is one user's notes, so check UTM's own documentation for current behavior.
Step 3: Create the VM in SoftVM
SoftVM requires a Mac with an M1 or newer, macOS 14 Sonoma or later on the host, and at least 8 GB of memory. 16 GB is better for larger VMs or several at once. The macOS 12 and later figure in our materials refers to which macOS versions you can run as guests, not to the host. The SoftVM FAQ has the current list.
- Download the ARM64 Ubuntu ISO yourself (Step 1). SoftVM doesn't download installers for you yet.
- Open SoftVM and create a new VM. Choose Linux and select the ISO file.
- Set CPU cores, memory and disk size in the guided setup.
- Review the summary, then create the VM and start it.
How much RAM, CPU and disk?
The guides range widely. BellSoft suggests at least 2 GB of RAM and 15 GB of disk for Ubuntu Desktop, a VirtualBox tutorial uses 4 GB, 4 cores and 20 GB, and a UTM guide suggests at least 8 GB of RAM for development work.
A reasonable starting point for desktop use is 4 GB of RAM, 2 to 4 CPU cores and a 30 GB disk. That sits above the minimums, and the extra disk leaves room for updates and packages. Raise memory for heavy development work. You can change the VM's settings later if you gave it too little or too much.
On an 8 GB Mac, don't hand more than about half the memory to the VM, because macOS needs room too. SoftVM shows how much memory your Mac has left while the VM runs.
Step 4: Install Ubuntu
When the VM starts, it boots from the ISO and the installer appears. Installer screens differ slightly between releases, but the choices are the same in kind.
Desktop ISO (graphical installer):
- Pick your language and keyboard layout.
- Choose to install Ubuntu, and the normal installation.
- For the disk, choose to erase the disk and install Ubuntu. This only affects the VM's virtual disk, not your Mac.
- Set your time zone, name, computer name, username and password.
- Let the install finish, then restart when prompted.
Server ISO (text installer):
- Choose your language and keyboard layout, then the Ubuntu Server install type.
- Accept the network defaults unless you know you need something else.
- For storage, use the entire (virtual) disk with the suggested layout.
- Set your name, server name, username and password. Skip OpenSSH and extra packages unless you need them.
- Wait for the install to finish, then choose reboot.
If the VM boots into the installer again after the restart, the ISO is still attached. Check the VM's settings for the ISO and remove it, or ask via SoftVM help and support.
First login, and adding a desktop to Server
Log in with the username and password you just created. Server gives you a text console. To get a graphical desktop, update first and then install the desktop package:
sudo apt update && sudo apt upgrade -y
sudo apt install ubuntu-desktop
sudo reboot
The download is large, so allow some time. After the reboot you should see a graphical login screen.
After the install
- Guest tools. These are extra packages inside Linux that help with clipboard, display and file features. Which ones you need depends on the app and backend, so follow your app's documentation instead of installing packages from a random tutorial.
- Clipboard. SoftVM shares the clipboard between your Mac and the VM. That is convenient, and also a reason not to paste secrets while untrusted code runs.
- Display resolution. If the screen looks too small or blurry, check the VM's display settings in your app, then Settings > Displays inside Ubuntu.
- Networking. Most VMs get a working connection by default. If not, run
ip ain the guest to see whether it received an address, then check the VM's network settings in the app. - Updates. Run
sudo apt update && sudo apt upgradenow and then.
If it won't boot
- Black screen at start. Wait a few minutes first. Then confirm the ISO is ARM64 and that its checksum matches. An
amd64ISO is the usual cause. - Stuck or crashing installer. Create a fresh VM with a little more memory, such as 4 GB, and the same ISO.
- Black screen after install. Make sure the ISO isn't still attached. If you installed Server and added the desktop package, give the first graphical boot a minute.
- Still failing. Try a different release folder on Ubuntu's cdimage site, or contact SoftVM help and support.
Kali and other ARM64 distros
SoftVM's Linux guests include Ubuntu, Fedora, Debian, Kali and Red Hat, provided the distro publishes an ARM64 ISO. For Arch Linux, see our setup guide for Arch Linux ARM in a Mac VM.
Why some apps are missing on Ubuntu ARM
Some programs are x86-only and have no ARM Linux build. Google Chrome and Dropbox are two examples. Look for an ARM64 build or a web version before you assume something is broken.
Using the VM for untrusted software or AI agents
A VM reduces risk, but it doesn't remove it. The clipboard, shared folders and the network can all carry things across. This checklist keeps the exposure small:
- Share nothing you don't need. If your app offers shared folders, leave them off.
- Be deliberate about the network. Check the VM's network settings before you start, and don't give the VM credentials to your accounts.
- Keep the VM on the Mac. SoftVM stores VMs and their disks on your Mac and doesn't send them to our servers. There's no setting yet to move them to an external drive.
- Delete it when the job is done. Keep the ISO so you can build a fresh VM in a few minutes.
Save & Restore saves a VM's state so you can close it and resume later, but it can't roll back an infected or broken system. For risky work, create a VM, use it, then delete it.
Where SoftVM doesn't fit
SoftVM doesn't offer Windows, Android or iOS guests, x86 emulation, snapshots, or GPU/Metal acceleration in guests, and it needs an Apple Silicon Mac. If you need any of those, pick an app that has them: Parallels, UTM or VMware Fusion for Windows, and UTM's Emulate mode for x86-64 guests.
For macOS guests, see how to run a macOS VM on an Apple Silicon Mac. For setup questions, visit SoftVM help and support.
Frequently asked questions
Which Ubuntu ISO do I need for an M-series Mac?
The ARM64 build, also labeled aarch64. An amd64 ISO is built for Intel or AMD processors and will not run natively on Apple Silicon. If the desktop ISO is missing from Ubuntu's main download page, check Ubuntu's cdimage site, or install Ubuntu Server for Arm and add the desktop package.
Can I run x86 or amd64 Ubuntu on an M-series Mac?
Only through emulation. UTM's Emulate mode can run x86-64 guests on Apple Silicon, but it is slower than running an ARM64 guest natively. SoftVM does not do x86 emulation.
Does Kali Linux work in a VM on Apple Silicon?
Kali publishes ARM64 images, and in our own testing the ARM64 Kali installer runs in SoftVM. That test covered the installer only, so it is not a promise about every Kali tool or workflow.
My VM shows a black screen or won't boot the installer. What should I check?
First confirm the ISO is ARM64 and that the download is complete (compare its checksum with Ubuntu's published SHA256SUMS file). Then give the VM a few minutes, since the first boot can be slow. If it is still stuck, create a fresh VM with the same ISO and slightly more memory.
Is a VM safe enough for untrusted scripts or AI agents?
It is safer than running them on your Mac, but not risk-free. Anything you connect to the VM, such as the clipboard, shared folders or the network, can carry problems across. Keep the VM minimal, put nothing sensitive in it, and delete it when the job is done.
Sources
- Linux virtual machine on Mac (Hivenet)
- Install Ubuntu on Apple Silicon Macs using UTM (Lorenzo Bettini)
- How to install Linux on a Mac with Apple Silicon (BellSoft)
- Create a Linux VM on Mac (Catherine Pope)
- Complete guide to virtualize Linux on Apple Silicon with UTM (Alemasone)
- macOS UTM notes (jafingerhut, GitHub)
- Run Ubuntu on Apple Silicon with VirtualBox (KSK Royal)
- Ubuntu VM on Mac (LinuxVox)
- #ubuntu
- #arm64
- #apple silicon
- #linux vm
- #kali
Keep reading
Linux on Apple Silicon5 min readArch Linux ARM in a Mac VM: A Safe Setup Guide
Arch Linux ARM runs as a VM on Apple Silicon Macs. Here is what it takes, which tool fits, and how to keep it a safe, disposable sandbox.
Unlock Futurix Ltd
Choosing a VM app4 min readSoftVM vs UTM: A UTM Alternative for Mac
SoftVM vs UTM for Mac: SoftVM is a free, guided app for macOS and ARM64 Linux VMs; UTM adds x86 emulation, Windows and Intel Mac support. Who each fits.
Unlock Futurix Ltd
Choosing a VM app2 min readIs SoftVM free? Yes: price, tips and what it needs
Yes, SoftVM is free on the Mac App Store: no subscription, no ads, optional tips. Here is what it needs, what stays private and what it can't do.
Unlock Futurix Ltd
Get the app
SoftVM
SoftVM is a free virtual machine app for Mac. Run macOS, Ubuntu, Fedora and other Linux VMs on Apple Silicon with Apple's native virtualization.