Operations 6 min read

How QEMU Made Linux Run on Apple M1 Macs – Technical Hurdles and Funding Drive

Using QEMU, developers have managed to run Windows 10 and Ubuntu 20.04 on Apple M1 Macs, but native Linux support remains elusive, prompting a seasoned porting engineer to launch a Patreon campaign seeking $4,000 monthly to overcome GPU and driver challenges.

Liangxu Linux
Liangxu Linux
Liangxu Linux
How QEMU Made Linux Run on Apple M1 Macs – Technical Hurdles and Funding Drive

Running Windows 10 on M1 Mac with QEMU

QEMU can emulate x86 on Apple Silicon, allowing Windows 10 to boot on M1 Macs. Audio, networking, and typical x86 applications such as OneDrive, 7‑zip and Spotify work without modification.

Linux on M1 Mac via QEMU

Shareef Ali attempted to run Linux on the same hardware. Initial attempts failed due to register‑synchronisation bugs and an incomplete ramfb framebuffer implementation in the QEMU Apple‑silicon target. After collaborating with the QEMU patch author, Ali rewrote the UEFI firmware used by QEMU (supplied via the -bios option) to correctly initialise the virtual platform. With the patched firmware, Ubuntu 20.04.1 LTS boots and operates, providing functional console, networking and basic I/O, though performance and hardware support remain far from a native experience.

Key technical steps

Install QEMU built with Apple‑silicon support (e.g., brew install qemu or compile from source with --target=aarch64-softmmu).

Obtain a UEFI firmware binary that includes the fixes for register sync and ramfb. Replace the default firmware with the custom OVMF.fd (or similar) using QEMU’s -bios flag.

Launch Ubuntu using a command similar to:

qemu-system-aarch64 \
  -machine virt,accel=hvf \
  -cpu cortex-a72 \
  -m 8G \
  -bios /path/to/custom_uefi.fd \
  -drive if=none,file=ubuntu-20.04.qcow2,format=qcow2,id=hd \
  -device virtio-blk-device,drive=hd \
  -device virtio-net-pci,netdev=net0 \
  -netdev user,id=net0,hostfwd=tcp::2222-:22 \
  -device virtio-gpu-pci \
  -display default,show-cursor=on

After boot, install the linux-image-arm64 and linux-firmware packages to obtain basic kernel support.

Challenges and Community Effort

Linus Torvalds has expressed doubt that a fully native Linux port can be achieved without Apple releasing documentation for the GPU and other proprietary components. The closed‑source nature of the Apple‑silicon GPU, power‑management ICs, and boot firmware means that any Linux support must rely on reverse‑engineered drivers.

Ongoing Linux‑for‑Apple‑Silicon Project

Hector Martin (known as “Marcan”), who previously ported Linux to the PlayStation 4, started a funded effort to create a complete Linux distribution for Apple‑silicon Macs. The project targets:

Full GPU acceleration (reverse‑engineered or open‑source drivers).

Robust power‑management and thermal control.

Support for essential peripherals (USB, Wi‑Fi, audio).

Funding is sought via a Patreon campaign (tiers of $3, $6, $12) with a goal of $4,000 per month; the campaign is currently 88 % funded. Progress and source code are intended to be published on GitHub, inviting contributions from the community. Apple’s platform permits loading custom kernels on Apple Silicon, providing a technical pathway for Linux, but the lack of official driver documentation necessitates extensive reverse engineering.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxQEMUUbuntuApple SiliconM1Patreon
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.