xnulinux compiles Apple's XNU kernel as a Linux module, boots macOS in 31 seconds
unixterminal · x · 2026-11-29
The open-source xnulinux project hit the Hacker News front page with a wild approach: it compiles Apple's公开 XNU kernel source into an arm64 Linux loadable module. One insmod xnu.ko on an unmodified Ubuntu kernel natively lights up a full macOS 27.2.1 desktop in 31 seconds — no hypervisor at all.
Key design:
- Zero-hypervisor dual-kernel cohabitation: each hosted XNU CPU is a pinned Linux kernel thread; macOS and Linux processes run side by side on the same CPU, connected via a tiny 65KB interface module (fki.ko) that borrows CMA memory, timers, networking, and page-fault forwarding.
- Metal-to-Vulkan graphics: Metal calls are translated to Vulkan via metal2vulkan and bridged through DRM to the host's Mesa Venus driver, with CPU rendering fallback.
- Full Apple userland: boots a stock macOS 27 disk made by Apple's official installer — launchd, WindowServer, Dock, Finder, Safari, and Chrome all run.
More from Fun
- Viral AI meme: sister confirms ChatGPT uses emojis, then asks 'what's llm' — kingslyj · 2026-11-29
- DeepMind researcher spotlights two charts showing AI-driven spikes in cyber incidents and solved math problems — EthanJPerez · 2026-11-29
- Short-timelines researcher admits he rejected a math bet because he can't afford to lose — JacquesThibs · 2026-11-29
- This month's 'singularity' meme list: Riemann solved, 1M AI satellites, Nvidia CEO back in 11 days — rand_longevity · 2026-11-29
- 'We had Blackwell at home': museum photo of 1998 Voodoo 2 card goes viral — keyanzhang · 2026-11-29
- Fanfic authors fear AI checkers train on their work; Pangram pushes back — TuhinChakr · 2026-11-29