{
    "@context": "https://schema.org",
    "@type": "NewsArticle",
    "@id": "https://badiyaa.com/xnulinux-macos-kernel-linux-module/#article",
    "mainEntityOfPage": "https://badiyaa.com/xnulinux-macos-kernel-linux-module/",
    "headline": "Xnulinux loads Apple's macOS kernel into Linux and boots the macOS 27 desktop with no hypervisor",
    "description": "Xnulinux runs XNU, the macOS kernel, as a Linux kernel module and boots the macOS 27 desktop with Finder and Safari, with no hypervisor involved.",
    "datePublished": "2026-11-23T12:33:00+00:00",
    "dateModified": "2026-11-23T08:39:34+00:00",
    "author": {
        "@type": "Organization",
        "name": "Badiyaa Editorial Desk",
        "url": "https://badiyaa.com/author/editorial-desk/"
    },
    "publisher": {
        "@type": "NewsMediaOrganization",
        "@id": "https://badiyaa.com/#organization",
        "name": "Badiyaa",
        "url": "https://badiyaa.com/",
        "logo": {
            "@type": "ImageObject",
            "url": "https://badiyaa.com/wp-content/uploads/2026/10/badiyaa-logo-color-600x60-1.png",
            "width": 600,
            "height": 60
        },
        "email": "badiyaavideo@gmail.com",
        "publishingPrinciples": "https://badiyaa.com/editorial-policy/",
        "correctionsPolicy": "https://badiyaa.com/corrections/",
        "actionableFeedbackPolicy": "https://badiyaa.com/contact/",
        "ownershipFundingInfo": "https://badiyaa.com/about/#ownership",
        "sameAs": [
            "https://www.facebook.com/profile.php?id=61595518283625",
            "https://www.instagram.com/badiyaa.com.ai/",
            "https://www.threads.net/@badiyaa.com.ai"
        ],
        "parentOrganization": {
            "@type": "Organization",
            "name": "Rezilient Digital",
            "url": "https://www.rezilientdigital.com/",
            "address": {
                "@type": "PostalAddress",
                "streetAddress": "Fl No 3, Nav Shyam Sadan, Plot No 38, Pestom Sagar, Chembur",
                "addressLocality": "Mumbai",
                "addressRegion": "Maharashtra",
                "postalCode": "400089",
                "addressCountry": "IN"
            },
            "sameAs": [
                "https://www.linkedin.com/company/rezilientdigital"
            ]
        }
    },
    "isAccessibleForFree": true,
    "inLanguage": "en-US",
    "wordCount": 618,
    "image": [
        "https://badiyaa.com/wp-content/uploads/2026/11/macbook-pro-13-m1-2020-2.jpg"
    ],
    "articleSection": "Tech",
    "keywords": "xnulinux, XNU, macOS, Linux",
    "articleBody": "A new open-source project loads the kernel at the heart of macOS into Linux as an ordinary kernel module, then boots Apple's desktop, Finder and Safari on top of it, with no hypervisor in between. It is called xnulinux, and its developers say macOS 27.2.1 reaches the desktop in as little as 31 seconds. The project, credited to Heyang Zhou and contributors, builds XNU from the source code Apple publishes and runs it as a module named xnu.ko inside an unmodified arm64 Linux kernel, according to the xnulinux GitHub README. Type one insmod command on a stock Ubuntu kernel and, the README says, a macOS 27 disk made by Apple's own installer boots through the login window, WindowServer and Dock to Finder, Safari and Chrome. What XNU is XNU, short for \"X is Not Unix,\" has been Apple's kernel since December 1996. Wikipedia's article on XNU traces it to NeXT, the company Apple bought in the 1990s, where it was built on the Mach kernel from Carnegie Mellon University with a large slice of BSD Unix on top. Apple releases the code as open source, which is what makes a project like this possible. How the two kernels share one machine Normally, running macOS next to Linux means a virtual machine, with a hypervisor carving up the hardware. Xnulinux skips that layer. Each macOS processor is a Linux kernel thread pinned to a real CPU core, and XNU drives the processor and memory directly until it needs the host for a timer, a file or the network. A small bridge module, fki.ko, lends XNU its memory, files, network and graphics. The result is two operating systems' programs running side by side on the same chips. The README's demo shows a macOS Terminal opening an SSH session into the very Linux system it is running inside. The numbers, side by side The project tested on an Apple Silicon Mac running an arm64 Linux virtual machine, giving macOS between one and six processors: Boot to desktop: 31 to 48 seconds under xnulinux, against 49 seconds for a regular Apple Virtualization macOS VM on the same Mac, a saving of 1 to 18 seconds. Stability: a 30-minute stress test of 40 rounds through Safari, Notes, Calculator, TextEdit, System Settings and Spotlight ended with no kernel panic and no crash report. Graphics: a bridge passes Metal calls through Vulkan to the host GPU, and falls back to drawing on the CPU when no GPU is present. The catches There are real limits. The setup needs an arm64 Linux host with pointer authentication, which in practice means an Apple Silicon Mac, M1 or later, running Linux in a VM; 16 GB of memory, half of it handed to macOS; and a Mac with Xcode to build the disk and graphics parts. Users must supply their own macOS 27 installation, since the project ships no Apple binaries. The README also lists stopgaps: Apple's AMFI code-signing check is patched, System Integrity Protection is relaxed, and memory access is slower than in a native VM because Linux uses 4K pages where macOS expects 16K. The project states it is not affiliated with or endorsed by Apple. Badiyaa has covered other ways of stacking one system inside another, including a Linux kernel compiled to run in a web browser and Meta's Android virtual device running on Apple silicon Macs. For the Unix family tree behind XNU, read how Berkeley's BSD broke free of AT&T. The repository showed 471 stars and 257 commits when Badiyaa read it on November 23. Sourcesxnulinux: XNU as a loadable kernel module inside Linux, Heyang Zhou and contributors, GitHub, 2026XNU, Wikipedia, 2026 Image: DYVER, CC BY-SA 4.0 via Wikimedia Commons This article was produced with AI assistance and reviewed by our Editorial Desk. How we work.",
    "markdown": "https://badiyaa.com/xnulinux-macos-kernel-linux-module.md"
}