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?

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.

UseMachineGuests
Lab or CI runnersESSENTIAL-M12 to 15 VMs of 4 GB
Development environmentsESSENTIAL-525 to 30 VMs of 4 GB
Large mixed fleetESSENTIAL-950 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.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-MAMD Ryzen 9 9900X1264 GB2x 512 GB SSD NVMe1 Gbps unmetered$70.80
ESSENTIAL-LAMD Ryzen 9 9950X16128 GB2x 960 GB SSD NVMe1 Gbps unmetered$106.20
ESSENTIAL-5AMD EPYC 741324128 GB2x 960 GB SSD NVMe1 Gbps unmetered$120.00
ESSENTIAL-9AMD EPYC 764248256 GB2x 480 GB SSD SATA1 Gbps unmetered$153.00
BUSINESS-5 2024AMD EPYC 8224P2496 GB2x 960 GB SSD NVMe3 Gbps unmetered$280.20
ENTERPRISE-a4 2026AMD EPYC TURIN 945548128 GB2x 1.92 TB SSD NVMe5 Gbps unmetered$510.00

Count guest memory first; every processor here supports hardware virtualisation.

See all servers and prices

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 more

Virtualisation hosts

Proxmox VE and KVM hosts sized by cores and memory per guest, from entry EPYC machines to 128 core chassis.

Read more

CI runners and build farms

High clock Ryzen and many-core EPYC machines for CI runners, container builds and compile farms that finish faster.

Read more

Debian

Debian 13 or 12: a lean, conservative base that stays out of the way on machines you want to forget about.

Read more

Questions 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.