The virtual machine is sixty years old and still the boundary of last resort. Every generation of infrastructure claims to make it obsolete — thin clients, containers, serverless, WebAssembly — and every generation ends up running inside one when the workload is untrusted. What is changing is not the need for isolation but the shape and cost of the box that provides it.
From one boundary to a spectrum
The previous chapters told a story of convergence: mainframe hypervisors, x86 translation, paravirtualization and hardware assist all became "a VM." The next decade looks more like divergence. There is no single sandbox that is best for a database, a CI runner, a browser tab, a serverless function and an AI agent. The industry is building a portfolio.
| Sandbox | Boundary | Startup | Typical use |
|---|---|---|---|
| Container | Namespaces + cgroups + host kernel | ms | Trusted services, packaging, CI |
| gVisor | User-space kernel + syscall interception | ms | Untrusted code with Linux ABI |
| MicroVM | KVM + minimal device model | ~100 ms | Serverless, multi-tenant functions |
| Full VM | Hypervisor + full virtual hardware | seconds | General workloads, heterogeneous OSes |
| WASM | Bytecode validator + capability imports | µs–ms | Plugins, edge functions, portable logic |
| Unikernel | Single-address-space image on a hypervisor | ~ms | Appliances, network functions |
Serverless and the economics of the cold start
Serverless platforms made startup time a first-class design constraint. If a function runs for 200 ms, booting a full operating system for 20 seconds is absurd. Firecracker and its peers — Cloud Hypervisor, Kata Containers, Apple's Virtualization.framework, Google's gVisor — compete on how little work is required before user code runs.
Two techniques matter. The first is snapshot and restore: boot a generic microVM once, snapshot its memory and device state, then restore hundreds of copies and let each one specialize itself. The second is lazy loading: fetch memory pages and binaries on demand instead of reading the whole image at boot. Both trade a larger, more complex host-side system for a smaller, faster guest-side one.
The result is a new unit of deployment: an ephemeral, single-purpose VM that may live for milliseconds and never run a login shell. Kubernetes is adapting to it through RuntimeClass and sandboxed runtimes; serverless platforms built their own schedulers because the container orchestrator was not designed for this lifecycle.
WebAssembly: a sandbox without a kernel
WebAssembly began as a compilation target for the browser and grew into a portable sandbox for server-side code. A WASM module is validated before execution, runs in a linear memory isolated from the host, and can only call functions the embedder explicitly imports. WASI defines a capability-oriented system interface for files, clocks, random numbers and networking.
The security model is attractive: no guest kernel, no syscall interface to the host,
no device model, microsecond startup. The trade-offs are equally clear. WASM is not a
general-purpose OS: threads, signals, fork, raw sockets and arbitrary
native libraries are limited or unavailable. The runtime itself becomes the trusted
boundary, and side channels remain. For plugins, policy engines, edge functions and
data transformations, that is often a good deal. For a PostgreSQL server, it is not.
Every sandbox is a bet about which interface can be removed. Containers removed the guest kernel. MicroVMs removed most devices. WASM removed the OS. Each removal improves density and startup, and each one narrows the set of workloads that fit.
Confidential containers and the untrusted operator
Chapter 10 described confidential VMs. The next step is applying the same hardware protection to container workflows: a Kubernetes pod whose memory is encrypted and whose integrity is attested, even though the node, the hypervisor and the cloud operator are outside the trust boundary. Projects under the Confidential Containers umbrella combine Kata Containers with SEV-SNP or TDX, measured boot and remote attestation.
The operational cost is significant. Attestation policy must be written and rotated. Images must be signed and verified. Debugging a VM whose memory the operator cannot read requires new tooling. Live migration of confidential guests is restricted or requires a trusted destination. These are not reasons to avoid the technology; they are reasons to adopt it where the threat model justifies the complexity — regulated data, multi-party computation and infrastructure that runs other people's code.
The hardware keeps moving
Several hardware trends will reshape the next chapter of virtualization:
- DPUs and IPUs. AWS Nitro, NVIDIA BlueField and AMD Pensando move networking, storage and security off the host CPU. The hypervisor's data path becomes a programmable device, and the host CPU is reserved for tenants.
- Memory disaggregation. CXL allows hosts to attach pooled or shared memory over a cache-coherent fabric. A VM's memory may no longer live in the same chassis as its CPU, which changes migration, failure domains and the meaning of "local" memory.
- GPU virtualization. NVIDIA MIG, SR-IOV and mediated devices split accelerators among tenants. AI workloads make GPU isolation as important as CPU isolation was in 2005.
- RISC-V virtualization. The H extension (ratified in 2021) brings hypervisor support to an open instruction set, opening the door to new hypervisor designs without x86's legacy.
- Heterogeneous compute. ARM server CPUs, NPUs and accelerators make the "machine" a collection of devices with different isolation models.
The agent sandbox
The most recent driver of microVM adoption is not a cloud provider. It is AI agents that execute generated code. A coding assistant, a data-analysis agent or an autonomous workflow needs a place to run arbitrary commands, install packages, browse, fail and retry — without exposing the user's machine or the platform's control plane. Containers are often too weak a boundary; full VMs are too slow to create per task.
The emerging pattern is a disposable VM per session: boot from a snapshot, mount a workspace, run the agent, record the result, destroy the machine. Firecracker, Cloud Hypervisor and proprietary microVM platforms are competing for this workload. The requirements look familiar — fast boot, small device model, strong isolation, snapshot/restore, network policy — but the scale is different: millions of short-lived sandboxes rather than thousands of long-lived servers.
CP-40 multiplied one expensive mainframe. VMware multiplied one cheap PC. The cloud multiplied one data center. The agent era multiplies one task. The implementation changes; the purpose does not: make a finite machine look infinite while keeping every tenant inside its box.
Glossary
Twenty-seven terms used across the archive. Search by name or definition.
References
Primary sources, vendor documentation and the papers behind the claims in this archive. Links open in a new tab; the site itself loads nothing from third parties except the font and Alpine.js CDNs.
- G. J. Popek and R. P. Goldberg, Formal requirements for virtualizable third generation architectures, CACM 17(7), 1974.
- P. Barham et al., Xen and the art of virtualization, SOSP 2003.
- E. Bugnion, S. Devine, M. Rosenblum, Disco: running commodity operating systems on scalable multiprocessors, 1997.
- IBM, Innovative virtualization: 45 years of VM history (PDF).
- Tom Van Vleck, The IBM 360/67 and CP/CMS.
- VMware, Understanding full virtualization, paravirtualization, and hardware assist (PDF).
- Intel, Intel Virtualization Technology; Intel SDM volume 3C.
- AMD, AMD64 Architecture Programmer's Manual.
- Linux kernel, KVM documentation.
- QEMU documentation and libvirt domain XML.
- Virtual I/O Device (virtio) specification 1.2.
- AWS, EC2 retrospective and Nitro System.
- AWS, Firecracker launch post; project site.
- Kata Containers · gVisor · OCI.
- AMD, Secure Encrypted Virtualization; Intel, TDX.
- Linux kernel, Hardware vulnerabilities; Xen security advisories.
- Google Project Zero, Reading privileged memory with a side channel, 2018.
- cloud-init · Kubernetes documentation · namespaces(7).
- J. Smith and R. Nair, Virtual Machines: Versatile Platforms for Systems and Processes, Morgan Kaufmann, 2005.
- A. Kivity et al., "KVM: the Linux virtual machine monitor," Linux Symposium, 2007.
You have reached the last chapter. If you found a factual error or a broken link, the source is a static HTML file — fork it, fix it, and keep the archive honest.