In 1998, five people — Diane Greene, Mendel Rosenblum, Scott Devine, Edward Wang and Edouard Bugnion — founded VMware around a Stanford research project on virtual machines. The conventional wisdom was that x86 could not be virtualized efficiently. Their answer was not to argue with the theory but to rewrite the guest, one basic block at a time, while it ran.
The insight: translate only what misbehaves
Most x86 instructions are harmless. Adding two registers, loading a value, branching — none of these touch privileged state, and all of them can run directly on the CPU at full speed. The problematic instructions are a small minority, concentrated in kernel code: interrupt control, descriptor table manipulation, page-table updates, I/O port access.
VMware's virtual machine monitor used dynamic binary translation. Before executing a block of guest kernel code, the VMM scanned it, replaced sensitive instructions with safe sequences that called into the monitor, and cached the translated block. User-mode code ran directly. When the guest modified code or executed a new path, the translator handled the new blocks on demand.
Consider POPF, the instruction from Chapter 3 that silently ignores
interrupt-flag changes in user mode. In a translated block, the VMM replaces it with
a call that updates the virtual EFLAGS register and, if necessary, asks the
monitor to change the real interrupt state. The guest sees the semantics it expects.
The translation is cached, so the cost is paid once per block, not once per execution.
Static translation would have to rewrite an entire OS image before boot, including code that is never executed and code that changes at runtime. Dynamic translation works on basic blocks as they are reached, handles self-modifying code with invalidation, and adapts to the guest's actual execution profile.
VMware Workstation: a data center on a laptop
VMware Workstation shipped in 1999 and made virtualization a desktop tool. Developers could run Linux and Windows side by side, take a snapshot before a risky upgrade, and roll back in seconds. The product introduced a generation of engineers to the idea that an operating system could be a file — or a handful of files — that you could copy, archive and discard.
A Workstation virtual machine is defined by a small configuration file, a virtual
disk, and a log. The format is still recognizable in modern VMware products. A
minimal .vmx file looks like this:
.encoding = "UTF-8"
displayName = "kvm-lab"
guestOS = "ubuntu-64"
memsize = "4096"
numvcpus = "2"
scsi0.virtualDev = "lsilogic"
scsi0:0.fileName = "kvm-lab.vmdk"
ethernet0.connectionType = "nat"
ethernet0.virtualDev = "e1000"
floppy0.present = "FALSE"
The companion CLI, vmrun, exposes the same operations a GUI user takes
for granted:
$ vmrun -T ws start ~/vms/kvm-lab/kvm-lab.vmx nogui
$ vmrun -T ws list
Total running VMs: 1
/home/dev/vms/kvm-lab/kvm-lab.vmx
$ vmrun -T ws snapshot ~/vms/kvm-lab/kvm-lab.vmx before-upgrade
$ # ... upgrade the guest ...
$ vmrun -T ws revertToSnapshot ~/vms/kvm-lab/kvm-lab.vmx before-upgrade
From hosted to bare metal: ESX
Workstation ran as an application on a host OS — a Type 2 hypervisor. In 2001 VMware shipped ESX Server, a bare-metal hypervisor with its own kernel (VMkernel) and a Linux-based service console for management. Drivers ran in the VMkernel; guests sat above it. This was the Type 1 model that data centers wanted: no general-purpose host OS in the trusted computing base, better I/O performance, and a smaller attack surface.
VMware also sold GSX Server, a hosted product for departments and smaller sites. The naming was confusing, but the architectural split was clear:
| Type 1 (ESX / ESXi) | Type 2 (Workstation / GSX) | |
|---|---|---|
| Runs on | Bare metal | Host operating system |
| Hypervisor kernel | VMkernel owns drivers and scheduler | Host OS owns drivers; hypervisor is a process |
| Typical use | Data center, consolidation, cloud | Desktop, development, testing |
| Management | vCenter, API, service console | Workstation GUI, vmrun |
| Isolation boundary | Hypervisor + hardware | Hypervisor + host OS + hardware |
VMotion and the birth of elastic infrastructure
In 2003 VMware demonstrated VMotion: move a running virtual machine from one physical host to another with no noticeable downtime and no dropped TCP connections. The mechanics are a pre-copy loop. The hypervisor copies the guest's memory to the destination while the guest keeps running, tracks dirty pages, and re-copies them. When the remaining dirty set is small enough, it pauses the guest for a few milliseconds, transfers the final pages and CPU state, and resumes it on the new host. Shared storage keeps the disk image in place; the network is re-pointed.
Live migration turned virtualization from a consolidation trick into a maintenance and scheduling primitive. Hosts could be drained for upgrades, workloads could follow demand, and failure domains could be managed without application changes. Every modern cloud scheduler depends on this capability or a variant of it.
The limits of translation
Binary translation was brilliant, but it was also a tax on every kernel transition and a permanent source of complexity. The translator had to be correct for every instruction sequence a guest might execute, including undocumented behavior and self-modifying code. Performance was good — often 85–95% of native for CPU-bound workloads — but I/O and memory-intensive workloads exposed the gaps.
When Intel VT-x arrived in 2005 and AMD-V in 2006, the guest could run its own kernel in ring 0 of a non-root world. The translator was no longer necessary for the common case. VMware adapted its stack to use hardware assist where available and fall back to translation for older CPUs — a pattern that defined the transition period. The company's real moat turned out not to be the translator but the management layer: vCenter, VMotion, snapshots, HA and the operational model built around them.
VMware did not wait for the CPU to solve the x86 problem. It solved the problem in software, proved the market, and then adopted hardware support when it arrived. The sequence — workaround, product, standardization, hardware absorption — repeats throughout systems history.
Sources & further reading
- VMware, Understanding full virtualization, paravirtualization, and hardware assist (PDF, 2007).
- E. Bugnion, S. Devine, M. Rosenblum, Disco: running commodity operating systems on scalable multiprocessors, 1997.
- VMware, Workstation Pro documentation.
- InventiveHQ, Virtualization history: 1960s mainframes to cloud.