Chapter 01 — 1964 — 1968

Before the hypervisor

Long before cloud dashboards, engineers at IBM and MIT were trying to solve a very expensive problem: one computer, many users, each convinced they had the machine to themselves.

In 1960 a computer was a room, a budget line, and a queue. Researchers submitted decks of punched cards, waited hours for a batch run, and got a printout back. The machine was too expensive to leave idle and too primitive to share politely. Everything that follows in this archive begins with the attempt to fix that.

The expensive machine

IBM's System/360, announced in April 1964, was a family of compatible mainframes rather than a single computer. That compatibility was a commercial triumph, but it also exposed a design tension: the operating system was supposed to turn a very expensive machine into a useful one, and the first generation of OS/360 was not good at interactive work. Batch jobs were the norm. A user who wanted to compile, test and fix a program might wait a day between iterations.

Two ideas emerged almost simultaneously. The first was time-sharing: switch the CPU between many interactive users so quickly that each believes they have the machine. The second was virtualization: give each user not just a slice of time, but the illusion of an entire computer — including its privileged instructions, memory map and I/O devices. Time-sharing shares a resource. Virtualization shares an interface.

The distinction sounds academic until you try to run two operating systems at once. A time-sharing scheduler runs one kernel and many processes. A hypervisor runs many kernels, each of which thinks it owns the CPU.

Time-sharing and the first "virtual machines"

MIT's CTSS (Compatible Time-Sharing System), demonstrated in 1961 on a modified IBM 709, is usually cited as the first practical time-sharing system. It let users sit at terminals, edit files and run programs concurrently. CTSS was not a hypervisor, but it established the interaction model that the first virtual machines would inherit: a personal workspace on a shared machine.

In 1964, researchers at IBM's Thomas J. Watson Research Center built the M44/44X. It was an experimental machine based on an IBM 7044 with paging hardware, and it ran several simulated 7044s — the "44X" instances — on one physical system. This is where the term virtual machine enters the literature. The M44/44X was a research vehicle, not a product, but it proved the concept: the hardware interface itself could be duplicated in software.

Terminology note

"Virtual memory" and "virtual machine" are different abstractions that are easy to confuse. Virtual memory remaps addresses inside one operating system. A virtual machine remaps the entire hardware interface, including privileged state, so a guest OS can be swapped in and out like a process.

CP-40: the first hypervisor

The direct ancestor of every production hypervisor was built at IBM's Cambridge Scientific Center between 1964 and 1967. CP-40 ran on a System/360 Model 40 that had been fitted with a custom dynamic address translation (DAT) box and virtual memory. The control program — CP — sat on the real hardware and created virtual System/360 machines for its users.

CP-40 introduced the architecture that IBM would refine for decades. CP ran in supervisor state and owned the real machine. Each guest ran in problem state, with its supervisor instructions intercepted and emulated. On top of CP ran CMS, the Cambridge Monitor System: a small, single-user interactive operating system with a command line, a file system and an editor. Every logged-in user got a CMS virtual machine.

The first working CP-40 system was in use by early 1967. It was never sold. Its successor was.

CP-67 and the System/360-67

IBM's System/360 Model 67 shipped with DAT as standard equipment, which made it the natural home for a production version of the idea. CP-67 was completed in the fall of 1967 and became available to Model 67 customers in July 1968. It could host CMS for interactive users, OS/360 and DOS/360 for batch and development work, and it could run more than one guest at a time.

This was the moment virtualization became operationally useful. A site could run production batch under OS/360 while programmers used CMS in another virtual machine, and a new operating system could be tested in a third without dedicating a second million-dollar mainframe to it. The use case was not server consolidation in the modern sense. It was compatibility, interactive access and safe experimentation.

CP-67 and CMS architecture Three virtual machines running CMS and OS/360 above the CP control program and System/360-67 hardware. VIRTUAL MACHINE A CMS · interactive user VIRTUAL MACHINE B CMS · interactive user VIRTUAL MACHINE C OS/360 · batch / test CP — CONTROL PROGRAM intercepts privileged instructions · schedules virtual CPUs · maps storage RUNS IN SUPERVISOR STATE · OWNS THE REAL MACHINE SYSTEM/360-67 REAL CPU · DAT / VIRTUAL MEMORY · CHANNELS · DISKS · TERMINALS
FIG 1.1 — CP owns the hardware; CMS and OS/360 run as guests. A guest kernel executes in problem state, not ring 0.

The elegance of the design is that CMS does not need to know it is virtual. It issues the same supervisor calls, uses the same file system layout and expects the same devices as it would on a real Model 67. CP intercepts the sensitive operations and emulates them.

The price is paid on every intercepted instruction. On 1960s hardware that price was acceptable because the alternative — a second mainframe — was unaffordable. This economic logic will reappear at every stage of the story: virtualization wins when the hardware is expensive relative to the overhead.

A session on CMS

The following is a reconstructed terminal session in the style of CP-67/CMS. Exact prompts varied by release and site; the commands are the important part.

cms — reconstructed session, 1970s
LOGON RESEARCH
ENTER PASSWORD:
LOGON AT 09:14:22 EST
CMS 3.0

READY
LISTFILE
FILENAME FILETYPE FM FORMAT LREC RECS BLOCKS DATE
PROFILE  EXEC     A1 V      80    12      1 07/12/72
THESIS   TEXT     A1 V      80   341      6 07/12/72

EDIT THESIS TEXT A
EDIT...
INPUT
THE HYPERVISOR MUST PRESERVE EQUIVALENCE.
FILE
THESIS   TEXT     A1 V      80   342      6 07/12/72

CP QUERY VIRTUAL STORAGE
STORAGE  =  00000000 - 000FFFFF  (1M)

LOGOFF
CONNECT= 00:42:17  VIRTCPU= 000:02.11  TOTCPU= 000:03.48

The last two lines are the accounting trail. Even in 1972, a virtual machine was a metered resource: connect time, virtual CPU time, total CPU time. The billing model of cloud computing was already visible in the logoff message.

Why the idea survived

CP-67's lineage runs directly into VM/370 (announced in 1972), then VM/SP, VM/XA and today's z/VM. IBM still ships a hypervisor whose command vocabulary and virtual machine model descend from a 1960s research project. That continuity is unusual in computing and worth pausing on.

The reason is that the mainframe never lost the properties that made virtualization attractive: expensive hardware, strong isolation requirements, and a need to run multiple operating system versions side by side. When x86 servers became cheap and plentiful, the economics flipped — and the industry had to reinvent the same ideas under different constraints. The next chapter explains the formal rules those engineers were working with, whether they knew it or not.

Key takeaway

The virtual machine was invented to multiply an expensive mainframe, not to consolidate cheap servers. CP-40 and CP-67 established the architecture — a privileged control program, unmodified guests, trapped sensitive instructions — that every later hypervisor still follows.

Sources & further reading