▲ 1.6k today2.7k starsObjective-C++HN ×1New · 5d old
Run macOS on Linux as a Loadable Kernel Module
What is xnulinux?
xnulinux builds the open-source macOS XNU kernel and loads it as a kernel module inside an unmodified arm64 Linux system. The macOS kernel runs side-by-side with Linux processes, sharing memory, timers, network and GPU through a thin interface.
Who it is for
Developers who need to test macOS software on cheap ARM hardware or run macOS apps alongside Linux services will find it useful.
Try it in 60 seconds
You need: An arm64 Linux system with a stock Ubuntu kernel
insmod xnu.ko
New projects are not vetted. Skim the code, and run it in a fresh folder or a container before giving it your files or keys.
The story so far
Early Signal first spotted AFK-surf/xnulinux on November 23, 2026, when it had 778 GitHub stars. It has since grown to 2.7k, 3.4 times as many. On its busiest day it gained 1,640 stars. The project is 5 days old and written mainly in Objective-C++. It has been discussed in 1 Hacker News thread, the top one with 609 points. Early Signal files it under Inference, Coding, RAG & Memory.
Questions about xnulinux
- How do I try xnulinux?
- insmod xnu.ko
- What do I need to run xnulinux?
- An arm64 Linux system with a stock Ubuntu kernel