xnulinux

AFK-surf

Builds XNU, the open-source macOS kernel, from Apple's published sources and loads it as a kernel module inside unmodified arm64 Linux, so macOS userspace programs can run on Linux.

CCreated

What is AFK-surf/xnulinux?

xnulinux runs macOS userspace on Linux by loading the macOS kernel, XNU, into an unmodified arm64 Linux system. It builds XNU from Apple's published open-source sources and runs it as a loadable kernel module, so macOS programs can execute on Linux. The README describes the hosted kernel as driving the CPU and memory management unit directly.

This is experimental systems research. It depends on Apple's published source and on the Linux kernel's interfaces, and it is not a supported macOS environment.

It suits kernel developers and systems researchers interested in running one operating system's userspace on another, and people studying how XNU is structured. The README explains the design of the hosted kernel and links to the sources it is built from.