← Market Pulse · Nov 25
xnulinux: load the XNU kernel as a Linux moduleGitHub · created Nov 20 (5 days ago) · original page ↗
Stars / day new0 → 1,526

macOS in Linux: a calling card for an agent company

What it isTurns the macOS kernel into a Linux kernel module, so a full desktop runs without a virtual machine.

Why it grewHit #1 on HN the day it went open source on Nov 23; Apple and Linux media kept covering it for two days.

What to takeA tool seller used its own tools to do something everyone thought couldn't be done, then open-sourced it. The screenshot is the ad.

Who built itHeyang Zhou, co-founder of AFK AIHow it makes moneyFree and open source; the parent company sells AI agents, no public pricingStaying powerA spike, mostly curiosity traffic, far from everyday use
Two systems on one machine: on the left, a terminal in macOS 27.2.1; on the right, SSH into the Ubuntu it lives on, showing the two kernel modules xnu and fki (project README)

Positioning and edge

Who it's forDevelopers who want to run macOS on non-Apple machinesThe job it doesRun a full macOS desktop inside Linux, no virtual machineWhat people did beforeBuy a Mac, rent a cloud Mac, or install a Hackintosh in an x86 virtual machineThe wedgeThe macOS kernel as a Linux module, loaded with one command

How it differs from the rest

  1. Runs Apple's original macOS 27, not a rewritten compatibility layerSafari and Chrome work; HN: Darling and its kind tried for 20 years and failed
  2. Runs on non-Apple hardware: bare-metal NVIDIA DGX SparkNov 23: a user got to the desktop on 4 cores and 8GB; the author reposted it and added it to the README
  3. No virtual machine layer; the two kernels share the CPUREADME: 31–48 seconds to the desktop, vs. 49 seconds for an Apple virtual machine on the same machine
  4. 263 commits in 5 days, mostly written by an AI agentFirst commit is co-authored with Claude Opus 5.5; PRs are submitted by CommaBot

Who else is in the space

Similar productHow it differs from this one
DarlingmacOS compatibility layer, 13,800 starsDarling rewrites the interfaces and is weak on graphics; this runs the original OS
Docker-OSXmacOS installed in a virtual machine, 53,000 starsGoes through x86 virtual machines, and macOS 27 no longer ships an Intel version
UTMVirtual machines on a Mac, 37,000 starsOnly runs on a Mac, limited to 2 macOS virtual machines per machine
macOS-DroidVMmacOS on an Android phone, 31 starsA phone virtual machine; xnulinux borrows its base and removes the virtual machine

Can it hold?Can't be defended: the code is open source and the base is borrowed from DroidVM. The real choke point is Apple's license agreement, not competitors.

How it happened

  1. AFK AI creates a GitHub organization; its main business is open-source AI agents ↗

  2. Repo created; first commit co-authored with Claude Opus 5.5 ↗

  3. About 33 hours after the first commit, macOS 27.2.1 reaches the desktop ↗

  4. The author's X post: one sentence and one screenshot, 260K views, 3,524 likes ↗

    The post that lit the fuse: one sentence and one screenshot from the author, 260K views, 3,524 likes (time in the image is US Pacific)
  5. Open-sourced and hits #1 on Hacker News, 621 points, 265 comments ↗

    Posted to Hacker News about ten minutes after going open source; peaked at #1 with 621 points and 265 comments; top comments argue about Apple's license agreement
    What sets it apart from Hackintosh and virtual machines: it reached the macOS desktop on bare-metal Ubuntu on an NVIDIA DGX Spark, a non-Apple machine
  6. AppleInsider and other Apple media follow up; 1,693 stars ↗

    Second wave: AppleInsider's Nov 24 report, which carried it from the Linux crowd to Apple users
  7. Stars reach 3,219, up 1,526 in a day; someone asks for an x86 version ↗

In detail

What it's like to use

It isn't a download-and-run product. You need an arm64 Linux host (the only ones tested are a Linux virtual machine on a Mac and a bare-metal NVIDIA DGX Spark), plus a Mac with Xcode as the source for the system disk. The repo ships no Apple binaries, so you install macOS 27 yourself and copy it over. Run the six-step script, insmod xnu.ko, and you're at the desktop, with Safari and Chrome both opening. The costs are listed by the project itself in docs/production.md: part of the system security checks (AMFI, SIP) is turned off, and on the DGX Spark graphics are still CPU software rendering.

Why it's different, and who cares

Before, there were only two paths. Darling rewrites macOS's system interfaces; it has been at it since 2012 and still can't really run graphical apps. Hackintosh and Docker-OSX go through x86 virtual machines, and macOS 27 no longer ships an Intel version. xnulinux takes a third path: it compiles Apple's open-source XNU kernel as a Linux module. The people cheering on Hacker News had practical reasons: "Can I run Xcode on this to build iOS apps? I just spent $1,500 on a MacBook Air for that"; "Next step is running multiple XNU containers, so people stop piling idle Mac minis into the rack." The skeptics all made one point: the macOS license only allows running on Apple hardware, and building a build farm on this is "poking the bear."

Discounts on this growth

The 1,526 stars on Nov 25 weren't a cold start but the aftershock of day two: the repo only went public on Nov 23 and had already gained about 1,700 on day one. The path was the author's X post with 260K views → about 8 hours in Hacker News's top two → relay coverage from Phoronix and AppleInsider. As of Nov 25 it had 3,472 stars and only 158 forks, under 5%: lots of bookmarking, little hands-on use.

Where the money is, and what to learn

xnulinux charges nothing, and no path to charging is visible. AFK AI, the company behind it, sells AI agents: the personal assistant Comma and the enterprise edition Comma for Teams (no public pricing). The repo looks more like a capability demo: PRs are submitted by the company's own CommaBot, and when someone asked for an x86 version, the author replied "have your agent try it." In two days its stars passed the total of the company's 29 earlier repos over 16 months (about 2,300).

What you can copy: pick something everyone thinks can't be done, build it with the tools you sell, and post one sentence with one screenshot. What not to copy: don't build a business on something sitting in Apple's license gray zone, and don't expect onlookers to become users. Comma gained only 25 stars the same week.

The company site behind it: it sells AI agents (Comma, Comma for Teams) and doesn't mention xnulinux once