← All guides
Code editor with syntax highlighting
IT & Cloud

Show HN: Three Linux VMs in a browser tab, each running a different browser

WebAssembly makes a browser tab fast enough to boot whole Linux systems, and nesting a browser inside the VM turns isolation layers into a visible, clickable stack. Hypervisors, containers, and tabs guarantee different things.

Photo: VidanaliK · CC0 · via Wikimedia Commons
4 min read · Updated 2026-11-27 · IT & Cloud
Jump to quick answers ↓
Direct answer: The demo boots three Linux virtual machines inside one browser tab and runs a browser inside each. WebAssembly runs compiled code at usable speed inside the sandbox your tab already is, so a machine can live inside a machine inside a machine.

A browser tab is already a jail. It gets no direct memory, no files, no network card, only whatever the browser grants through APIs. The demo's trick is to make that jail self-similar: boot Linux inside the tab, run a browser inside that Linux, and visit pages inside the inner browser.

Each added layer buys isolation with performance. The outer tab guards your real machine, the VM guards the tab's memory, the inner browser guards the VM, and each page guards itself. Reading the stack top to bottom is a crash course in modern sandboxing.

How Linux fits in a tab

WebAssembly is the enabling piece. Compilers turn program code into a compact bytecode format the browser executes at predictable speed, so an x86 interpreter or a lightweight hypervisor can live inside a tab. The disk image arrives as one large file, cached and mounted in memory.

Booting is then mostly bookkeeping. The emulator presents virtual hardware, the image contains a small Linux system, and the kernel starts as if it owned the machine. Nothing escapes the tab: every instruction, every packet, every disk block is simulated inside the sandbox the browser drew.

Projects of this shape have existed for years, from pure interpreters to full system emulators, and each generation got faster as WebAssembly toolchains matured. The current demo is notable mostly for staging three of them side by side, which turns an implementation detail into a visible argument.

Why nest browsers at all

The nested browsers are the demo's argument. Hypervisors isolate whole machines, containers isolate processes that share a kernel, and browser sandboxes isolate pages from everything else. Stack them and you can watch each guarantee hold while the layer above it misbehaves.

There is a cost ledger too. Every layer adds latency to system calls, memory to bookkeeping, and complexity to debugging. Nobody runs production services in a VM inside a browser for speed; they do it for safety, reproducibility, and the pleasure of clicking a link that boots a computer.

The universal sandbox

Browsers earned this role slowly. They are the only runtime installed on nearly every computer, updated on a schedule nobody controls individually, and hardened continuously by people trying to break them. That combination made the tab the default place to demonstrate risky software safely.

browser tab - guards your machinelinux vm - guards the tabinner browser - guards the vmpage - guards itself
LayerIsolation guaranteeCost
Browser tabYour files and OS stay out of reachAPI restrictions everywhere
WebAssembly runtimeTab memory cannot be escapedInterpretation overhead
Linux VMThe guest sees only virtual hardwareBoot time and image size
Inner browserPages cannot touch the VMAnother engine's memory
PageConfined to its own originWhatever the site must load
missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

Key takeaways

  • WebAssembly gives a browser tab enough speed to host whole operating systems.
  • Nesting sandboxes makes each isolation layer visible and testable.
  • Hypervisors, containers, and tabs guarantee different things at different costs.
  • Browsers became the universal sandbox through ubiquity and constant hardening.

Quick answers

Can a whole OS really run in a tab?
Yes - WebAssembly-powered interpreters and hypervisors boot small Linux systems from cached disk images.

Does anything escape the browser sandbox?
By design, no - instructions, network calls, and disk access are simulated inside the tab.

Why run a browser inside the VM?
To demonstrate the stack: the inner browser's pages stay isolated even from the machine that hosts them.

Is this practical for real work?
For demos, testing, and teaching, yes; for speed-sensitive production, the layers cost too much.

Search for a browser-based Linux demo and boot one. Open its terminal and run a command that would be alarming on your real machine, then watch nothing happen outside the tab. That calm is the sandbox working.

Filed undervirtualizationwebassemblybrowsersdevtools
Share this guide
Cite this guide
APABrain — try4ever. (2026, November 27). Show HN: Three Linux VMs in a browser tab, each running a different browser. Brain Blog, try4ever.com. Retrieved November 30, 2026, from https://www.try4ever.com/blog/three-linux-vms-browser/
MLA"Show HN: Three Linux VMs in a browser tab, each running a different browser." Brain Blog, try4ever, 27 Nov. 2026, www.try4ever.com/blog/three-linux-vms-browser/. Accessed 30 Nov. 2026.
ChicagoBrain — try4ever. "Show HN: Three Linux VMs in a browser tab, each running a different browser." Brain Blog, try4ever.com, November 27, 2026. https://www.try4ever.com/blog/three-linux-vms-browser/.
BibTeX@misc{brain2026three-linux-vms-browser, author = {{Brain — try4ever}}, title = {Show HN: Three Linux VMs in a browser tab, each running a different browser}, year = {2026}, howpublished = {\url{https://www.try4ever.com/blog/three-linux-vms-browser/}}, note = {Brain Blog, try4ever.com; published 2026-11-27} }
Link to this guide
HTML<a href="https://www.try4ever.com/blog/three-linux-vms-browser/">Show HN: Three Linux VMs in a browser tab, each running a different browser</a> — Brain, try4ever.com
Markdown[Show HN: Three Linux VMs in a browser tab, each running a different browser](https://www.try4ever.com/blog/three-linux-vms-browser/) — Brain, try4ever.com

Reproducing a paragraph elsewhere? Keep the source line that appears when you copy it — that citation is what search engines and AI assistants credit back to this page.

From Brain Your virtualization map, tonight.

The step above takes ten minutes. Do it on a map: drop the file in, quiz the first node, watch it turn green. It does not leave your device.

Free plan: 21 nodes. No card, no countdown.

Build my map — free