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.

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
- 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
- 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
- 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
- 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
- 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
- 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)
- 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
- 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
- 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
- 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.
CompaniesApple
Grab todayAdobe Creative Cloud Pro: 57% off first yearHIMIAO Picks →Follow HIMIAO Horizon
No sign-up · Unsubscribe any timeNotifications
A ping on your phone or computer when the brief is out. No email needed.
Comments
Related
- Oct 3Apple Tightens macOS Full Disk Access: Granting It Will Require Explicit User Action
- Nov 17Apple Smart Glasses Said to Debut at WWDC 2027 With No Display, Leaning on Siri and iPhone
- Oct 16Meta Releases Muse Spark Open, Teaming Up with Apple to Put an 816B-Parameter Model on Mac Studios
- Oct 16xtool Tops GitHub Daily Trending: Cross-Platform Xcode Replacement
- Oct 15Apple Intelligence Launches in China in December with iOS 27.3, Excluding New Siri AI: Report
Today
Nov 23 Monday- Brief
- GitHubGitHub Weekly Vol.7: 7 Projects Worth a Look This Week
Tested or read — weeklyAll →
- Quiz
- Call
Latest news
All →- Nov 23Zhipu Launches GLM-5.4: Loop Transformer Flagship, 750B, on Coding Plan
- Nov 23Meta Muse Can Shop Walmart for Black Friday, Live Nov 24
- Nov 23GL.iNet Cloud Flaw Exploited: Malware Installed on Some Routers and KVM Devices
- Nov 23GitHub Weekly Vol.7: 7 Projects Worth a Look This Week
- Nov 23Alibaba Qwen4-Max Review: Intelligence Index 43, Task Costs Down 58%, Terminal Coding Trails Kimi
- Nov 23US Intel Chief Confirms China Obtained Nvidia's Top AI Chips
™