Flash

Flash·Models & Products·2026-11-23 20:16

XNU Linux Runs a Full macOS Desktop on Linux

Open-source project XNU Linux loads Apple's XNU kernel as a Linux kernel module and runs a macOS desktop inside an unmodified arm64 Linux kernel, with Finder, Safari and Chrome working; the repo was created on Nov 20 and the demo posted on Nov 22.

A laptop showing macOS-style Finder windows on a sunlit desk, greenery outside the window
Open-source project XNU Linux loads Apple's kernel as a Linux module (AI-generated illustration)

What happened

The project is called xnulinux, authored by AFK-surf and created on Nov 20, 2026; the lead developer is Heyang Zhou. It builds XNU, the macOS kernel, from Apple's published sources and runs it as a loadable kernel module, xnu.ko, inside an unmodified arm64 Linux kernel; the hosted XNU drives the CPU and MMU directly, so macOS processes run natively next to Linux processes on the same CPUs with no hypervisor between them, while Linux lends XNU memory, timers, files, network and GPU through a small interface module, fki.ko.

The demo runs an arm64 Linux virtual machine (krunkit) on an Apple Silicon Mac and, with a stock Ubuntu kernel, loads xnu.ko to boot a macOS 27 system disk made by Apple's own installer all the way to the desktop: loginwindow, WindowServer, Dock, Finder, Safari and Chrome all work. Screenshots in the repo show the hosted macOS 27.2.1, from which an SSH session reaches the Linux host. The GPU bridge is on by default, routing Metal through metal2vulkan and Mesa's Venus driver to the host GPU, with a CPU rendering fallback when no GPU is present.

According to the project, the hosted macOS 27.2.1 reaches auto-login in 31 to 48 seconds, against 49 seconds for an Apple Virtualization macOS VM on the same Mac; a 30-minute stress run of 40 rounds of Safari, Notes, Calculator, TextEdit, System Settings, Spotlight and a disk walk finished with no panic and no crash report. The project also lists limits: it is not production-ready yet, the OS cryptex is merged into the system volume, AMFI is patched and SIP is relaxed, and memory access is slower than a native VM because it uses 4K pages instead of 16K.

Key facts

  1. Project and author: xnulinux, authored by AFK-surf, led by Heyang Zhou; the repo was created on Nov 20, 2026; the demo was posted on Nov 22
  2. Approach: XNU is built from Apple's published sources and runs as a loadable kernel module, xnu.ko, inside an unmodified arm64 Linux kernel; Linux lends it memory, timers, files, network and GPU through a small interface module, fki.ko
  3. How it runs: macOS and Linux processes run natively in parallel on the same CPUs with no hypervisor between them; the hosted XNU drives the CPU and MMU directly
  4. Desktop: in an arm64 Linux VM on an Apple Silicon Mac, a macOS 27 system disk boots to the desktop with loginwindow, WindowServer, Dock, Finder, Safari and Chrome working
  5. Performance (project's own tests): macOS 27.2.1 reaches auto-login in 31 to 48 seconds, against 49 seconds for an Apple Virtualization VM on the same Mac; a 30-minute stress run finished with no panic and no crash report
  6. GPU: bridging is on by default, routing Metal through metal2vulkan and Mesa's Venus driver to the host GPU; without a GPU it falls back to CPU rendering (Mesa lavapipe)
  7. Requirements: an arm64 Linux host with PAC (a VM on an Apple Silicon M1 or newer), 16 GB of memory (8 GB reserved for the hosted kernel), a Mac with Xcode to make the system disk and build the GPU parts, and the user's own macOS 27 install
  8. Limits: not production-ready; the OS cryptex is merged into the system volume, AMFI is patched and SIP is relaxed; 4K pages instead of 16K make memory access slower than a native VM
  9. Distribution and license: the repo contains and distributes no Apple binaries; kexts, the system disk and trust caches all come from the user's own install; the Linux side is GPL-2.0-only and xnu.ko is APSL-2.0; the project is unaffiliated with and not endorsed by Apple
  10. Community response: the Hacker News post had 213 points and about 95 comments roughly 4.5 hours after posting; the discussion notes Apple hardware is still required and the setup may raise Apple end-user license questions

Why it matters

this is the first time the macOS userspace runs natively alongside Linux processes without a hypervisor; it still needs Apple hardware and the user's own macOS install, and its practical use leans toward building and testing.
Useful Tap if this story helped you
Send to a friendMakes a share image for X, WeChat, Telegram and more

SourcesGitHub repository (Nov 20, 2026); Hacker News (Nov 22, 2026). This article is compiled from public information and does not constitute investment advice.

From HIMIAO Horizon · himiao.ai

Grab todayAdobe Creative Cloud Pro: 57% off first yearHIMIAO Picks →

Follow HIMIAO Horizon

No sign-up · Unsubscribe any time

Email

Notifications

A ping on your phone or computer when the brief is out. No email needed.

HIMIAO PicksWeekly freebies: one email every Friday, a 5-minute read

Comments

  1. Loading comments…
Ask the cat