macOS userspace on Linux, with XNU running as a kernel module
AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.
Why it matters
It shows two operating systems' kernels can cooperatively share the same CPUs and memory without a hypervisor, hinting at a new approach to OS compatibility on Linux, though it remains a niche experiment with very narrow working configurations.
A new open-source project called xnulinux runs the heart of the macOS operating system (its kernel, called XNU) directly inside Linux, instead of running macOS inside a virtual machine. The macOS programs run alongside normal Linux programs on the same processors, with no virtualization layer slowing things down. This lets an Ubuntu machine boot a real macOS 27 desktop, including Safari, on arm64 hardware. It is a technical demonstration, not something ready for everyday use.
The xnulinux project boots Apple's macOS 27 desktop from a stock Ubuntu arm64 kernel with no hypervisor, potentially removing the performance overhead that virtual-machine approaches like QEMU or Docker-OSX carry. Practically, its value is limited: only two demonstrated arm64 setups, CPU-based graphics fallback, and a requirement to build a macOS system disk from Apple's own installer. It is a research curiosity, not a product or cost-saving option now.
xnulinux compiles XNU from Apple's sources as a loadable module (xnu.ko) inside an unmodified arm64 Linux kernel, with fki.ko providing memory, timers, files, networking and GPU services. Each hosted CPU is a pinned Linux kernel thread; XNU receives one CMA-allocated contiguous memory block and shares the user address space with 4K pages. Devices are supplied as kexts, and Metal runs via a Vulkan bridge using Mesa's Venus driver, falling back to lavapipe on the CPU.
Questions this answers
The article above answers these:
- Can you run macOS on Linux without a virtual machine?
- What is the xnulinux project?
- How does the XNU kernel run as a Linux kernel module?
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.