← all systems · see it in The System
Virtualization (hypervisors, virtual machines, containers)
| boundary | Inside: the layer that makes one machine look like many (a virtual machine monitor or hypervisor below guest operating systems, or the operating-system kernel's namespaces and control groups for containers), the virtual resources it hands out (virtual processors, guest-physical memory mapped onto machine memory, virtual disks and networks, per-container views and quotas), the isolation and resource control it enforces, the guests as wholes (their encapsulated state, which can be saved, copied, rolled back and moved), and the management interface that creates, sizes, snapshots, migrates and destroys them. Outside: the hardware it runs on (whose traps, modes and later virtualization extensions it depends on), the guest operating systems and applications themselves, the cloud providers and data centres that sell it, and the attackers who try to cross its boundary. Guest-side agents written to cooperate with the monitor (the balloon driver, paravirtual drivers and hypercalls, guest tools) run in guest code, outside this boundary; they are booked as exchanges with Operating system that cross by agreement, which is also why the monitor cannot see which guest pages matter (the causal-ceiling reading). |
| nested level | Built from software on computer hardware, using the processor's protection modes and traps; embedded in operating systems (containers are an operating-system feature, a hosted hypervisor runs on a host OS, KVM is a kernel module) and under cloud computing, where it is 'the main enabling technology'. |
| scale | technological |
From the walk
VMware's founders recall that Intel's own engineers were convinced the x86 processors could not be virtualized in any practical sense; VMware Workstation, introduced in 1999, did it anyway by combining direct execution with a dynamic binary translator that handled the guest's troublesome instructions (src:bugnion-2012-vmware).
Definition. In computing, virtualization abbreviated as v12n, is a series of technologies that allows dividing of physical computing resources into a series of virtual machines, operating systems, processes or containers. Walked as systems research describes it: making one machine present itself as many, each isolated from the others: Popek and Goldberg's 'efficient, isolated duplicate of the real machine' built by a monitor below the operating system, and containers built by an operating system kernel that gives each group of processes its own view and its own share. Definition drawn from the encyclopedia entry (Wikipedia, CC BY-SA).
On this page: Properties 2 · Measures 32 · Open contentions 5 · Cross-scale patterns 23 · Valence partners 9 · Partners and parts 69 · Notes 3 · Layers 52 · Sources 36
Properties published scienceour proposal
Sourced fields, and our own readings.
| born at | 1967-01 (CP-40 in production) |
| born precision | month |
Measures (32) published science
| CP-40 in production | 1967-01 date |
| first VT-x processors | 2005-11-13 date |
| Disco virtualization overhead (uniprocessor workloads) | 3 to 16 % slower than native |
| Disco size | about 13,000 lines of code |
| world switch latency (VMware hosted architecture) | 4.45 microseconds (733 MHz Pentium III) |
| binary-translation callout cost | about 1000 cycles |
| software VMM overhead (Adams and Agesen 2006, as reported) | at most 4 (CPU-intensive); 25+ (system-intensive) % |
| SPEC WEB99 relative to native (Xen 2003) | within 1 (Xen); under one third of native clients (VMware Workstation, UML) % |
| Xen performance isolation under antisocial domains | 4 and 2 % below solo results (OSDB-IR, SPEC WEB99) |
| Xen state per domain | 20 kB |
| quiescent Xen domain memory footprint | 6.2 (4.2 with swap) MB |
| Xen default maximum scheduling slice | 5 ms |
| live migration downtime, Quake 3 server | 60 ms |
| live migration downtime, SPECweb | 210 ms |
| live migration downtime, diabolical writer | 3.5 s |
| data sent to migrate a 512 MB VM under constant writes | 638 (x1.25) MB |
| balloon driver polling period (ESX) | 1 s |
| content-based page sharing, homogeneous VMs (ESX) | sharing approaches 67; nearly 60 reclaimed % of aggregate VM memory |
| chance of co-residence with a target (EC2, 2009) | 40 % for a few dollars of launches |
| Firecracker boot to application code | under 125 ms (memory overhead under 5 MB; up to 150 microVMs per second per host) |
| Firecracker size | about 50k (96% fewer than QEMU) lines of Rust |
| system calls a trivial Linux application needs | 15 (a typical Ubuntu 15.04 install: 224 and 52 ioctls) syscalls |
| container overhead against bare metal (Li 2017) | under 4 (throughput, latency); up to 50 (storage transactions) % |
| storage overhead from 24-hour disk-test rounds (Li 2017) | bare metal 150, container 147, VM 101 rounds (overheads 2% and 32.67%) rounds in 24 h |
| memory variability overhead (Li 2017) | container over 500; VM almost 1400 (Triad), with mean throughput overhead about 4 for the VM % |
| HyperThreading performance as advertised | up to 30 % |
| covert channel capacity between Docker containers (Luo, as reported) | over 700 bits per second |
| container vulnerabilities classified (Jarkas 2025) | over 200 vulnerabilities; 47 exploit types; 11 attack vectors count |
| Meltdown read rate inside a container host (with exception handling) | 123 KB/s (error rate 0.03%) |
| x86 (Pentium) instructions that violate the virtualization requirement | 17 of about 250 instructions |
| LightVM boot time | 2.3 (fork/exec on Linux: 1) ms |
| nested virtualization overhead (Turtles) | 6-8 % over single-level virtualization |
Open contentions (5) open contention
Where sources or readings disagree. Both stay on the map.
- C-4638 Are containers (programs boxed off on a shared operating system) safe enough to keep strangers' programs apart, or much weaker than full virtual machines because they share one core?
booked: The map keeps both readings side by side and rules on neither.
the other reading: OS-level virtualization is used for 'securely allocating finite hardware resources among a large number of mutually-distrusting users' (src:wp:os-level-virtualization); The gap is of degree, not kind: VMs also break (escapes through device emulation; Foreshadow-NG reads across VMs) (src:wp:vm-escape; src:weisse-2018-foreshadow-ng); The trade-off itself is a 'traditional view' that microVMs set aside, giving VM isolation at container overhead (src:agache-2020-firecracker); three years earlier, Manco and others: 'VMs can be as nimble as containers, as long as they are small and the toolstack is fast enough', and the container's weak point is 'the hugely powerful kernel syscall API' (src:manco-2017-lightvm) - C-4639 Do containers always run faster than virtual machines (whole simulated computers), or are there cases, such as saving data to disk, where they are slower?
booked: The map keeps both readings side by side and rules on neither.
the other reading: Not in every case: Docker containers showed up to 50% overhead in storage transaction speed while the VM was close to bare metal for small writes (src:li-2017-overhead); A paravirtualized hypervisor can be within a few percent of native (Xen 2003: within 1% on SPEC WEB99) (src:barham-2003-xen); The main cost of both shows in variability, not averages (src:li-2017-overhead); The two sides measured different monitors: Li used VMware Workstation 12 Pro (hosted) on a 3 GB machine and 'denies the IBM report's finding'; Felter used KVM (src:li-2017-overhead); The cost of VMs is in the toolstack, not the hypervisor: LightVM boots in 2.3 ms, two orders of magnitude faster than Docker (src:manco-2017-lightvm) - C-4652 Is the classic split of hypervisors (software that runs virtual computers) into those running directly on hardware and those running on top of an operating system still clear, or blurred?
booked: The map keeps both readings side by side and rules on neither.
the other reading: 'The distinction between these two types is not always clear': KVM and bhyve are kernel modules that turn the host operating system into a type-1 hypervisor (src:wp:hypervisor); VMware: Goldberg's definition 'must be adapted to the more modern environment', yet Workstation is 'clearly a type II VMM' because the host OS makes the resource decisions (src:bugnion-2012-vmware); Goldberg's own 1973 definition: Type I and Type II are kinds of mapping, a virtual machine's resources mapped onto real resources (Type I) or onto the process names of a host (Type II) (src:goldberg-1973-architecture). The specialist's reading, unsourced as a verdict: by that test KVM guests (memory in a host process, vCPUs as host threads) would come out Type II, against the encyclopedia's type-1 reading - C-4653 Is a virtual machine better kept apart from others by never letting it name their resources at all, or by checking every request it makes?
booked: The map keeps both readings side by side and rules on neither.
the other reading: Naming is the stronger line: what cannot be named cannot be reached (Denali's view, as Xen's authors report it; src:barham-2003-xen); Checking suffices and naming costs correctness and speed (Xen's view; src:barham-2003-xen) - C-4688 Could the common x86 computer chip run virtual machines properly before 2005? Strictly it could not, but some say a translation technique made it meet the standard test anyway.
booked: The map keeps both readings side by side and rules on neither.
the other reading: Binary translation made the x86 meet all three of Popek and Goldberg's criteria, though not by trap-and-emulate (VMware's researchers in a 2006 ASPLOS paper, as the encyclopedia reports it; src:wp:x86-virtualization); VMware's monitor 'nearly met the requirements of an HVM' (Popek and Goldberg's hybrid monitor), with the translator in place of the interpreter (src:bugnion-2012-vmware)
Cross-scale patterns seen here (23) our proposal
Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Virtualization (hypervisors, virtual machines, containers). Each links to every other system that shows it.
- barrier-gates-complexity (structural)
With the isolation barrier, four domains (two running a fork bomb, a 3 GB memory thrasher, a disk hog and mass file creation) left the benchmarks in the other two only 4% and 2% below their solo results; without it, under native Linux, the same processes 'rendered the machine completely unusable'. M - holding / entrainment (structural)
The monitor sets the number, life and clock of its guests: Domain0 creates and terminates domains and sets their scheduling parameters and memory; Xen's slice (5 ms) sets when each runs; Firecracker creates up to 150 a second. - nested ladder (structural)
Popek and Goldberg's conditions form a ladder: recursively virtualizable needs virtualizable plus a monitor with no timing dependencies (Theorem 2); virtualizable needs every sensitive instruction privileged (Theorem 1); a hybrid monitor needs only the user-sensitive ones (Theorem 3), so 'more actua - outside-to-inside (structural)
Isolation that used to be between separate dedicated servers moved inside one server: consolidation put 'multiple underutilized dedicated servers' into one machine, the partition now held by the monitor. Ristenpart's fix runs it back out, letting a tenant fill a whole machine with its own VMs. - red-queen (structural)
The attack-defend loop over the isolation boundary, with one full turn sourced: Meltdown read across containers and paravirtual guests; page-table isolation (KAISER), already built against attacks on kernel address randomisation, stopped it 'as an inadvertent side effect'; Foreshadow-NG computed on - same role, different builds (structural)
One job, keeping many users' programs apart on one machine while each sees a machine of its own, done by unrelated builds: trap-and-emulate on hardware that traps (CP-67), dynamic binary translation (VMware 1999), paravirtual ports with hypercalls (Xen 2003), processor modes (VT-x 2005), kernel name - same shape, opposite sign (structural)
One mechanism, sharing identical pages copy-on-write, run with its sign reversed: for the provider it reclaims memory (ESX: sharing near 67%, nearly 60% reclaimed); for a co-resident attacker it is the channel (Flush+Reload works through shared pages, and Firecracker advises 'disabling swap and same - templating (structural)
The virtual machine is a conserved module swapped between hosts and still working: VMware's canonically chosen devices made guests hardware-independent; restricting CPUID lets a live guest move across processor generations; a migrated OS keeps its TCP connections. - The carry (structural)
Migration shows the wait face: a stop-and-copy cannot settle until the dirty pages left over from each round have been carried across, so downtime is set by the last round (60 ms, 210 ms, or 3.5 s when writes outrun the link). Memory shows the overflow face: when ballooning cannot hold the reclaim, - The Payment to Entropy (structural)
Every pass through the monitor pays a toll: Disco 3% to 16%; a software monitor up to 4% on CPU work and 25%+ on system work; a world switch 4.45 microseconds; Li's VM finished 101 disk rounds where bare metal finished 150 (efficiency about 0.67) and the container 147 (about 0.98); migrating a 512 M - the whole sets the local reference (structural)
Each guest reads its own 'physical' addresses as true, while the monitor holds the reference that maps them onto machine memory (Disco's pmap); a process in a PID namespace has 'a distinct PID for each namespace from its current namespace up to the initial (root) PID namespace', so the local number - trade one property for another (structural)
Isolation is bought with overhead and compatibility: 'The traditional view is that there is a choice between virtualization with strong security and high overhead, and container technologies with weaker security and minimal overhead'; containers trade security against compatibility through the syste - Umwelt: each system carves its own slice of one shared medium (structural)
Each guest carves its own slice of one machine: 'Programs running inside a container can only see the container's contents and devices assigned to the container', and a program 'believes them to be all that is available'; namespaces dictate 'what a process is allowed to see'. One shared machine (the - who opens the door (structural)
Every door into the monitor is opened from the inside ahead of time: the trap location holds the dispatcher's first instruction before any guest runs; Xen guests register the event-callback handler the hypervisor calls; ESX loads a balloon module into the guest with a private channel; migration rese - borrowed-then-held (partial)
On the x86 the trapping that Popek and Goldberg ask of the processor was first done in software around it (binary translation from 1999, paravirtual ports from 2003) and then held by the processor itself (VT-x 2005, AMD-V 2006, nested paging 2007-2008); VMware now 'mostly uses a hardware-based, trap - causal ceiling (partial)
The monitor cannot see which of a guest's pages matter: the guest knows, the monitor does not, so ESX inflates a balloon inside the guest and lets 'the guest OS decide which particular pages to reclaim'. A limit on what the lower layer can know, set by the layering itself, worked round by asking the - lightning (partial)
The 2018 transient-execution disclosures fired out of the blue across the whole field: Meltdown read kernel memory from user space and across containers, and its publication 'generated a flurry of interest... and prompted the development of new mitigation techniques in operating systems, processors, - namespace completeness (the map predicts its gaps) (partial)
Popek and Goldberg's classification predicts from an instruction table, before anyone builds a monitor, which machines can host one: the PDP-10's JRST 1 rules it out; UCLA used the result to modify the PDP-11/45; the x86's table of sensitive unprivileged instructions (pushf, popf, sgdt and the rest) - partner-becomes-part (partial)
The hypervisor and the operating system, separate products in 1999 (VMware beside the host OS through a world switch), fused: Xen dom0 and domU support entered the mainline Linux kernel at 3.0, and KVM is a kernel module that turns the host into a hypervisor. - runaway from an unstable balance (partial)
Pre-copy migration balances copy rate against dirtying rate; once a guest writes faster than the link copies, each round leaves as much dirty as it sent ('might never converge'), and Clark's diabolical writer forced a stop with 3.5 s downtime after three rounds. - same toolkit, independent builds (partial)
Linux container systems are separate assemblies from one kernel toolkit: 'Different Linux container implementations use these tools in different combinations' (namespaces, cgroups, seccomp, chroot): LXC, Docker, Podman, and Firecracker's own jailer. - seed (surface)
Seed check: maybe. The monitor layer opened combinations far beyond its size: any operating system on any hardware, beside any other (Disco's monitor was about 13,000 lines under million-line systems), and then the rentable unit of the cloud. Whether that is new combinatorics or one more layer is no - symmetry breaking (name the cut) (surface)
The cut that makes virtualization possible: a processor with supervisor and user modes, where 'a subset of the instruction set is available only when in system mode'; the monitor keeps the real supervisor mode and gives each guest a simulated one.
Valence: what it trades, and with whom (9) published science
Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.
- Human (Homo sapiens) via The world through the senses (sensory environment) · Virtualization (hypervisors, virtual machines, containers) gain
- Computer memory via Computer hardware · Virtualization (hypervisors, virtual machines, containers) gain
- Data centre via Computer hardware · Virtualization (hypervisors, virtual machines, containers) gain
- Operating system via Computer hardware · Virtualization (hypervisors, virtual machines, containers) gain
- Side-channel attack via Computer hardware · Virtualization (hypervisors, virtual machines, containers) loss
- Computer hardware via Computer hardware · Virtualization (hypervisors, virtual machines, containers) gain
- Computer network via Computer network · Virtualization (hypervisors, virtual machines, containers) gain
- Cloud computing via Computer hardware · Virtualization (hypervisors, virtual machines, containers) gain
- Trust boundary via Computer hardware · Virtualization (hypervisors, virtual machines, containers) gain
Partners and parts published science
Built from / builds (8)
- Cloud computing
- Hypervisor
- Container (OS-level virtualization)
- Virtual machine
- Linux namespaces
- Control groups (cgroups)
- Dynamic binary translation
- Live migration
Sits inside / holds (4)
expressed by (30)
- Recombination/Composition
- Scaffolding/Enablement (Meta-Tooling)
- Templating / Standardization
- Interoperability/Transduction (Bridging)
- Encapsulation & Modularity (Abstraction)
- Amplification/Scale-Up (Manufacture & Distribution)
- Evolvability/Plasticity Engineering (Design for Future Variation)
- Internal Coordination/Regulation
- Sensing/Scanning
- Mapping/Modeling
- Trail-Marking / Externalized Memory (Stigmergy)
- Evade Detection
- Overcome Barrier
- Precision Attack
- Resource Denial/Attrition
- Subversion & Co-optation
- Prepositioning & Latency
- Reactive Response
- Proactive Defense
- Physical/Virtual Barrier
- Self-Monitoring
- Validation of Effectiveness
- Enclave/Segregation
- Deception
- Resilience & Repair
- Redundancy & Diversity
- Triage & Prioritized Allocation
- Quality Control & Error Correction
- Bridging Supply Gaps (Store & Dormancy)
- Scheduled Build-and-Dismantle (On-Demand Structure)
floor filled by (15)
- Cloud computing
- Human (Homo sapiens)
- Computer memory
- Data centre
- Operating system
- Hypervisor
- Computer hardware
- Container (OS-level virtualization)
- Virtual machine
- Trust boundary
- Linux namespaces
- Control groups (cgroups)
- Dynamic binary translation
- Live migration
- Hardware-assisted virtualization
represents (1)
Kinds (10)
- Container (OS-level virtualization)
- Virtual machine
- MicroVM (e.g. Firecracker)
- User-space kernel sandbox (e.g. gVisor)
- Browser-sandbox isolation (e.g. Cloudflare Workers)
- Confidential computing (trusted execution environments)
- Full virtualization
- Paravirtualization
- Hardware-assisted virtualization
- Hybrid virtual machine monitor
wired (1)
Notes published science
- VMware's founders recall that Intel's own engineers were convinced the x86 processors could not be virtualized in any practical sense; VMware Workstation, introduced in 1999, did it anyway by combining direct execution with a dynamic binary translator that handled the guest's troublesome instructions (src:bugnion-2012-vmware).
- Once a computer's whole state is a file, its life stops being a line and becomes a tree: roll a virtual machine back and you can bring removed worms back, or, in some authentication protocols, reuse a one-time random number and leak your private key (src:garfinkel-rosenblum-2005).
- Researchers reported in 2009 that a few dollars of rented virtual machines gave them a 40% chance of landing on the same physical server as a target customer in Amazon's cloud, close enough to measure its activity through shared hardware such as the caches (src:ristenpart-2009-cloud).
Layers
The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.
the boardroom (shared floors)
- L4: The virtual resources as the monitor holds them: virtual CPUs, the guest-physical to machine memory map, virtual disks and networks, namespace views and cgroup quotas
- L5: Isolation and resource control: the allocator keeps guests apart and within their shares; performance isolation; for containers, namespaces, cgroups, capabilities and seccomp
- L6: The guest as a whole: a machine essentially identical to the real one for the programs in it, whose whole state is software (checkpoint, copy, roll back, migrate)
- L7: One machine presented as many: time-sharing, consolidation, hosting and the cloud, each guest paid for and placed by its operators
virtualization as systems researchers describe it: the physical machine, its traps and modes, the monitor or shared kernel, the virtual resources, isolation and resource control, the virtual machine or container as a whole, and one machine presented as many to many users (reader's view)
- L1: The physical machine, the host: processors, memory, disks and network devices, which run the guest's ordinary instructions directly
- L2: The processor's protection modes and traps: supervisor and user mode, privileged instructions that trap in user mode, the relocation and paging hardware; on the x86, rings, then VT-x/AMD-V root and non-root modes (2005-2006) and nested page tables (2007-2008)
- L3: The virtual machine monitor (hypervisor): a dispatcher, an allocator and interpreters for each trapping instruction; or binary translation, or hypercalls from paravirtual guests; for containers, the shared kernel's system-call path filtered by seccomp
- L4: The virtual resources: virtual processors scheduled on real ones, guest-physical memory mapped onto machine memory (pmap, shadow or nested page tables), virtual disks (copy-on-write) and virtual networks; for containers, each namespace's view and each control group's quota
- L5: Isolation and resource control: no guest can reach a resource not allocated to it; the monitor can take resources back; performance isolation between mutually untrusting tenants; for containers, namespaces, cgroups, capabilities and seccomp
- L6: The virtual machine (or container) as a whole: an efficient, isolated duplicate of the real machine running its own operating system, whose whole state is software and can be checkpointed, copied, rolled back and migrated
- L7: One machine presented as many to many users: time-sharing on costly mainframes, server consolidation, co-located hosting and the multi-tenant cloud, paid for by use
way in: A running machine arriving from another host (incoming migration)
- L1: Memory pages and CPU state over the cluster network
- L2: Reservation: the target confirms resources and reserves a container of the right size
- L3: Commitment: the target reports a consistent image and becomes primary
way in: Container processes' system calls into the shared kernel
- L1: Processes in a container calling the one kernel they share with every other container
- L2: The seccomp-bpf filter: which system calls and arguments are allowed
- L3: The kernel resolves each name (process ID, mount, network interface, user) within the caller's namespaces
way in: Disk and container images
- L1: Image files on storage: a root disk with kernel and programs, or a container image
- L2: The virtual disk layer: copy-on-write, with writes kept private to the guest
- L3: Mounted as the guest's root; read-only pages shared in machine memory
way in: Guests' device input and output
- L1: The guest's disk and network requests (DMA into its memory, packets on its virtual NIC)
- L2: Interception: an emulated device, or shared-memory buffer-descriptor rings that the monitor can check
- L3: The monitor's device model or the driver domain with real device access; a read of a block already in memory is served by mapping the page read-only
way in: Guests' sensitive operations (traps and hypercalls)
- L1: The guest's instruction stream running directly on the real processor
- L2: A sensitive instruction traps (or, on the old x86, fails silently and must be caught by binary translation; a paravirtual guest makes a hypercall instead)
- L3: The dispatcher decides which module handles the trap: the allocator for a change of resources, an interpreter for the rest
way in: Management commands (create, size, snapshot, migrate, destroy)
- L1: Administrators and cloud control planes sending commands
- L2: The privileged control interface (in Xen, usable only by Domain0)
- L3: The management software (toolstack) that turns a request into creations, reservations and policies
way in: Physical interrupts and time
- L1: Device interrupts and timer ticks arriving at the physical processor
- L2: The monitor's interrupt handler (in a hosted monitor, a world switch back to the host OS, 4.45 microseconds on a Pentium III)
- L3: Delivered to the right guest as a virtual interrupt or an event in its bitmap
way in: Resource use and pressure (accounting)
- L1: What each guest or container actually uses: memory pages touched, CPU time, disk and network bandwidth
- L2: Accounting: cgroup counters; in a guest, the balloon driver reporting the pages it pinned
- L3: The monitor's or kernel's view of who is short and who is idle (balloon targets, reservations, an idle memory tax)
way in: What co-resident tenants leave in shared hardware (caches, cores)
- L1: Shared physical caches and cores: the L1 cache is shared by all software on a core, whatever its domain
- L2: Timing and transient execution read state the architecture forbids (cache timing; Meltdown, Foreshadow-NG)
- L3: A co-resident attacker learns another tenant's secrets or activity
way out: Accounting out to operators and billing
- L1: Reports and bills to the people who rent the machines
- L4: Usage counted per group
- L7: Each guest pays for what it uses
way out: Direct execution on the real processor
- L1: The physical processor and memory do the work
- L2: Innocuous instructions execute on the hardware with no intervention by the monitor
- L6: The guest resumes, in its own (virtual) mode
way out: Input and output to real devices
- L1: The physical disk or network device; only the driver domain has unchecked access
- L4: The backend (a driver domain or the monitor's device model) takes the validated request
way out: Placing guests on processors and memory (scheduling, ballooning, reclaiming)
- L1: Physical processors and machine pages handed out
- L3: The monitor inflates a guest's balloon or pages to its own swap when ballooning is not enough
- L5: Shares and slices decided (Xen's default maximum slice is 5 ms); balloon targets set
way out: Sending a running machine to another host (live migration)
- L1: Pages over the LAN; an unsolicited ARP reply moves the guest's IP address
- L3: Iterative pre-copy, then a short stop-and-copy
- L6: The whole guest, OS and processes, moved as one unit