How KVM Works
With KVM, the Linux kernel itself acts as the hypervisor. Each virtual machine runs as a process on the host, and the processor's virtualization extensions (Intel VT-x and AMD-V) let its code run directly on the CPU. QEMU provides the hardware the virtual machine sees: its disks, network cards, and console.
What KVM Means for a VPS
- Your own kernel: you can load kernel modules, change kernel settings, and run Docker.
- A full operating system: the virtual machine boots like a physical computer and is not tied to the host's Linux version.
- Reserved resources: a provider can reserve cores and memory for each virtual machine, so a neighbor's load does not take them.
- Isolation: each virtual machine is separated from the others at the hardware level.
KVM Compared with Containers
| KVM virtual machine | Container (OpenVZ, LXC) | |
|---|---|---|
| Kernel | Its own | Shared with the host |
| Operating system | Any that runs on the hardware | Linux only, on the host's kernel |
| Isolation | Hardware level | Process level |
| Overhead | Slightly higher | Lower |
| Docker and kernel modules | Supported | Limited or not available |
KVM, QEMU, and Proxmox
KVM is the part of the Linux kernel that runs virtual machines. QEMU is the program that provides their virtual hardware. Proxmox VE is a management platform that uses both and adds a web interface, storage, backups, and snapshots.
How to Tell Whether a VPS Runs on KVM
On a Linux server, this command prints the virtualization type. A KVM virtual machine answers kvm:
systemd-detect-virt