unkernel's latest build puts a GPU and a Wayland desktop in a browser tab
Try it, if you want a real Linux shell in a browser tab or need to embed one in a JavaScript app. The 22 Nov build of the eleven-day-old project runs unmodified Wayland and GL apps as windows on the page; the SDK is MIT, the kernel GPL-2.0.
The release notes for the 22 Nov build open with the line the news turns on: "Linux in the browser now has a GPU and a desktop: unmodified Wayland and GL apps (Firefox, Chromium, SuperTuxKart) run as windows on the page." (release)
Under the desktop is the part that makes it more than a demo. unkernel is Linux 7.x compiled to one wasm module with a real MMU, so fork, mmap and copy-on-write behave as they do on hardware. Only user programs are emulated, and they are unmodified aarch64 binaries, so Alpine and Debian packages install from their regular mirrors. The README puts the Alpine prompt at 0.3 s after node launches and the page download at about 10 MB. Those are the project's own measurements, from 14 and 18 Nov.
The GPU is a virtio-gpu device with the stock driver. Its GL commands run on the page's WebGL2 context through a wasm build of virglrenderer, and the renderer loads only when a guest program first asks for GL. It is on by default for Debian on the page.
Read the known limits before building on it: no IPv6, no UDP beyond DHCP and DNS, no inbound connections, no strace or gdb, and "A wasm trap in the kernel ends the session." Releases are date-stamped 0.2.0 builds, seven of them since 19 Nov, so pin one.
If you embed it, mind the license split. The SDK and page are MIT and the kernel is GPL-2.0-or-later, so the npm package unkernel declares "MIT AND GPL-2.0-only". unkernel was created on 12 Nov and listed on openspace today.
We read the README, the 22 Nov release notes and the npm metadata, checked 23 Nov, 08:44 UTC. We did not run it or reproduce the benchmarks.