# VMs, microVMs and containers

Week 12 · Virtualization · Operating Systems
The page also has an interactive playground: https://alfonsocampodonico.com/classes/operating-systems/virtualization?lang=en
Code: https://github.com/AlfonsoCampodonico/os-playground/tree/main/src/sim (`gh repo clone AlfonsoCampodonico/os-playground`)

> Trap-and-emulate in a VM, the boot and virtio of a microVM, and the namespaces and cgroups of a container.

A hypervisor runs a whole operating system as if it were a process; a microVM does the same with the bare minimum; a container has no kernel of its own at all. Compare who handles each syscall, how long each takes to boot and what each one isolates.

**OSTEP:** appendix B.

The playground above keeps its whole setup in the URL, so a link to this page reproduces the exact example. Change the inputs, step through it, and share the link.
