Introduction: The Unexpected Convergence of Linux and macOS

The operating‑system landscape has long been divided into three major pillars: Windows, Linux, and macOS. Recently, the Linux community took a big step forward by enabling Windows applications to run through Proton. But what about compatibility with macOS apps? A bold project called XNU Linux offers a radical solution: embed the macOS kernel directly into an ARM64 Linux kernel, opening the door to native Apple app execution on Linux machines. This approach removes virtualization or translation layers and promises near‑native performance.

1. Proton and the Rise of Windows Apps on Linux

Since Proton’s launch, the compatibility bar for Windows applications has climbed steeply. Within a few years it became possible to run almost all office suites, video games, or professional software on a Linux system without extra effort. This success relies on a transparent translation layer that intercepts Windows API calls and rewrites them for the Linux kernel.

This approach inspired the community to explore other operating systems as potential targets. The major challenge remains the complexity of the macOS kernel, which isn’t designed to run in another environment.

2. XNU Linux: What Is This Project?

XNU Linux is an open‑source initiative aimed at “storing” the macOS kernel inside an ARM64 Linux kernel. The name XNU refers to Apple’s kernel, derived from Mach and BSD. By integrating it directly into the Linux kernel, XNU Linux allows macOS and Linux processes to coexist on the same CPU core.

The goal is simple: provide a native experience for macOS applications without relying on heavy hypervisors or translation layers. The project has already demonstrated its potential by launching macOS 27.2.1 on a standard Ubuntu system via XNU Linux.

Simplified Technical Architecture

The implementation relies on merging XNU’s source code with the Linux kernel, modified to run on ARM64. macOS system calls are translated into Linux calls on the fly, while Apple‑specific services (such as the Aqua window manager) are made compatible through abstraction layers.

3. Technical Architecture – How the macOS Kernel Is Embedded

The core of the project is compiling XNU for ARM64 and integrating it into the Linux kernel build. This fusion creates a hybrid kernel capable of handling native Linux tasks alongside those required by macOS.

The two main technical challenges are: managing 4 KiB memory pages, essential for Apple Silicon’s operation, and pointer authentication (PAC) that secures the kernel. These requirements initially limit the project to ARM64 devices with these features.

Targeted Hardware

  • Apple Silicon M1 or newer (executed via a lightweight hypervisor like Krunkit)
  • Nvidia DGX Spark servers (bare‑metal)
  • ARM64 devices supporting PAC and 4 KiB pages

4. Use Cases and Performance – Native Execution on ARM64

Early tests show that classic macOS apps such as Safari or Pages run with no noticeable latency when launched via XNU Linux. Users can enjoy the Apple ecosystem while staying within a Linux environment.

The performance gain comes from system calls not crossing an additional translation layer, resulting in shorter boot times and lower CPU usage—particularly advantageous for high‑performance servers or workstations.

Despite its promises, XNU Linux isn’t yet ready for mainstream deployment. Hardware constraints are strict: only ARM64 processors with functional PAC can be used. Additionally, obtaining a legal copy of macOS remains mandatory, which may pose a legal barrier.

Developers must also manage driver and peripheral compatibility. Some proprietary hardware is not yet supported by the hybrid kernel, potentially limiting features on certain machines.

6. Future Outlook and Conclusion with Call to Action

“XNU Linux paves the way for a true convergence of Apple and Linux ecosystems, but its adoption will depend on resolving hardware and legal challenges.”

In short, XNU Linux represents an ambitious step toward platform unification. If you’re a developer or enthusiast of operating systems, this project deserves your attention. Download the source code from GitHub, test it on a compatible device, and share your feedback! Together we can evolve this technology into a more accessible solution.

Original source
Xda-developers
XNU Linux wants to run macOS apps on Linux by stuffing the entire macOS kernel into the system
https://www.xda-developers.com/xnu-linux-macos-on-linux/ →