← all entries

/ 1 min read

Bringing Linux into the Browser with unkernel

wasm, linux, devtoolsread as markdown ↗

Recently started experimenting with unkernel by Pooya Parsa.

It compiles a full Linux 7.x kernel straight into WebAssembly with an arm64 emulator (kwemu) and MMU support. Unlike QEMU emulating an entire machine, the kernel itself runs as native Wasm instructions.

What stands out:

  • Reaches /init in ~70ms.
  • Boots into Alpine Linux in less than a second inside the browser.
  • Uses JSPI / WebAssembly stack switching to tie into the event loop.
  • Supports Wayland (wland) and guest OpenGL through Mesa and WebGL2.

Added an instance directly accessible via the top-right paper fold on the site. Clicking it drops straight into a live shell.