Chapter 11 — 2020s — ?

The frontier

The virtual machine is no longer just a server-shaped box. It is a spectrum of sandboxes — from hardware-encrypted VMs to WebAssembly — competing for the same job.

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.

SandboxBoundaryStartupTypical use
ContainerNamespaces + cgroups + host kernelmsTrusted services, packaging, CI
gVisorUser-space kernel + syscall interceptionmsUntrusted code with Linux ABI
MicroVMKVM + minimal device model~100 msServerless, multi-tenant functions
Full VMHypervisor + full virtual hardwaresecondsGeneral workloads, heterogeneous OSes
WASMBytecode validator + capability importsµs–msPlugins, edge functions, portable logic
UnikernelSingle-address-space image on a hypervisor~msAppliances, 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.

The pattern

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.

The through-line

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.

27 terms
No term matches “”. Try a shorter query.

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.

End of archive

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.