KVM virtualisation on dedicated servers
KVM is the virtualisation built into the Linux kernel. With libvirt and a few commands, any of our Linux images becomes a lean hypervisor that you control completely.
Why use plain KVM instead of a platform?
For control and automation. A KVM host with libvirt has no web interface to maintain, works with configuration tools you already use, and leaves every setting visible in XML. It suits CI runners that create and destroy VMs, development environments built from templates, network labs, and teams who manage VMs through Terraform or Ansible. If you prefer a web interface and built-in backups, Proxmox VE servers packages the same KVM underneath.
How do I install the host?
On Debian or Ubuntu:
apt install --no-install-recommends qemu-system-x86 qemu-utils libvirt-daemon-system virtinst cloud-image-utils ovmf usermod -aG libvirt,kvm deploy virt-host-validate qemu
On AlmaLinux or Rocky Linux, install the @virtualization-host-environment group or the individual qemu-kvm, libvirt and virt-install packages. Every processor in our catalogue supports hardware virtualisation.
How do I create a VM from a cloud image?
Download a distribution's cloud image, make a copy-on-write disk from it, and pass user data so cloud-init creates your user and key on first boot. First boot finishes in well under a minute on NVMe.
qemu-img create -f qcow2 -F qcow2 -b /var/lib/libvirt/images/debian-13-generic-amd64.qcow2 /var/lib/libvirt/images/ci-07.qcow2 40G virt-install --name ci-07 --memory 8192 --vcpus 4 --cpu host-passthrough \ --disk /var/lib/libvirt/images/ci-07.qcow2,bus=virtio,cache=none,discard=unmap \ --network network=default,model=virtio --os-variant debian13 \ --cloud-init user-data=/srv/seed/ci-user-data.yaml --import --noautoconsole
If your virt-install does not know the newest OS variant yet, use the previous release or linux2024.
Which settings make guests fast?
- virtio for disks and network, which avoids emulating old hardware.
host-passthroughCPU mode, so guests see AVX-512 and other features of the real processor.cache=nonewith raw or qcow2 images on NVMe, letting the guest's own cache do the work.- CPU pinning with
virsh vcpupinfor latency-sensitive guests, keeping them on fixed cores. - Huge pages for large guests, which reduce memory translation overhead.
- Multi-queue virtio-net for guests that push a lot of traffic.
echo 32768 > /proc/sys/vm/nr_hugepages # 64 GB of 2 MB pages virsh vcpupin db-01 0 8 && virsh vcpupin db-01 1 9
What addresses do KVM guests use?
The server has one IPv4 address and an IPv6 block, and extra IPv4 addresses are not sold. libvirt's default network gives guests private IPv4 with NAT out through the host, which is ready after installation. For public reachability, forward ports on the host, run a reverse proxy, or route IPv6: add a libvirt network with a /64 from your block and let guests use public IPv6 directly.
<network> <name>pub6</name> <forward mode="route"/> <ip family="ipv6" address="2001:db8:1234:10::1" prefix="64"/> </network>
Replace the documentation prefix with a subnet of the block shown in your console.
How do I size the host?
Memory decides the guest count; CPU can be shared at a ratio of two or three virtual CPUs per thread for typical workloads. Keep 4 GB for the host.
| Use | Machine | Guests |
|---|---|---|
| Lab or CI runners | ESSENTIAL-M | 12 to 15 VMs of 4 GB |
| Development environments | ESSENTIAL-5 | 25 to 30 VMs of 4 GB |
| Large mixed fleet | ESSENTIAL-9 | 50 to 60 VMs, 48 cores |
ESSENTIAL-5 brings 128 GB DDR4 and 24 cores for $120.00 a month. Back up guests with virsh backup-begin or by snapshotting and copying images to a Storage server. The CI runners and build farms page covers build runners and Virtualisation hosts compares approaches.
Machines for KVM hosts
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
| ESSENTIAL-L | AMD Ryzen 9 9950X | 16 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-5 | AMD EPYC 7413 | 24 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $120.00 |
| ESSENTIAL-9 | AMD EPYC 7642 | 48 | 256 GB | 2x 480 GB SSD SATA | 1 Gbps unmetered | $153.00 |
| BUSINESS-5 2024 | AMD EPYC 8224P | 24 | 96 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $280.20 |
| ENTERPRISE-a4 2026 | AMD EPYC TURIN 9455 | 48 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $510.00 |
Count guest memory first; every processor here supports hardware virtualisation.
Related pages
Proxmox VE servers
Turn one rented machine into a private virtualisation host with Proxmox VE 9: VMs and containers, ZFS, networking with one IPv4, backups and sizing.
Read moreVirtualisation hosts
Proxmox VE and KVM hosts sized by cores and memory per guest, from entry EPYC machines to 128 core chassis.
Read moreCI runners and build farms
High clock Ryzen and many-core EPYC machines for CI runners, container builds and compile farms that finish faster.
Read moreDebian
Debian 13 or 12: a lean, conservative base that stays out of the way on machines you want to forget about.
Read moreQuestions and answers
Do your servers support KVM virtualisation?
Yes. Every processor in the catalogue supports hardware virtualisation, and full root access lets you install KVM and libvirt.
Which network setup gives KVM guests outbound access?
libvirt's default network gives guests private IPv4 with NAT. Guests can also have public IPv6 addresses routed from the server's block.
Which CPU mode should KVM guests use?
host-passthrough, so guests see the real processor's features such as AVX-512, unless you need to live-migrate between different CPUs.
How do I create KVM VMs quickly?
Use a distribution cloud image as a backing file, create a copy-on-write disk and pass cloud-init user data with virt-install.
How many VMs can a KVM host run?
Plan by memory: keep 4 GB for the host and add guest memory. A 128 GB host runs 25 to 30 guests of 4 GB.