Blog ·
Run Ubuntu and Linux on Apple Silicon Macs
How to install Ubuntu on a MacBook and run Fedora, Debian, or Kali in a Linux virtual machine on M1, M2, and M3 Macs, with how to choose a distro.
Create a VM from an ARM64 image
On an Apple Silicon Mac (M1, M2, M3, and every later chip), you run Linux by creating a virtual machine from an ARM64 installation image. When you pick a distribution, Any OS downloads and verifies the official image and carries out the installation, so you never have to hunt for an ISO file. Linux distributions are free, so you can start at no extra cost by downloading Any OS and following Create an Ubuntu VM.
- The way to do it on a Mac is a virtual machine. Boot Camp is not available on Apple Silicon.
- The image must be for ARM64 (aarch64). x86-only binaries do not run as they are.
- The distributions Any OS supports are Ubuntu, Fedora, Debian, Red Hat Enterprise Linux, CentOS Stream, Kali, and Omarchy.
- After installation, adding Any OS Tools turns on graphics acceleration, clipboard, shared folders, and seamless mode.
- Linux distributions are free, and Any OS is also free during the beta with no limits on features or time.
Why run Linux on a Mac
Many developers use Macs, but most servers run Linux. If you keep an environment identical to your deployment server running next to your Mac, builds and runtime results are less likely to diverge.
| Use | What you do in the Linux VM |
|---|---|
| Development environment | Build and run on the same distribution as your deployment server. |
| Containers | Run containers and Kubernetes as they are on a Linux kernel. |
| Learning Linux | Install freely and break things. Roll back with a checkpoint. |
| Security tools | Use a distribution like Kali separated from your Mac. |
| Linux desktop apps | Run Linux apps that need GPU acceleration too. |
A VM is isolated from your Mac, so breaking the system inside it does not affect the Mac. Keeping several experimental VMs around is covered in Running several VMs on one Mac.
How to choose a distribution
These are the distributions on the Any OS supported OS list. If you are new, Ubuntu 24.04 LTS is the safest choice.
| Distribution | Supported versions | Pick it when |
|---|---|---|
| Ubuntu | 24.04 LTS, 26.04 LTS | You are new, or you need a distribution with plenty of documentation |
| Fedora Workstation | 39 to 44 | You want to try new software early |
| Debian GNU/Linux | 11, 12, 13 | You need a stable, lightweight base environment |
| Red Hat Enterprise Linux | 9, 10 | You want to match the same family as enterprise servers |
| CentOS Stream | 9, 10 | You want to check the RHEL family ahead of time |
| Kali Linux | 2021.3 and later | You need security testing tools |
| Omarchy | 4.5 RC1 | You want a tiling window manager environment |
What we verified
- Ubuntu 24.04 supports GPU acceleration, Any OS Tools, shared folders, and clipboard.
- Ubuntu 26.04 was verified through unattended installation from the official desktop ISO.
- Fedora, Debian, CentOS Stream, and Kali were verified for installation, GPU acceleration, display resizing, clipboard, shared folders, and suspend and resume.
- Omarchy was verified for the items above plus seamless mode, the Korean input method with language switching, and reverting to a checkpoint while running. The official ARM64 image is 4.5 RC1.
- RHEL is installed from the ARM64 installation image.
What you need
You need an Apple Silicon Mac and macOS 26 Tahoe or later. Intel Macs are not supported. You need about 500 MB of free space for the Any OS app and tens of GB for each VM. The full requirements are in System requirements.
| Item | Ubuntu VM minimum | Recommended |
|---|---|---|
| CPU | 1 core | 4 cores |
| Memory | 2 GB | 4 GB |
| Disk | 16 GB | 32 GB |
If your Mac has 16 GB of memory, giving the Linux VM 4 GB and leaving the rest to the Mac is a reasonable setting. You can change memory and disk later in CPU, memory, and disk.
Ubuntu installation steps
The sequence is the same for other distributions. Just pick a different distribution name in the new virtual machine.
- 1.Download Any OS, install it, and launch it.
- 2.Click
New virtual machine, openLinuxand thenUbuntuunderSystem, and pick a version. - 3.Any OS downloads and verifies the ARM64 installation image from the official Ubuntu server.
- 4.When you start the VM, the Ubuntu installer appears in the VM window. Follow the prompts to finish installing and restart Ubuntu.
- 5.After logging in to the VM, click
Any OS Tools…on the card to install the tools. On Ubuntu they install automatically with nothing else to click. - 6.When the notice
Applied after restarting Ubuntuappears, restart Ubuntu once more.
Working with your Mac through Any OS Tools
Any OS Tools handles every feature that lets you use the Linux VM as part of your Mac workflow instead of as a separate computer.
| Feature | Behavior |
|---|---|
| Graphics acceleration | Draws GNOME and OpenGL and Vulkan 3D apps on the Mac GPU. |
| Clipboard | Exchanges text, images, and files with the Mac in both directions. |
| Shared folders | Mac folders open at ~/Mac/<share name> in your home folder. Up to 16. |
| Seamless mode | Linux app windows appear like Mac windows without a VM window, and show up in the Dock too. |
| Keyboard | The same language switch key you use on the Mac also switches the Linux input method. |
| USB, network | Attach development boards and storage devices, and give the VM a router address with bridged networking. |
You set shared folders in the Sharing tab of Settings while the VM is off. Each folder can be set read-only, so it works well to keep source code on the Mac and build it in Linux. For details, see Shared folders and Seamless mode.
Frequently asked questions
Can I install x86 Ubuntu as it is on an M1, M2, or M3 Mac?
The installation image must be for ARM64. Any OS downloads and installs the official ARM64 image, and x86-only binaries do not run as they are. Software that has ARM64 packages installs and runs just as it does on regular Linux.
Do Linux distributions cost anything?
Ubuntu and other Linux distributions are free. Unlike Windows, you do not need to buy an operating system license separately.
How much is Any OS?
It is in beta now, so it is free with no limits on features or time. After the official release, you still get 14 days of all features with no limits, and after that you keep using the Free plan (1 VM, 2 vCPUs and 4 GB of memory per VM) without a license. The paid option is a permanent license, not a subscription. For exact amounts, see Pricing.
Can I create several Linux VMs?
You can create as many as your Mac's storage and memory allow. However, the Free plan allows 1 VM, so using several requires a personal or team license (there is no limit during the beta). A common approach is to make one VM per distribution and start it when you need it.
Which Linux desktop gets installed?
The desktop environment of the distribution's official image is installed. For Ubuntu it is GNOME. When installation finishes, the desktop opens and you are logged in right away.
Getting started
- Download Any OS: install it on an Apple Silicon Mac with macOS 26 Tahoe or later.
- Linux on Mac: see the supported distributions and features on one page.
- Pricing: free with no limits during the beta, and a Free plan afterward.
Installing Ubuntu on a MacBook takes three steps: choose a distribution, run the installer, and install Any OS Tools. Any OS takes care of finding the image and worrying about ARM64 compatibility.