How Hypervisors Power Modern Virtualisation
A hypervisor lets one computer run many separate virtual machines. How it shares processor, memory and devices, the two types, and how containers differ.
3 min readBy Soumya

A VPS is a virtual machine on a hypervisor. See our Linux VPS plans. See Linux VPS from $6.99
A hypervisor is the software that makes one physical computer behave like many. Each of the many, a virtual machine, has its own operating system and believes it has hardware to itself. Nearly everything called "cloud" rests on this, and so does every VPS.
What a hypervisor does
- Shares the processor. It schedules the virtual machines' processors onto the real cores, much as an operating system schedules programs. Modern processors have instructions built for this (Intel VT-x, AMD-V), so most of a virtual machine's code runs directly on the hardware at full speed.
- Divides the memory. Each machine gets a share that it sees as its whole memory. The hypervisor keeps the shares apart; one machine cannot read another's.
- Presents devices. Disks are files or volumes on the host's storage; network cards are connections to a virtual switch. The guest sees simple, standard devices whatever the real hardware is.
- Isolates. A crash or a break-in inside one virtual machine stays inside it.
Two types
| Type 1 ("bare metal") | Type 2 ("hosted") | |
|---|---|---|
| Runs on | The hardware directly; it is the system the server starts | A normal operating system, as a program |
| Made for | Servers and datacentres | A desk: testing, development, learning |
| Overhead | Small | Larger; the host system runs alongside |
| Examples | KVM (part of Linux; used by Proxmox and most cloud providers), Microsoft Hyper-V, VMware ESXi, Xen | VirtualBox, VMware Workstation, Parallels |
The line is less sharp than the table suggests. KVM turns an ordinary Linux into a type 1 hypervisor, and Hyper-V, once switched on in Windows, slides underneath the Windows you were using.
What virtualisation makes possible
- Many servers on one machine. Most servers idle most of the time; sharing hardware uses it properly.
- Snapshots. The state of a machine frozen in a moment, to return to if a change goes wrong.
- Templates and clones. A new server in a minute, copied from a prepared image. This is how a VPS is delivered minutes after an order.
- Live migration. Moving a running machine to another host without stopping it, for maintenance.
- Different systems side by side. Windows and Linux on the same hardware.
What it costs
- A little speed. Processor work is close to native; disk and network work lose a few percent, less with drivers written for virtual machines (virtio on KVM).
- Shared hardware. Machines on one host compete for disk and, if the host is overbooked, for processor time. The quality of a VPS depends on how carefully its host is filled.
- One more thing to manage and secure. The hypervisor controls everything above it: see eight virtualisation management challenges.
Virtual machines and containers
| Virtual machine | Container | |
|---|---|---|
| Contains | A whole operating system with its own kernel | An application and its libraries; shares the host's kernel |
| Starts in | Seconds to a minute | A fraction of a second |
| Size | Gigabytes | Megabytes |
| Isolation | Strong; enforced by hardware features | Good; enforced by the kernel all containers share |
| Can run another operating system | Yes | No; Linux containers need a Linux kernel |
They are used together: containers for packaging applications, inside virtual machines for separation between customers. See Docker Compose on a Linux server.
What this means for a VPS
- A VPS is a virtual machine. Root or administrator access is real, because the system is yours alone; the hardware underneath is shared.
- You can install any software the system supports, including Docker.
- Running another hypervisor inside a VPS needs "nested virtualisation", which hosts often do not offer. For your own virtual machines, rent a dedicated server.
- A dedicated server has no hypervisor unless you install one; all of the hardware is yours.
Try it yourself
On a PC: a virtual lab with VirtualBox or Hyper-V, or enabling Hyper-V on Windows. For one program in a throwaway Windows, Windows Sandbox is the same technology in its smallest form. For desktops delivered this way to many users, see VDI vs DaaS.
Our Linux VPS plans are virtual machines of this kind, each with its own system and root access.
Questions
What is a hypervisor?
Software that lets one physical computer run several separate virtual machines, sharing processor, memory and devices among them.
What is the difference between type 1 and type 2 hypervisors?
Type 1 runs directly on the hardware and is used on servers. Type 2 runs as a program on a normal operating system and is used on desktops.
Is a VPS a virtual machine?
Yes. A VPS is a virtual machine on a hypervisor, with its own operating system and full access for its owner.
What is the difference between a container and a virtual machine?
A virtual machine includes a whole operating system. A container shares the host's kernel and holds only an application and its libraries.