Guides

What is a hypervisor? Type 1 vs type 2, and how virtual machines really run

A hypervisor creates and runs virtual machines. Type 1 vs type 2, how VT-x and AMD-V make it fast, KVM vs Hyper-V vs ESXi, and how to tell which one you run on.

Published ~9 min read
On this page

Short answer: a hypervisor, also called a virtual machine monitor (VMM), is the software that creates and runs virtual machines. It sits between the physical hardware and the operating systems running on it, gives each one its own slice of CPU time, memory, storage and network, and keeps them isolated from each other, so one server can run many independent machines, each believing it has the hardware to itself. Every VPS and every cloud instance runs on one.

What does a hypervisor actually do?

  • CPU: each virtual machine gets virtual CPUs (vCPUs), which the hypervisor schedules onto physical cores. The guest runs its own code directly on the processor; only privileged operations (touching hardware, changing page tables, halting) trap to the hypervisor, which handles them and resumes the guest.
  • Memory: each guest sees a contiguous “physical” memory starting at zero. The hypervisor maps that onto real RAM wherever it has it, and makes sure no guest can address another’s.
  • Devices: guests get virtual disks, network cards and consoles, which are either emulated real hardware (slow but universal), paravirtual devices designed for VMs (virtio on KVM, VMBus devices on Hyper-V), or real devices passed through to one guest.
  • Isolation and control: starting, stopping, snapshotting, migrating and limiting guests, and making sure one cannot read or crash another.

Type 1 vs type 2 hypervisors

Type 1 (bare metal)Type 2 (hosted)
Runs onThe hardware directlyA normal operating system, as an application
ExamplesKVM, Xen, Hyper-V, VMware ESXiVirtualBox, VMware Workstation, Parallels Desktop
OverheadLowHigher; the host OS competes for resources
Used forServers, hosting, cloudsDesktops, development, testing
ManagementRemote tools, APIsA GUI on the same machine

The split dates back to Robert Goldberg’s work in the early 1970s and is blurrier in practice than in the table. KVM is a module of the Linux kernel, so Linux itself becomes the hypervisor. It is usually counted as type 1, although a full Linux system runs alongside. Hyper-V is installed from inside Windows but then moves that Windows into a privileged partition on top of itself, which makes it type 1 as well. What matters in practice is whether the hypervisor controls the hardware or asks an operating system for it.

What is a bare-metal hypervisor, and bare metal vs a VM?

“Bare-metal hypervisor” is just another name for type 1: a hypervisor that runs directly on the hardware, with no general-purpose operating system underneath it, the way KVM, Xen, Hyper-V and ESXi all do in the table above. It is “bare metal” from the hypervisor’s point of view (it talks to the CPU and devices itself rather than asking a host OS for them), which is a different claim from a “bare metal server”.

A bare metal server runs no hypervisor at all: one operating system owns the entire physical machine, which is what a dedicated server gives you. A VM on a bare-metal hypervisor still shares that physical machine with other guests, just with very little overhead between it and the hardware. The practical difference for “bare metal vs a VM”: a VM can be resized, snapshotted and moved to different hardware in minutes because the hypervisor mediates it; bare metal gives up that flexibility in exchange for every physical core, every gigabyte of RAM and the disk’s full I/O belonging to you alone, with nothing else on the box to share them with.

How do CPUs make virtualisation fast?

In 1974 Gerald Popek and Robert Goldberg set out what an architecture needs so that a hypervisor can run guests efficiently: every instruction that could reveal or change the machine’s state must trap when a guest runs it. The x86 processors of the 1990s did not meet that rule (some sensitive instructions silently behaved differently instead of trapping), so early x86 hypervisors had to work around it. VMware rewrote problematic guest code on the fly (binary translation), and Xen modified guest kernels to call the hypervisor explicitly (paravirtualisation).

Hardware support arrived in the mid-2000s with Intel VT-x and AMD-V. They add a separate mode for guests: the guest runs at full speed until it does something the hypervisor must handle, which causes a VM exit. A few years later came second-level address translation (Intel EPT and AMD NPT, also called RVI), which lets the CPU translate guest addresses to host addresses in hardware instead of the hypervisor maintaining shadow page tables. An IOMMU (Intel VT-d, AMD-Vi) does the same for devices, which is what makes safe PCI passthrough possible.

Linux · does this CPU support hardware virtualisation?
grep -Ec '(vmx|svm)' /proc/cpuinfo   # >0: VT-x (vmx) or AMD-V (svm) is present
lscpu | grep -i virtualization

A count of zero on a physical machine usually means the feature is switched off in the firmware. Inside a VM it means the host does not pass the extensions through, so you cannot run another hypervisor there: nested virtualisation is a host setting.

Which hypervisors will you meet?

HypervisorTypeWhere you meet it
KVM (with QEMU)1, in the Linux kernelMost VPS hosts, OpenStack, Proxmox VE, Google Cloud
Xen1, with a control domain (dom0)Older AWS instances, Citrix/XenServer, XCP-ng, Qubes OS
Hyper-V1, Windows in the root partitionWindows Server, Azure, Windows Pro desktops
VMware ESXi1, own kernelEnterprise data centres with vSphere
bhyve1, in the FreeBSD kernelFreeBSD and TrueNAS hosts
Firecracker1, a minimal VMM on KVMServerless platforms running thousands of micro-VMs
VirtualBox, VMware Workstation2Developer laptops and test labs

