XNU Linux: Running macOS with Full GUI Userspace on Linux
The xnulinux project on GitHub runs macOS userspace on Linux by loading XNU[1], the open-source kernel of macOS, built from Apple's published sources, as a loadable kernel module (xnu.ko) inside an unmodified arm64 Linux kernel. The hosted XNU drives the CPU and memory directly, so macOS and Linux processes run side by side on the same CPUs with no hypervisor between them. Linux provides memory, timers, files, network and GPU access through a small interface module (fki.ko).
With a stock Ubuntu kernel, insmod xnu.ko boots a macOS 27 system disk made by Apple's installer to the desktop, including Finder, Safari and Chrome. On an Apple Silicon Mac running an arm64 Linux VM with 1 to 6 hosted CPUs, the project reports that macOS 27.2.1 boots to the desktop in 31–48 s, and a 30-minute stress run finishes with no panic and no crash report. The GPU bridge gives hosted apps the host GPU through Vulkan[2] when a Linux render node is present, and falls back to CPU rendering otherwise.
The project needs an arm64 Linux host with PAC, 4K pages and about 24 GB of RAM, plus Xcode and your own macOS 27 installation, because no Apple binaries are distributed with it. The README lists stopgaps, including a merged OS cryptex, a patched AMFI, a relaxed SIP and slower memory access than a native VM. xnu.ko is licensed APSL-2.0 and reported to Linux as a non-GPL module, and it meets the GPL side only at the fki interface.
Repository xnulinux github.com
Open source project that loads the macOS XNU kernel as a Linux kernel module, so macOS userspace runs directly on Linux without a VM.
Read the original github.comDiscussion
Discussion
Commenters liked the project but several said it still needs Apple hardware and suggested improving GNUstep instead. Others compared it to a VM, asked whether Windows could be run the same way, and one pointed out that a similar project had been removed from GitHub.
Sources
-
GitHub
XNU Linux: Full OS X GUI Userspace on Linux
-
KRGeekNews KO
XNU Linux: Linux에서 완전한 OS X GUI 사용자 공간 실행
Terms
- Vulkan — A cross-platform graphics and compute API that lets software use the GPU directly.






