TL;DR
XNU Linux says it can run Apple’s XNU kernel as a module inside an unmodified arm64 Linux kernel, bringing up macOS 27’s desktop and applications alongside Linux. The project has been tested in an Apple Silicon Linux virtual machine and on bare-metal NVIDIA DGX Spark hardware, but remains experimental, with major limitations including relaxed macOS protections and incomplete GPU support.
The experimental XNU Linux project says it can boot a macOS 27 desktop inside an unmodified arm64 Linux kernel by loading Apple’s XNU kernel as a Linux kernel module. The project reports working tests in an Apple Silicon Linux virtual machine and on bare-metal NVIDIA DGX Spark hardware, offering a new way to run macOS processes alongside Linux processes without placing a hypervisor between the two kernels.
Get the latest gadgets delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
The repository describes building XNU, Apple’s open-source kernel, from Apple’s published source and running it as xnu.ko. A companion module, fki.ko, connects the hosted kernel to Linux services such as memory, timers, files, networking and device access. The project says XNU manages hosted macOS processes directly on the CPU, while Linux continues to run its own processes and kernel.
In the reported demonstrations, a system disk made from the user’s own macOS installation boots to a desktop with loginwindow, WindowServer, Dock, Finder and Safari. The project reports a 30-minute application and disk stress run on an Apple Silicon Mac’s arm64 Linux virtual machine, ending without a kernel panic or crash report. On a DGX Spark running Ubuntu, it reports a desktop with four hosted CPUs and 8 GiB of memory reserved for XNU.
Some capabilities differ between the two setups. The Apple Silicon virtual-machine configuration can use a GPU bridge when a supported Virtio-GPU render node is available. The DGX Spark demonstration currently uses CPU rendering: the project’s DRM bridge forwards Virtio-GPU Venus requests, but does not yet provide the backend needed to use that system’s NVIDIA GPU. The project says unsupported configurations fall back to Mesa’s software renderer.
A Different Route to macOS Apps
The project tests an unusual boundary between operating systems: instead of putting macOS in a conventional virtual machine, it runs XNU within the Linux kernel environment and lets macOS and Linux processes share the machine’s CPUs. If the approach becomes more reliable, it could give developers and researchers another way to study how operating-system kernels, applications and device interfaces work together.
For users, the current result is a technical demonstration, not a ready-made replacement for a Mac or a general-purpose way to install macOS on any Linux computer. It needs arm64 hardware with pointer authentication support, a 4K-page Linux kernel and substantial memory; the project recommends at least 16 GB of system RAM, with 8 GB reserved for hosted XNU. Performance and hardware support also remain uneven, especially for graphics.
The setup matters for security and licensing as well as compatibility. The project says users must provide their own macOS installation and Apple-supplied components. It also lists relaxed System Integrity Protection and patched AMFI among current stopgaps. Those changes mean the demonstration does not establish that a standard, security-hardened macOS installation runs unchanged in this environment.
Products Worth Considering

Amazon Kindle Paperwhite (2024) – 16GB, 7 Glare-Free Display, Waterproof

DJI Mic 3 Wireless Microphone (2 Transmitters, 1 Receiver, Charging Case)

Samsung 32 Odyssey G5 QHD Gaming Monitor
As an affiliate, we earn on qualifying purchases.
How the Hosted Kernel Works
XNU is the kernel used by macOS and is published by Apple as open-source code. XNU Linux adapts it to run as a loadable module inside an arm64 Linux kernel, rather than replacing Linux as the machine’s sole kernel. Linux remains responsible for host services and supplies an interface through which the hosted kernel can access resources.
According to the project, each hosted CPU is represented by a Linux kernel thread, while XNU receives a physically contiguous memory region and manages it using its own memory-management system. Device support comes through project kexts and Linux-side components for items such as the disk, display, input devices, network connection and graphics. The repository describes the source as using XNU version 12377.121.6.
The demonstrations use a macOS 27 system disk prepared from an installation made with Apple’s installer. The repository says it does not distribute Apple binaries, system disks or trust caches. It also identifies current limitations: the operating system’s cryptex is merged into the system volume, protections are relaxed, and memory access is slower than in a native virtual machine because the hosted setup uses 4K pages while macOS normally uses 16K pages.
“One system, two userspaces.”
— XNU Linux project, GitHub repository
Limits of the Demonstration
The repository’s results are project-reported tests; the supplied material does not include independent validation, a formal performance comparison or evidence that the setup is suitable for everyday use. It also does not establish compatibility across a broad range of arm64 Linux hardware, macOS applications or system updates.
How quickly the project can address its listed stopgaps remains unclear. The DGX Spark’s hardware GPU support needs a new bridge backend, and the repository notes slower memory access than a native virtual machine. The longer-term behavior of the system under sustained workloads, security review and future macOS releases has not been established in the report.
Apple’s licensing position on this particular arrangement is not detailed in the supplied material. The project says users supply their own macOS installation and Apple components, but that statement alone does not resolve questions about permitted uses or redistribution.
Next Steps for Compatibility
The repository points users to its production documentation for known stopgaps and lists a new DRM bridge backend as necessary for hardware GPU support on the DGX Spark. The project also provides scripts for building XNU and its kexts on an arm64 Linux host and for preparing a system disk from the user’s macOS installation.
Further updates would need to show whether the project can expand device support, improve performance and retain stability across longer or broader testing. Until then, its demonstrated scope is a constrained technical setup: arm64 Linux, compatible kernel features, enough memory, and a macOS disk and components supplied by the user.
Key Questions
What is XNU Linux?
It is an experimental project that builds Apple’s XNU kernel and runs it as a module inside an arm64 Linux kernel, allowing macOS and Linux processes to run on the same machine.Does it run the full macOS desktop?
The project reports booting macOS 27 to a desktop with Finder, Dock, WindowServer and Safari. That describes its reported demonstrations, not broad compatibility or a production-ready system.Can it use a computer’s GPU?
GPU support depends on the host and available bridge. The project reports GPU access through a Virtio-GPU Venus setup on an Apple Silicon Linux virtual machine; its DGX Spark test currently uses CPU rendering.What hardware and software are required?
The project lists an arm64 Linux host with pointer authentication support, 4K pages and at least 16 GB of RAM. It recommends reserving 8 GB for XNU and requires users to provide their own macOS installation and Apple components.Is this a standard or fully secure macOS installation?
The project describes several stopgaps, including relaxed SIP and patched AMFI. The supplied report does not establish that this setup preserves the protections of a standard macOS installation.Source: github.com
