# What is a Hypervisor? | Cycle.io

Canonical URL: https://cycle.io/learn/what-is-a-hypervisor

## What is a Hypervisor?.

A hypervisor is software that creates and runs virtual machines (VMs) by sharing one physical machine's CPU, memory and devices among isolated guest operating systems. It's also called a virtual machine monitor (VMM). Each guest sees what looks like its own hardware, while the hypervisor decides which real resources each guest can use.

Because each VM gets its own virtual hardware, different operating systems and applications can run side by side on one host. Windows and Linux VMs can share a server, and a server that would otherwise sit mostly idle can carry the work of several smaller machines.

The idea dates back to IBM mainframes in the 1960s. IBM's Cambridge Scientific Center built CP-40 in 1964 as a time-sharing research system that gave each user a virtual machine, followed by CP-67 in 1967, and IBM announced VM/370 for the System/370 on August 2, 1972. Today the same idea underlies cloud instances such as Amazon EC2 and Azure VMs, private VMware and Proxmox VE clusters, and desktop VMs on developer laptops.

This page covers the two types of hypervisor, the hardware features they depend on, how to check whether a Linux host can run one, and the security model.

### Running VMs on Cycle

Running VMs on your own servers means owning the hypervisor layer too: CPU and firmware settings on each host, kernel and VMM updates, VM networking and storage, and moving guests off a host before maintenance.

If that's not something you want to manage yourself, most of that work is automated on Cycle.

If you manage your own servers, the rest of this page covers how hypervisors work and how to check by hand whether a Linux host can run one.

Platform Docs

Introduction to Virtual Machines

The Cycle Platform fully supports deploying, running, and orchestrating virtual machines for a higher degree of security and flexibility.

<https://cycle.io/docs/platform/introduction-to-virtual-machines>

### Types of Hypervisors

Hypervisors are usually split into two types, based on what sits directly on the hardware.

#### Type 1 (bare-metal) hypervisor

A Type 1 hypervisor, also called a bare metal hypervisor, runs directly on the physical hardware, without a general-purpose host operating system underneath it. Enterprise data centers and cloud providers use Type 1 hypervisors because there's less software between the VMs and the hardware, which means less overhead and a smaller attack surface. Examples include VMware ESXi (which Broadcom calls ESX from version 9), Microsoft Hyper-V, Xen and KVM. Proxmox VE is a bare-metal virtualization platform built on Debian that uses KVM and QEMU for its VMs. For more on how VMs compare with running directly on hardware, see [bare metal vs virtualization vs containerization](https://cycle.io/learn/bare-metal-vs-virtualization-vs-containerization).

#### Type 2 (hosted) hypervisor

A Type 2 hypervisor runs as an application on top of an existing operating system such as Windows, macOS or a Linux desktop. Oracle VirtualBox, VMware Workstation, VMware Fusion and Parallels Desktop are Type 2 hypervisors. They're easier to install and suit personal computing, development and testing. Because they rely on the host OS for hardware access and scheduling, they usually perform somewhat worse than a Type 1 hypervisor on the same machine, and the host OS adds to what an attacker could target.

#### Type 1 vs Type 2 hypervisor comparison

|     | Type 1 (bare metal) | Type 2 (hosted) |
| --- | --- | --- |
| Runs on | The physical hardware | A host OS (Windows, macOS, Linux desktop) |
| Examples | VMware ESXi/ESX, Microsoft Hyper-V, KVM, Xen, Proxmox VE (KVM) | Oracle VirtualBox, VMware Workstation and Fusion, Parallels Desktop |
| Performance | Close to native for CPU and memory; I/O depends on the device model | Lower; competes with host apps and goes through the host OS scheduler |
| Typical use | Servers, data centers, cloud platforms, VDI | Developer laptops, testing, running a second OS on a desktop |
| Management | Remote: web UI, API or a central manager (vCenter, Proxmox VE cluster, libvirt) | Local desktop app on the same machine |
| Attack surface | Hypervisor plus its management stack | Hypervisor plus the full host OS and everything running on it |

