XNU Linux: Full OS X GUI Userspace on Linux
- ID
- 49355
- Status
- summarized
- Published
- 23 Nov 2026, 11:49 AM
- Fetched
- 23 Nov 2026, 4:28 PM
- Provider
- Hacker News
- Category
- dev-community
- Original URL
- https://github.com/AFK-surf/xnulinux
- Source URL
- https://hnrss.org/best
Summary
- Score
- 6.5
- Created
- 23 Nov 2026, 4:29 PM
- Tags
- Audience
- developers
What happened
A GitHub project, AFK-surf/xnulinux, builds XNU — the open-source kernel of macOS — from Apple's published sources and loads it as a kernel module (xnu.ko) inside an unmodified arm64 Linux kernel, with a small shim (fki.ko) lending it memory, timers, files, network and GPU. The README claims that with a stock Ubuntu kernel, `insmod xnu.ko` boots a macOS 27.2.1 system disk made by Apple's own installer all the way to loginwindow, WindowServer, Dock, Finder, Safari and Chrome, running macOS and Linux processes side by side on the same CPUs with no hypervisor. The repo shows 472 stars, 13 forks and 257 commits, and the HN thread drew 222 points and 98 comments; the screenshots come from a 1280×800 framebuffer at the end of a 30-minute CPU-only stress run.
Why it matters
If the claim holds, a plain arm64 Linux box can host macOS userspace — including Safari — without Apple hardware or a VM layer, which is the sort of thing that quietly changes what you can run in CI or a lab. Treat it as an unverified README claim for now: there is no independent reproduction in the text and no statement on how distributing Apple's XNU sources as a loadable module squares with Apple's licence, so do not plan infrastructure around it yet — read the fki.ko interface and the xnu-patches directory first to see how much of the kernel was modified.
Discussion angle
What would you actually do with macOS userspace on Linux — and does the licensing of Apple's XNU sources make this a demo you can only run privately, never ship?