Proxmox VE is worth singling out because people often call it a hypervisor: it is a Debian-based platform that manages KVM virtual machines and LXC containers through a web interface. The hypervisor underneath is KVM.

Hypervisors vs containers

Containers (Docker, LXC, OpenVZ) involve no hypervisor. They are processes on one shared Linux kernel, separated by namespaces and limited by cgroups. That makes them lighter and faster to start, but every container depends on the host’s kernel: it cannot load its own modules, run another operating system or change kernel settings. A virtual machine has its own kernel, so it can. For a VPS that difference decides whether Docker, WireGuard or a custom kernel will work at all. See KVM vs OpenVZ.

How do you tell which hypervisor a server runs on?

Linux · inside the machine
systemd-detect-virt        # kvm, microsoft (Hyper-V), vmware, xen, oracle (VirtualBox) or none
lscpu | grep -i 'hypervisor vendor'
cat /sys/class/dmi/id/sys_vendor /sys/class/dmi/id/product_name

On Windows, the last lines of systeminfo say “A hypervisor has been detected” inside a virtual machine, and the system manufacturer and model name the virtual platform. A container instead reports lxc, openvz or docker from systemd-detect-virt.

What does the hypervisor mean for your VPS?

  • CPU steal time. When the host has more vCPUs ready to run than physical cores, your vCPU waits. Linux shows that wait as st in top and vmstat 1; a few percent is normal, a steady double-digit value means a crowded host.
  • Overcommitment. Hypervisors can promise more vCPUs, and some setups more RAM, than the host has. Moderate CPU overcommit is how VPS pricing works; RAM overcommit is where neighbours start to hurt each other.
  • Paravirtual drivers. A Linux guest on KVM should use virtio for disk and network: virtio-blk disks appear as /dev/vda, virtio-scsi disks as /dev/sda, and lsmod | grep virtio shows which are loaded; emulated hardware costs throughput.
  • Isolation. A guest breaking out into the hypervisor is rare and patched fast when found, which is why VMs remain the boundary clouds trust between customers. CPU side-channel flaws such as Spectre are mitigated at the hypervisor level too, which is one reason hosts update kernels promptly.

Which hypervisor does VMHeaven use?

Every VMHeaven VPS is a KVM virtual machine with its own kernel: Standard KVM, Hi-CPU KVM, DMCA Ignored KVM and Pentesting KVM. If you want to be the one running the hypervisor (Proxmox, plain KVM or Hyper-V), a dedicated server gives you the bare hardware with no hypervisor of ours in the way.

Frequently asked

What is the difference between a type 1 and a type 2 hypervisor?

A type 1 hypervisor runs directly on the hardware and is used for servers: KVM, Hyper-V, ESXi, Xen. A type 2 hypervisor runs as an application on a normal operating system (VirtualBox, VMware Workstation) and suits desktops and testing.

Is Docker a hypervisor?

No. Docker runs containers, which are isolated processes sharing the host's Linux kernel. A hypervisor runs virtual machines, each with its own kernel and operating system.

Which hypervisor does a VPS use?

Most VPS providers use KVM, often through platforms such as Proxmox VE or OpenStack. Inside a Linux VPS, systemd-detect-virt prints the hypervisor, or the container type if the VPS is a container.

Related articles

All guides

What is KVM? The Linux hypervisor behind most VPS hosting, explained

KVM is the hypervisor built into the Linux kernel. How it works with QEMU and libvirt, how to check for it and create a VM, and what a KVM VPS is.

What is virtualization? Virtual machines, containers and the types in between

Virtualization splits one physical machine into many virtual ones: server, OS-level, storage and network virtualization, VMs vs containers, and VPS hosting.

What is a VPS? Virtual private servers explained, and how to choose one

A VPS is a virtual machine you rent with its own OS, IP address and root access. How it works, VPS vs shared and dedicated, sizing, and the first steps.

What is block storage? Block vs file vs object storage, and using a volume on Linux

Block storage presents raw disk blocks your server formats itself: how it differs from file and object storage, and how to format, mount and grow a volume.

What is Proxmox VE? The free hypervisor behind most self-managed VM hosts

Proxmox VE is a free, open-source Debian-based hypervisor that runs KVM VMs and LXC containers from a web UI. What it is, what it costs, when to run it.

Hyper-V vs VMware vs VirtualBox: licensing, features and which to use

Hyper-V vs VMware: both are type 1, but VMware is now a per-core subscription. VirtualBox vs VMware Workstation, 2026 licensing, and where KVM fits.

How to install Proxmox VE 9 on a dedicated server (ISO or Debian 13)

How to install Proxmox VE 9: ISO or Debian 13, hostname and repository, vmbr0 on a rented server, securing port 8006 and the VMware import wizard.

Proxmox helper scripts: what they run on your host, and how to pin them

Proxmox VE helper scripts run as root on your host: what a script does, how to read and pin it to a commit, what post-install changes and how to roll back.

How to install WSL on Windows 11, Windows 10 and Windows Server 2022/2025

Installing WSL takes one command: wsl --install. Steps for Windows 11, 10 and Server 2022/2025, WSL 1 vs 2, nested virtualization on a VPS and error fixes.