Bringing Linux to Apple M1: A Practical Guide
In this article
The short answer: yes, Linux can run on Apple M1 hardware, but it is not a one-click install. As of now, the most reliable path is to use a virtual machine (like UTM) for daily use, or to install Asahi Linux natively if you are comfortable with a more involved process. This guide covers both approaches, starting with the easier VM route and then detailing the native installation.
What You'll Need
- An Apple M1, M1 Pro, M1 Max, M1 Ultra, or M2 series Mac (M3 support is still experimental).
- At least 20 GB of free disk space for a native install, or 10 GB for a VM.
- A USB drive (16 GB or larger) if you plan to install natively.
- For native install: a second Mac or a way to recover your system (Time Machine backup) in case something goes wrong.
- For the VM route: the free UTM app (from the Mac App Store or the official UTM website).
- An ISO image of a Linux distribution that supports ARM64 (e.g., Ubuntu Server, Fedora, or Debian). For native install, you will use the Asahi Linux installer.
Step-by-Step
Option 1: Virtual Machine (Easiest, Safest)
- Install UTM: Download UTM from the Mac App Store or from the official UTM website (getutm.app). Open the app once to complete setup.
- Download a Linux ISO: Get an ARM64 ISO of your preferred distro. For example, Ubuntu Server ARM64 or Fedora Workstation for AArch64. Avoid x86 ISOs—they will not run natively.
- Create a new VM: In UTM, click the “+” button and choose “Virtualize.” Select “Linux” as the operating system.
- Select the ISO: In the setup wizard, browse to the downloaded ISO file. UTM will automatically configure the architecture (ARM64).
- Allocate resources: Give the VM at least 4 GB of RAM and 2 CPU cores (or more if your Mac has plenty). Set the disk size to at least 20 GB.
- Boot the VM: Click the play button to start the VM. The Linux installer should boot. Follow the on-screen prompts to install Linux inside the virtual disk.
- Install and use: Once installation finishes, you can boot into Linux anytime by opening UTM and starting the VM. This method does not modify your Mac's internal storage, so it is completely safe.
Option 2: Native Install (Asahi Linux)
- Back up your Mac: Before doing anything, make a full Time Machine backup. Native installation repartitions your internal drive and carries a small risk of data loss.
- Check compatibility: Visit the Asahi Linux website (asahilinux.org) and confirm your exact Mac model is listed as supported. M1 and M2 models are generally supported; M3 is not yet.
- Open Terminal: On your Mac, open the Terminal app (found in Utilities).
- Run the installer: Copy the one-line install command from the Asahi Linux website (it looks like
curl ... | sh). Paste it into Terminal and press Enter. This downloads and runs the official installer. - Follow the prompts: The installer will ask for your password and then present a menu. Choose “Install” and select the amount of space you want to allocate to Linux (minimum 15 GB recommended).
- Create the partition: The installer will shrink your macOS volume and create a new partition. Confirm the changes when prompted. Do not interrupt this step.
- Reboot: After the installer finishes, it will reboot your Mac. You will see a new boot option in the startup manager (hold the power button at boot) labeled “Linux” or “Asahi.”
- Complete the Linux install: The system will boot into a minimal installer environment. Follow the on-screen steps to install a full desktop environment (choose from options like KDE Plasma, GNOME, or a minimal install).
- Update and enjoy: Once the base install is done, update the system (e.g.,
sudo dnf updateorsudo apt update && sudo apt upgrade). You now have a native Linux installation.
Common Mistakes
- Using an x86 ISO: M1 Macs are ARM64. Downloading an ISO meant for Intel PCs will not boot. Always look for “ARM64” or “AArch64” in the download page.
- Skipping the backup: Native installation repartitions your drive. Without a backup, a mistake can wipe your macOS data.
- Interrupting the Asahi installer: Let it run to completion. Closing Terminal or shutting down mid-process can leave your drive in an inconsistent state.
- Forgetting to hold the power button: To boot into Linux after native install, you must hold the power button until you see the startup options. Simply pressing it normally boots macOS by default.
- Assuming all hardware works: While Asahi Linux supports most core features, some hardware (like the built-in microphone on certain models) may not work perfectly. Check the Asahi Linux feature matrix before committing.
Tips
- Start with a VM: If you are new to Linux or just want to test, use UTM first. It is risk-free and lets you try multiple distros without affecting your Mac.
- Use a recent kernel: Asahi Linux ships with a custom kernel that includes M1 drivers. If you use a generic distro in a VM, the standard kernel works fine because the VM abstracts the hardware.
- Keep macOS intact: Native installs are dual-boot, so you can still use macOS. Make sure to leave enough space for both systems.
- Check the Asahi Linux wiki: It has detailed troubleshooting and hardware support information. Bookmark it before you start.
- Use the right boot method: To switch between OSes, restart and hold the power button. You can also set the default boot OS in System Settings > General > Startup Disk.
Troubleshooting
If the VM won't boot the ISO
First, verify the ISO is actually ARM64. Then, in UTM, go to the VM's settings and check that the architecture is set to “aarch64” (not “x86_64”). If it still fails, try a different distro—Ubuntu Server is the most reliable for UTM.
If the Asahi installer fails
Make sure you are on the latest macOS version. The installer requires a recent version of the macOS recovery tools. Also, ensure you have enough free disk space (at least 30 GB) before starting. If the installer crashes, reboot and try again—it is designed to be idempotent.
If Linux boots but Wi-Fi doesn't work
On native Asahi installs, Wi-Fi should work out of the box. If it doesn't, run sudo dmesg | grep -i wifi to see if there are errors. For VMs, the virtual network adapter should work automatically; if not, check UTM's network settings (use “Shared” or “Bridged” mode).
If you can't boot back into macOS
Restart and hold the power button. If you don't see macOS in the list, go to Startup Disk in macOS Recovery (hold Command+R at boot) and select your macOS volume. If that fails, you may need to reinstall macOS via Recovery—this is why a backup is essential.
If the screen resolution is wrong in the VM
Install the SPICE guest tools (available in most distro repos) or use the UTM “Display” settings to adjust the resolution manually. For native installs, the display driver is included, so this should not be an issue.
Frequently Asked Questions
Can I install Linux on an M1 Mac without a VM?
Yes, via Asahi Linux. It is a native port that installs alongside macOS. It works on M1, M1 Pro/Max/Ultra, and M2 series. M3 support is not yet available.
Will all my Mac hardware work under Linux?
Most core hardware works, including the GPU, USB, and Wi-Fi. Some niche features (like the Touch ID sensor) are not supported. The Asahi Linux website has a detailed feature matrix.
Is it safe to run Linux on my M1 Mac?
Running in a VM is completely safe. Native installation is safe if you follow the instructions and back up your data. The Asahi installer is well-tested but still involves repartitioning your drive.
Can I use Linux on an M1 Mac for daily work?
Yes, for most tasks. Browsing, coding, and office work are fine. Some proprietary software (like Adobe Creative Cloud) does not have ARM64 Linux versions, so you may need alternatives.
How do I remove Linux from my M1 Mac?
For a VM, simply delete the VM in UTM. For native install, use the Asahi Linux uninstaller (available on their website) or use macOS Disk Utility to erase the Linux partition, then reclaim the space in the main macOS volume.
Can I install Linux on an M1 Mac with Apple's boot camp?
No, Boot Camp is not supported on Apple Silicon Macs. Asahi Linux is the recommended native method.