this post was submitted on 01 Nov 2025
109 points (98.2% liked)

Linux

9995 readers
382 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

Open-source developer Joel Severin today announced his work on porting the Linux kernel to WebAssembly and has successffully gotten the kernel up and running within WASM-capable web browsers.

This WebAssembly port of the Linux kernel is up and running basic programs from a shell within a web browser. But there are stability issues and it didn't take me long either to trigger crashes for this Linux kernel WASM port when running within Google Chrome.

top 5 comments
sorted by: hot top controversial new old
[–] balsoft@lemmy.ml 5 points 2 days ago

For anyone too lazy to follow two links, here's the demo: https://joelseverin.github.io/linux-wasm/

[–] Valmond@lemmy.world 16 points 3 days ago

Still can't open a local file because of "CORS"

[–] Sims@lemmy.ml 9 points 3 days ago (1 children)

Neat. I had to think about the purpose of running a kernel in a browser, and couldn't find any at first, but if we just see wasm as a browserless container environment, then it makes more sense than running a linux kernel in a browser. I could see a minimal linux spinning up specialized kernels in different wasm containers, much like vm's. Not sure what hardware/software roadblocks exist in a modern wasm container environment tho.

[–] DmMacniel@feddit.org 5 points 3 days ago (1 children)

Why not just use docker/k8s then and even be able to control those containers via hypervisor?

[–] towerful@programming.dev 11 points 3 days ago

Because WASM is a VM in terms of isolation.
Docker is just chroot with marketing (and tooling & ecosystem).

So, the idea of wasm is something that could actually run anywhere, without everything required to prop up a docker/k8s runtime