XNU Linux Loads macOS's Kernel Into Linux and Boots a Desktop in 31 to 48 Seconds
Software / news
XNU Linux Loads macOS's Kernel Into Linux and Boots a Desktop in 31 to 48 Seconds
The 1.9k-star project runs Apple's XNU as a kernel module with no hypervisor, but it needs your own macOS 27 install.

XNU Linux, an open-source project from Heyang Zhou and contributors, runs the macOS kernel inside a Linux kernel. The README states the claim plainly: "Run macOS userspace on Linux by loading the macOS kernel into it." The repository, held by the AFK-surf organisation, shows 1.9k stars, 71 forks and 262 commits on main.
It is neither an emulator nor a virtual machine. XNU is built as a Linux kernel module, xnu.ko, and Linux supplies memory, timers, files, networking and GPU access through a second module, fki.ko.
How it boots macOS
Each hosted CPU is a Linux kernel thread, and macOS and Linux processes run side by side on the same CPUs without a hypervisor. Kexts, the macOS driver bundles, provide the disk, display, input, Ethernet, keystore and a GPU bridge.
With a stock Ubuntu kernel, a macOS 27 system disk made by Apple's installer boots to the desktop, including Finder, Dock, Safari and Chrome. The README reports boot times of 31 to 48 seconds on an Apple Silicon Mac VM.
The GPU numbers are weaker. On the NVIDIA DGX Spark test machine the setup renders on the CPU only, and GPU pass-through on the Spark's GB10 is not yet supported.
What you must bring
| Requirement | Detail |
|---|---|
| Host | arm64 Linux with PAC (FEAT_PAuth), 4K pages, 16 GB RAM or more |
| Reserved memory | 8 GB for the hosted kernel |
| Build machine | A Mac with Xcode, to make the system disk and GPU parts |
| macOS install | Your own macOS 27 VM disk |
| Tested on | NVIDIA DGX Spark; Apple Silicon (M1 or later) arm64 Linux VMs |
The README says "No Apple binaries are in this repository or distributed by it." Kexts, the system disk and the trust cache all come from the user's own macOS 27 installation, and the project says it is not affiliated with Apple.
The stopgaps
The page points to a docs/production.md file listing shortcuts. They include a merged OS cryptex, a patched AMFI (Apple Mobile File Integrity, the code-signing enforcement layer) and relaxed SIP (System Integrity Protection). Memory access is also slower because of 4K pages, against 16K pages in a native Apple VM.
Those are choices a security reviewer would want to read before running anything sensitive on it.
Where the code comes from
The project builds XNU from "Apple's published sources." Apple's xnu repository describes the kernel as part of Darwin, a hybrid of the Mach kernel with FreeBSD components and an IOKit C++ driver API, running on x86_64 and ARM64. It shows about 3.9k stars and no tagged releases.
The licensing is split, which matters to anyone planning to ship it.
| Component | Licence |
|---|---|
| Linux-side FKI code (fki-ko, linux) | GPL-2.0-only |
| XNU-side code (xnu-ko, xnu-patches, kexts) | APSL-2.0 |
| Other components | BSD-2-Clause-Patent or GPL-2.0-or-later |
The module xnu.ko reports MODULE_LICENSE("Proprietary"), which taints the Linux kernel.

Who this is for
Nobody should read 1.9k stars as adoption. It is a working proof that two kernels can share CPUs, and the README is open about its shortcuts. The Terminal has covered similar small-team operating system efforts, including a ReactOS fork with an A.I. policy and a Claude agent on an IBM PC XT.
What would change the picture is GPU pass-through on the GB10. Until the README lists it as supported, the DGX Spark setup is a CPU-rendered desktop.
Sources
More in Software
- 01OpenAI and Cisco's Shirudo Shields Unpatched Linux, but Needs a Patched Kernel and a TPM 2.0The BSD-licensed eBPF runtime blocks exploits while patches roll out, and its own README calls it pre-release.
- 02Ladybird Ships Its First Alpha for macOS and Linux, With No Security PromisesThe from-scratch browser moves to a rolling update channel on Nov. 23, while its own GitHub README still says pre-alpha.
- 03Apple Pulled FSNotes From Every EU App Store, and the Developer Says No One Has Said WhyThe open-source notes app's maintainer says an unpaid October payout, two unanswered support cases and a DSA trader filing preceded the removal.
- 04Reaktiv Workbook Makes Every Spreadsheet Cell a Python Expression, at Version 0.1.9The MIT-licensed tool runs in the browser through Pyodide or on a local interpreter, and published its ninth release six days after the repository appeared.