Unkernel boots Linux on WebAssembly inside a browser tab. This project puts Chromium and the entire site inside its Debian image, then opens the site again inside Chromium. Each guest boots another Linux VM from the same image.
Your browser
βββ Unkernel / Debian
βββ Chromium
βββ Unkernel / Debian
βββ Chromium
βββ Unkernel / Debian
βββ β¦
The page goes straight to the VM desktop. Each Chromium window belongs to a real Linux guest. The recursion is real; your CPU gets to do all of it. πͺ
Everything needed by the next level is baked into the image: Chromium, Python, the page, JavaScript, and WebAssembly. A small HTTP server inside each guest serves those files over 127.0.0.1:8080. It serves the mounted read-only boot disk at /dev/wda as the next guest's image, so the image never has to contain a copy of itself. External guest networking is disabled by default.
The host browser fetches the initial assets from GitHub Pages. After that, recursive loads stay inside the VMs. GitHub Pages uses coi-serviceworker for cross-origin isolation; the local server sends the isolation headers directly.
Try different depths and memory budgets by editing the URL:
https://pirate.github.io/unkernel-inception/?depth=3&mem=4096&ratio=50&cpus=2
| Parameter | Default | What it controls |
|---|---|---|
depth |
3 |
Total Linux VM levels, including the outer VM |
mem |
4096 |
Outer VM memory in MiB |
ratio |
50 |
Percentage of parent memory assigned to the next VM |
cpus |
2 |
Outer VM CPUs; deeper guests use one CPU |
net |
0 |
External networking; loopback stays available |
Each level adds another layer of CPU emulation. Deeper guests use software rendering and one CPU to reduce nested graphics and synchronization overhead. Startup time grows substantially with depth; memory shrinks to a minimum of 256 MiB per VM. In current testing, the second Linux VM takes about three minutes to boot, and the second Chromium launch is still being debugged. Reloading the outer page starts over.
Build and run locally with Node.js 24+, Python 3, and Docker with linux/arm64 support:
git clone https://github.com/pirate/unkernel-inception.git
cd unkernel-inception
npm run build:web
npm run build:image
npm start
# Open http://localhost:8080/The first build downloads the pinned Unkernel release and installs Debian's Chromium packages. Later image builds reuse the unkernel-build container. dist/ contains the complete static site, including its roughly 340 MiB boot image. Pushes to main rebuild it on an ARM64 GitHub Actions runner and deploy to GitHub Pages.
public/bridge.js launches Chromium as a detached guest process and propagates the nesting settings. Disk prefetch streams the image once at each level to avoid hundreds of nested HTTP range requests. server.py serves static files and byte ranges from the boot disk. scripts/build-web.mjs builds the pinned upstream desktop with local asset URLs, and scripts/prepare-image.sh packs everything into EROFS. Runtime diagnostics are available as window.unkernelStatus in the outer browser console.
Project code is MIT licensed. Unkernel, Linux, Debian packages, and coi-serviceworker retain their respective licenses. The generated site includes Unkernel's dependency notices at licenses.md; installed package notices remain in /usr/share/doc inside the guest.