← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

XNU Linux Project Enables macOS GUI Userspace to Run Natively on Linux Kernel

🔄 Updated 2h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • XNU kernel runs as a loadable module in Linux.
  • macOS userspace operates natively on Linux.
  • No hypervisor is used for macOS execution.
  • Linux provides resources like memory, network, and GPU.

Running macOS Userspace on Linux

The XNU Linux project has achieved running the complete macOS GUI userspace on an unmodified ARM64 Linux kernel. This is accomplished by compiling XNU, the open-source kernel of macOS, from Apple's sources and loading it as a kernel module (xnu.ko) within the Linux environment.

Native Execution and Resource Sharing

The hosted XNU kernel directly manages the CPU and Memory Management Unit (MMU), allowing macOS processes to run natively alongside Linux processes on the same CPUs. This architecture eliminates the need for a hypervisor. Linux provides XNU with essential resources such as memory, timers, files, network, and GPU access through a small interface module (fki.ko).

Demonstrated Functionality

With a standard Ubuntu kernel, loading xnu.ko successfully boots a macOS 27 system disk created by Apple's installer. This includes core macOS components like loginwindow, WindowServer, Dock, Finder, Safari, and Chrome. The system demonstrates a dual-userspace environment where a macOS Terminal can SSH into the underlying Linux system, confirming both operating environments are active simultaneously.

Technical Implementation Details

Each hosted CPU in XNU is a Linux kernel thread pinned to a Linux CPU. XNU runs on it until it requires host services. Linux maintains its own exception vectors, and fki.ko forwards faults and user exceptions from XNU code to XNU's handlers. For memory, XNU receives a physically contiguous block from Linux and manages it with its own pmap, sharing the user half of the address space layout with Linux. Devices are handled via kexts, providing macOS with disk access (a file on Linux), a display (a Linux framebuffer), input devices, network connectivity (a Linux network interface), a keystore, and a GPU bridge.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~5 min · 3 stories · Nov 22

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

The XNU Linux project allows the full macOS GUI userspace to run on an unmodified ARM64 Linux kernel by loading the open-source XNU kernel as a loadable module. This setup enables macOS processes to execute natively alongside Linux processes, sharing CPU and memory resources without a hypervisor. The project uses a small interface module to provide macOS with access to Linux's memory, timers, files, network, and GPU.