Technical

Proxmox VM CPU Type: host vs kvm64, and Whether Cores vs Sockets Matters

Proxmox VM CPU Type: host vs kvm64, and Whether Cores vs Sockets Matters

Proxmox VM CPU type host vs kvm64: use host for max speed, kvm64 only if you need live migration across different CPU models. But the cores vs sockets setting is mostly about licensing, not performance. Here’s what each one actually does.

Detailed view of a server rack with a focus on technology and data storage.

CPU type: host vs kvm64

The CPU type controls what CPU features the guest sees. Set it to host and the VM gets your physical CPU’s full feature set — AES-NI, AVX, whatever. That’s fastest. The catch: you can’t live-migrate that VM to a host with a different CPU model. The guest will crash or refuse to start.

kvm64 is a generic 64-bit CPU with almost no extra features. It works everywhere, so live migration is safe. But it’s slow — no AES acceleration, no AVX. For a homelab, host is usually the right call unless you run a cluster with mixed hardware.

You can check what the guest sees with lscpu inside the VM. Look at the Flags line. If you set host, you’ll see your real CPU flags. If kvm64, you’ll see a tiny subset.

Cores vs sockets: what it actually changes

This one trips people up. The VM’s CPU topology — how many sockets, cores per socket — doesn’t change performance much. The hypervisor schedules vCPUs the same way. What it changes is what the guest OS thinks it’s running on.

Windows Server, for example, has per-socket licensing. Set 2 sockets with 4 cores each, and Windows sees 2 CPUs — you might need 2 licenses. Set 1 socket with 8 cores, it sees 1 CPU. Same vCPU count, different licensing cost. That’s the main reason to care.

Some old software also checks socket count for licensing. If you’re not sure, just use 1 socket with all your cores. It’s the safest default.

A CPU and RAM sticks displayed on a white surface, showcasing computer hardware components.

CPU affinity and NUMA pinning

This is separate from both. Affinity pins a VM’s vCPUs to specific physical cores. NUMA pinning ties vCPUs and memory to the same NUMA node. These actually affect performance — but only on multi-socket servers or when you’re overcommitting CPU heavily. For a typical homelab with one CPU, leave them alone.

If you want to check NUMA topology from inside the guest, lscpu shows it too. Look for the NUMA node lines. If you see more than one node and your VM isn’t pinned, the guest might be spreading work across sockets without knowing it.

What I’d do

Set CPU type to host unless you need live migration. Use 1 socket with all your cores. Ignore affinity and NUMA unless you have a multi-socket box or a specific reason. And if you’re dealing with a Windows guest, check the licensing before you change sockets.

For more on Proxmox performance quirks, see Proxmox 9 CPU/IO starved when doing a restore from PBS: fix it with cgroup limits.

Leave a comment

Comments are reviewed before they appear. Your email is never published.