#### Where the line between the types blurs

Real products don't always fit cleanly into one type:

-   **KVM** is a Linux kernel module. Loading it turns the Linux kernel itself into the hypervisor, so Linux is both the host OS and the hypervisor. KVM is usually classed as Type 1. Some sources, including Arm's architecture guide, call it a hosted (Type 2) hypervisor because the same kernel also runs ordinary Linux applications.
-   **Hyper-V** runs directly on the hardware, then runs Windows in a privileged "root partition" that holds the device drivers and the management stack. Guest VMs run in child partitions and reach devices through the root partition over the VMBus channel. The Windows installation in the root partition therefore runs on top of the hypervisor, even though it looks like the host OS.
-   **macOS** includes Apple's Hypervisor framework, which lets an app create VMs and virtual CPUs from user space without kernel extensions. Apple's higher-level Virtualization framework runs macOS and Linux guests with virtio devices. Hosted products on a Mac can use these system APIs instead of shipping their own kernel code.

For security and performance, the type label tells you less than how much code runs with full hardware privilege and how devices are emulated. The device I/O and security sections below cover both.

#### Hypervisor examples (status as of November 2026)

| Hypervisor | Type | Vendor or project | Status and licensing |
| --- | --- | --- | --- |
| [VMware ESXi / ESX](https://cycle.io/learn/what-is-vmware) | 1   | Broadcom | Versions 9.0 and 9.1 are sold only as part of VMware Cloud Foundation (VCF) and VMware vSphere Foundation (VVF); the standalone vSphere Standard and Enterprise Plus editions stop at 8.0 Update 3. A free edition exists only as ESXi 8.0 Update 3e (April 2025), limited to 2 physical CPUs and 8 vCPUs per VM, with no vCenter management and no Broadcom support. |
| Microsoft Hyper-V | 1   | Microsoft | A role in Windows Server, and an optional feature in Windows 10 and 11 Pro and Enterprise. Needs a 64-bit CPU with second-level address translation (SLAT). |
| KVM | Usually 1 (see above) | Linux kernel | Part of the mainline Linux kernel since 2007. Used with a user-space VMM such as QEMU. |
| Xen | 1   | Xen Project (Linux Foundation) | Runs on the hardware and boots a privileged control domain, dom0 (usually Linux), which provides drivers and management tools for the guest domains (domU). |
| Proxmox VE | 1 (KVM-based) | Proxmox Server Solutions | The current release, 9.2 (May 2026), is based on Debian 13.5 with QEMU 11.0, and runs KVM VMs and LXC containers. |
| Oracle VirtualBox | 2   | Oracle | Free to download. Version 7.2 (August 2025) added Windows on Arm hosts and Windows 11 on Arm guests. 7.2 is still the current branch (7.2.22, October 2026). |
| VMware Workstation Pro and Fusion Pro | 2   | Broadcom | Free for commercial, educational and personal use since November 11, 2024. Paid versions are no longer sold, and free users get no support tickets. Releases have used calendar version names since 25H2 (October 2025). |
| Parallels Desktop | 2   | Parallels | Paid (subscription, or a one-time purchase for the Standard edition), macOS only. On Apple silicon it runs Arm guests such as Windows 11 on Arm; VMs created on Intel Macs don't run on Apple silicon. |
| Apple Hypervisor and Virtualization frameworks | OS APIs | Apple | Built into macOS. System APIs that VM apps call; there's nothing to install separately. |

### How Hypervisors Function and Support Virtualization

A hypervisor has to give every guest the illusion of a full machine while keeping control of the real one. Modern hypervisors rely on CPU features for most of that work and keep software emulation for the parts the hardware can't do. For the history of the software-only approach, see [hardware vs software virtualization](https://cycle.io/learn/hardware-vs-software-virtualization).

#### CPU virtualization: VT-x, AMD-V and Arm EL2

Early x86 hypervisors had to rewrite or trap privileged guest instructions in software. Today's CPUs add a separate execution mode for guests:

-   **Intel VT-x** (CPU flag `vmx`) and **AMD-V** (CPU flag `svm`) let the guest kernel run directly on the CPU in a guest mode. When the guest does something the hypervisor must handle, such as touching an emulated device or a control register, the CPU performs a "VM exit" back to the hypervisor, which handles the event and resumes the guest.
-   **Arm** CPUs have a dedicated exception level, EL2, for the hypervisor. Guest kernels run at EL1 and guest applications at EL0. The Virtualization Host Extensions (VHE) let a host kernel such as Linux with KVM run at EL2 directly.

#### Memory virtualization: EPT, NPT and stage 2 translation

A guest OS manages its own page tables and believes it controls physical memory. The hypervisor needs a second mapping from "guest physical" addresses to real host memory. Intel's Extended Page Tables (EPT), AMD's Nested Page Tables (NPT) and Arm's stage 2 translation do this second lookup in hardware. Before these existed, hypervisors kept "shadow" page tables in software and had to intercept every guest page table change. Microsoft calls this feature SLAT (second-level address translation) and requires it for Hyper-V.

#### Device I/O: emulation, paravirtualization and passthrough

Device handling accounts for much of a hypervisor's code and, as the security section below shows, for some of its worst bugs. There are three common approaches:

| Approach | How it works | Trade-off |
| --- | --- | --- |
| Full emulation | The VMM imitates a real device (an e1000 NIC, an IDE disk, a floppy controller) so unmodified guest drivers work | Works with any guest OS; slow, and a large amount of code |
| Paravirtualization (virtio) | The guest runs drivers that know they're virtualized and exchange data with the host through shared memory queues. virtio is the standard on KVM, and Hyper-V uses its own synthetic devices over VMBus | Much faster and less code; the guest needs the drivers (Linux includes them) |
| Passthrough (VFIO, SR-IOV) | A physical device, or one SR-IOV virtual function of a NIC or GPU, is assigned directly to the VM, with the IOMMU limiting which memory it can reach | Near-native I/O; the device is tied to one VM and live migration gets harder |

#### KVM and the user-space VMM

On Linux the hypervisor is split into two parts:

-   **The kernel part.** KVM is the `kvm` module plus a CPU-specific module, `kvm_intel` or `kvm_amd`. It exposes `/dev/kvm`. A user-space program opens that device, creates a VM and its vCPUs with `ioctl` calls, maps guest memory, and calls `KVM_RUN` in a loop. KVM handles CPU and memory virtualization and returns to user space when the guest needs something it doesn't handle, such as device I/O.
-   **The user-space VMM.** This program owns the device model and the VM's lifecycle. [QEMU](https://cycle.io/learn/what-is-qemu) is the general-purpose option: it emulates a large set of machines and devices and is what libvirt, Proxmox VE and OpenStack use for KVM guests. Firecracker (from AWS, used for AWS Lambda and Fargate) and Cloud Hypervisor (written in Rust, runs on KVM and Microsoft's MSHV) are minimal VMMs. They offer a few virtio devices instead of a full PC, which is what makes a [microVM](https://cycle.io/learn/what-is-a-microvm) small and fast to boot.

Because of this split, a crash or bug in the device model happens in a user-space process rather than in the host kernel.

#### What the hypervisor does for the VMs

On top of those mechanisms, a hypervisor provides the services that make a VM usable:

-   **Resource allocation.** The hypervisor divides CPU time, memory, storage and network bandwidth among VMs. It can overcommit, for example giving out more vCPUs than there are physical cores, and it can reclaim guest memory with a balloon driver when another VM needs it.
-   **Isolation.** Each VM is kept separate from the others on the host. A guest kernel crash or a compromised guest shouldn't affect other VMs, which is why multi-tenant clouds run customer workloads in VMs.
-   **Hardware** [**abstraction**](https://cycle.io/learn/segmentation-vs-abstraction)**.** Each VM sees a consistent set of virtual hardware no matter what the physical server has. This lets a VM move to a host with a different NIC or disk controller without changes inside the guest.
-   **Live migration.** Many hypervisors (vSphere vMotion, Hyper-V, KVM through QEMU and libvirt) can move a running VM to another host by copying its memory while it runs and then switching over with a short pause. Teams use this to patch hosts or rebalance load without shutting down guests.

For a broader introduction to these ideas, see [introduction to virtualization](https://cycle.io/learn/introduction-to-virtualization) and [what is a virtual machine](https://cycle.io/learn/what-is-a-virtual-machine).

### Check whether a Linux host can run a hypervisor

Before installing KVM, QEMU, libvirt or Proxmox VE, check that the CPU has virtualization extensions, that they're enabled, and that the kernel has exposed `/dev/kvm`. We ran the commands below on two Ubuntu 24.04 test machines, and the outputs are copied from those runs. Your own machine will show different counts, sizes and dates.

-   **Test VM:** a 2-vCPU VM running under QEMU's software CPU emulation, not a physical server. Its emulated AMD CPU advertises AMD-V (the `svm` flag) and nested paging, so KVM loads inside it the same way it does on an AMD host with AMD-V enabled.
-   **Cloud VM:** our cloud sandbox, which runs as a KVM guest and doesn't pass virtualization extensions through to its own guests.

**1\. Look for the CPU extension in** `**lscpu**`**.**

```bash
lscpu | grep -iE 'virtualization|hypervisor vendor'
```

On the test VM:

```
Virtualization:                       AMD-V
```

An Intel host shows `VT-x`. On the cloud VM, which has no nested virtualization, the same command prints:

```
Hypervisor vendor:                       KVM
Virtualization type:                     full
```

Here "Virtualization type: full" describes the machine you're on: it is itself a fully virtualized guest under KVM. It doesn't mean you can start VMs. Only a `Virtualization:` line with VT-x or AMD-V means that.

**2\. Look for the** `**vmx**` **(Intel) or** `**svm**` **(AMD) flag in** `**/proc/cpuinfo**`**.**

```bash
grep -cE 'vmx|svm' /proc/cpuinfo
grep -m1 -owE 'ept|npt' /proc/cpuinfo
```

The first command counts the lines in `/proc/cpuinfo` that mention either flag. Any number above `0` means the CPU reports the extension; `0` means it is missing or switched off in the firmware. The count isn't always the number of CPU threads: on Intel, recent kernels also print a separate `vmx flags` line for each thread, which doubles it. The second command checks for hardware memory virtualization. On the test VM, which has one flags line for each of its 2 vCPUs:

```
2
npt
```

On the cloud VM, the first command prints `0` and the second prints nothing. Arm servers don't use these flags; on Arm, check for `/dev/kvm` and the KVM lines in `dmesg` instead.

**3\. Check that the KVM modules are loaded and** `**/dev/kvm**` **exists.**

```bash
lsmod | grep kvm
ls -l /dev/kvm
```

On the test VM:

```
kvm_amd               208896  0
ccp                   143360  1 kvm_amd
kvm                  1437696  1 kvm_amd
irqbypass              12288  1 kvm
crw-rw---- 1 root kvm 10, 232 Nov 20 22:48 /dev/kvm
```

On an Intel host the second module is `kvm_intel`. The device is owned by the `kvm` group with mode 0660, so a non-root user who runs QEMU directly gets `Permission denied` unless they're in that group (`sudo usermod -aG kvm $USER`, then log in again). On a desktop, systemd also grants access to the user logged in at the local console. On the cloud VM, `ls` reports `No such file or directory`.

**4\. Run** `**kvm-ok**` **(Ubuntu and Debian).**

The `cpu-checker` package provides `kvm-ok`, which combines these checks:

```bash
sudo apt install cpu-checker
sudo kvm-ok
```

On the test VM:

```
INFO: /dev/kvm exists
KVM acceleration can be used
```

On the cloud VM:

```
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used
```

If the CPU supports the extension but the module isn't loaded, `kvm-ok` reports the missing device and names the module to load. This is the test VM after `sudo modprobe -r kvm_amd kvm`:

```
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm_amd
INFO: Your CPU supports KVM extensions
KVM acceleration can be used
```

On a physical server where the flag is missing, the extension is usually switched off in the firmware setup (BIOS or UEFI), often under a name like "Intel Virtualization Technology" or "SVM Mode". On an Intel host where the firmware has turned VT-x off, Linux kernels since 5.6 remove the `vmx` flag and log `VMX (outside TXT) disabled by BIOS` in `dmesg`, so `kvm-ok` reports that the CPU doesn't support KVM extensions. On a cloud VM, `/dev/kvm` only appears if the provider offers nested virtualization for that instance type or you use a bare-metal instance.

### Hypervisor security

The hypervisor is the isolation boundary between tenants. For one VM to read or change another VM's memory, an attacker has to break out of the guest and into code that runs with more privilege on the host. That is called a VM escape. The attack surface is everything a guest can send input to:

-   the CPU's virtualization interface and the hypervisor code that handles VM exits;
-   emulated and paravirtualized devices in the VMM (network, disk, USB, graphics, legacy controllers);
-   guest-to-host channels such as shared folders, clipboard sharing and guest tools.

Two well-known examples involved virtual devices:

-   **VENOM (CVE-2015-3456)**, published May 13, 2015, was a buffer overflow in QEMU's emulated floppy disk controller, which both KVM and Xen (4.5.x and earlier) used. A privileged user in a guest could crash the VM or possibly run code on the host with the privileges of the QEMU process. The bug was exploitable even when the guest had no virtual floppy drive configured.
-   **VMSA-2025-0004**, published by Broadcom on March 4, 2025, covered three bugs in VMware ESXi, Workstation and Fusion. The most severe, CVE-2025-22224 (CVSS 9.3), was a time-of-check time-of-use flaw in VMCI (the Virtual Machine Communication Interface) that led to an out-of-bounds write. An attacker with administrator rights inside a VM could use it to run code as the VM's VMX process on the host. A second bug, CVE-2025-22225, let an attacker already inside the VMX process write to the ESXi kernel and escape its sandbox. Broadcom said it had information suggesting all three had been exploited in the wild.

#### Why minimal VMMs reduce attack surface

Every emulated device is code that parses input from an untrusted guest. A general-purpose VMM like QEMU emulates a large catalog of devices so it can boot almost any OS. A minimal VMM removes most of them:

-   **Fewer devices.** Firecracker emulates virtio-net, virtio-block and vsock devices, a serial console and a minimal keyboard controller. The interrupt controllers and timer come from KVM itself. There is no USB, graphics or floppy controller for a guest to attack.
-   **Memory-safe code.** Firecracker and Cloud Hypervisor are written in Rust, which rules out many of the buffer overflow bugs behind past escapes.
-   **Confinement.** Firecracker's jailer drops privileges and isolates each VMM process, and a seccomp filter limits the host system calls each Firecracker thread can make. If a guest does compromise the VMM, it lands in a process with very little access.

The same approach works with any hypervisor: remove virtual devices the VM doesn't need, prefer virtio over emulated hardware, run the VMM as an unprivileged user under SELinux or AppArmor (libvirt does this with sVirt), and patch the hypervisor and VMM promptly. CPU side-channel bugs such as the Spectre family can also leak data between VMs on the same physical cores, so keep microcode and host kernels current, and consider dedicated hosts or cores for workloads that must not share hardware with other tenants.

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
