A large black chassis holds four virtual machines in a two-by-two grid, each rendered in a different accent colour, symbolising a single hypervisor host running four isolated guests.
[ Virtualisation ]7 min read

What Is a Hypervisor? The Magic of Virtual Machines

Phase 1 · The Spark and the Scrap

A single old motherboard, five separate computers running on it at once, and the Proxmox install that made it possible.

Proxmox VE 8.1qmcloud-initUEFI

After a month on a single Ubuntu server, I hit the wall that every beginner hits. I wanted to run a network-wide ad blocker, a personal wiki, and a sandbox for testing software I did not trust. Installing all three on the same operating system meant they would share libraries, ports, and credentials. If the sandbox got compromised, everything did. If the ad blocker crashed, the wiki went with it. Three services, one fault domain, no isolation.

The consumer answer is to buy three more machines. That answer assumes cheap rack space, cheap electricity, and cheap time. It also ignores what a single modern processor can do when it is not asked to draw windows all day. The professional answer is virtualisation, which for most of the computing industry stopped being novel in about 2008 and became the default for anyone running more than one service. The reason it took me until 2024 to learn it is the same reason it takes most designers a while: the field does a poor job of explaining itself to anyone who is not already inside.

The Analogy

Picture a single-family house with one kitchen, many bedrooms, and a shared garden. If one family lives there, most of the house sits empty. If five families move in, they will fight over the kitchen, leave plates in the sink, and argue about the thermostat. A single-family house does not scale into a share house without walls, locks, and a house manager.

Virtualisation is a property manager that builds walls between tenants. Each tenant (a virtual machine) gets its own kitchen, its own thermostat, and its own key. The manager allocates water and electricity to each apartment from the shared supply, and if Tenant A burns their dinner and sets off the sprinklers, Tenant B’s kitchen stays dry.

The software that plays property manager is called a hypervisor.

The Tech Translated

A hypervisor is a specialised operating system whose only job is to divide the physical machine into several virtual ones. Each virtual machine (VM) believes it has its own processor, its own memory, and its own hard drive, even though the hardware underneath is a single box.

There are two kinds of hypervisor. A Type 2 hypervisor runs on top of a regular operating system (VirtualBox on your laptop is the familiar example). A Type 1, or “bare-metal” hypervisor, installs directly on the hardware and replaces the operating system entirely. Type 1 is what servers run, because there is no layer between the hypervisor and the silicon.

I chose Proxmox Virtual Environment, usually shortened to Proxmox VE. It is open source, it is based on Debian, and it has a web interface that makes creating a virtual machine feel like creating a calendar event. The commercial alternatives are VMware ESXi (now owned by Broadcom and going through a difficult licensing transition that has driven many small operators toward open-source options) and Microsoft Hyper-V. For a solo practitioner, Proxmox wins on cost, community, and the fact that you can read the source if something confuses you.

A small gotcha that matters later

Before you install Proxmox, enter the motherboard’s UEFI/BIOS settings and enable two features: Virtualisation (sometimes called “VT-x” on Intel or “AMD-V” on AMD processors) and IOMMU (sometimes called “VT-d” on Intel). The first lets the hypervisor work at all. The second matters in a later entry in this series, when we want to hand a graphics card directly to a single virtual machine for AI work. If you forget to turn IOMMU on now, you will be rebooting and walking back through a BIOS menu next year. Ask me how I know.

The Action

Proxmox installs from a USB stick like any other operating system. After the first boot, you open a web browser on your laptop and navigate to the server’s address on port 8006. The interface looks dense at first. It is not; it is just honest. Everything the hypervisor knows about is visible: nodes, storage pools, networks, backups. No hidden state.

The first virtual machine I created was an Ubuntu server for the ad blocker. I used the command-line tool (qm) rather than the web interface, because a command I can save is a command I can repeat on the next machine:

# Download a cloud-image that can be cloned into a VM template.
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img

# Create a new VM with 2 cores, 2 GB of RAM, and a serial console.
qm create 9000 \
  --name ubuntu-cloud-template \
  --cores 2 --memory 2048 \
  --net0 virtio,bridge=vmbr0 \
  --serial0 socket --vga serial0

# Import the cloud image as the VM's disk.
qm importdisk 9000 jammy-server-cloudimg-amd64.img local-lvm

# Attach the imported disk, set boot order, and enable cloud-init
# (so first-boot configuration is declarative, not clicky).
qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0
qm set 9000 --boot c --bootdisk scsi0 --ide2 local-lvm:cloudinit

# Turn 9000 into a reusable template, then clone it into a working VM.
qm template 9000
qm clone 9000 101 --name adblock --full

Seven commands, one template, one real machine. From here on, every new service is a clone with a different name and a different cloud-init file. That is the productivity jump virtualisation actually delivers: not “more machines”, but “declaring a machine in a file and summoning it in seconds”.

What broke

The first VM refused to boot. The Proxmox console showed a UEFI shell prompt and nothing else. I had created the VM with the default “SeaBIOS” firmware, but the Ubuntu cloud image expected UEFI. The fix was two lines in the VM’s configuration:

qm set 101 --bios ovmf --machine q35
# Attach an EFI disk so the UEFI firmware has somewhere to store variables.
qm set 101 --efidisk0 local-lvm:0,format=raw,efitype=4m,pre-enrolled-keys=0

With UEFI and the Q35 machine type, the Ubuntu image booted cleanly. That mismatch between “what the template expects” and “what the VM defaults to” is one of the three or four traps that will cost every beginner an evening. Write it down.

The shift in what “a computer” means

After two weeks with Proxmox, the word “computer” had quietly changed meaning. A computer was no longer a physical box with a model number and a dust filter. It was a text file that described how much memory, how many cores, and which disk image to use, and the hypervisor made the rest happen. If a VM got corrupted, I deleted it. If I wanted to test an operating system upgrade before rolling it out, I cloned the VM, upgraded the clone, and deleted it when I was finished. Nothing precious, nothing permanent, everything reproducible.

Infrastructure people call this a “software-defined datacentre”. The phrase is marketing, but the thing behind it is real: hardware becomes fluid. You stop protecting individual machines and start protecting the descriptions that build them. That is a very different relationship to a computer than the one most of us grew up with, and it is the relationship everything that follows in this series depends on.

Footnotes

  1. Proxmox VE is free to download and use under AGPL-3.0; a paid subscription gets you the enterprise update repository and vendor support. The documentation lives at pve.proxmox.com. ↩

Table of Contents