VM consolidation calculator

Enter your VMs and the calculator recommends realistic host configurations (sockets, cores and RAM) and how many hosts you need; you can also validate hosts you already have. Compare VMware vSphere with Proxmox VE, KVM and Hyper-V. Everything runs in your browser. Licensing is not included.

How it is calculated

Notation: V = total vCPU (Σ VMs × vCPU), M = total allocated RAM (GB), P = usable pCPU per host, U = usable RAM per host, u = max RAM use, O = RAM overcommit, s = KSM savings and F = host failures to tolerate. The calculation is allocation-based (what is configured on the VMs), not based on measured consumption.

Formulas

pCPU per host (P)
sockets × cores × (2 if you count HT) − OSDs × cores per OSD
Reserved RAM per host
hypervisor + extra + ARC (ZFS) + OSDs × RAM per OSD + MON/MGR (Ceph)
Usable RAM per host (U)
host RAM − reserved RAM
Effective RAM demand
M × (1 − s) ÷ O
Hosts by CPU
⌈ V ÷ (P × vCPU:pCPU ratio) ⌉
Hosts by RAM
⌈ demand ÷ (U × u) ⌉
Base hosts
max(hosts by CPU, hosts by RAM, 1)
Total hosts
max(base + F, HA minimum if F > 0)

Why CPU or RAM is the limit

Two independent figures are computed and the larger one wins. VMs with little RAM per vCPU (say 2 GB per vCPU) are usually CPU-bound; VMs with a lot of RAM per vCPU (8 GB per vCPU or more) are usually RAM-bound. If both match, the tool flags it as CPU and RAM.

Adding RAM to the hosts only helps when RAM is the limit; adding cores only helps when CPU is the limit. Raising the vCPU:pCPU ratio reduces hosts by CPU at the cost of more contention.

What N+1 (and N+2) means

N+F means that, besides the N hosts that cover demand at the target utilization, you have F more hosts to keep running if F hosts fail (failure or maintenance). The calculator shows the normal and the degraded state (total hosts − F): the ratio and RAM use rise there, so it warns when RAM exceeds 95% or the ratio rises more than 25% above target.

In vSphere this matches the vSphere HA admission control policy; on other platforms the reserve is a design decision and has to be configured (for example HA affinity and restart priority).

Which vCPU:pCPU ratio to use

Common rules of thumb (not a standard): general-purpose workloads 3:1 to 5:1; latency-sensitive workloads and databases close to 1:1 to 2:1; VDI and desktops higher, because activity is sporadic. The right value comes from measuring real CPU (utilization and CPU ready/steal), not from a rule.

For RAM the usual production advice is not to overcommit (1.0×). Overcommitting means depending on ballooning, compression or hypervisor swap.

Differences by platform

PlatformHA minimumMemory reclamationTypical storageNotes
VMware vSphere2 hosts (vSphere HA)Ballooning, compression and hypervisor swap. Page sharing (TPS) between VMs is disabled by default.SAN/NFS or vSAN (RAM reserve per host separate)Admission control reserves failover capacity (equivalent to N+F). Check licensing separately.
Proxmox VE3 nodes (corosync quorum); with 2 nodes a QDevice is neededKSM and ballooningLocal ZFS (ARC uses RAM), hyperconverged Ceph or external storageThe Proxmox VE 8.1+ installer caps ARC at 10% of RAM (max 16 GB). Each Ceph OSD targets 4 GB of RAM.
KVM / libvirt2 hosts; depends on the stack (Pacemaker, oVirt/OLVM, OpenStack)KSM and virtio ballooningAny; Ceph or ZFS with the same reservesHigh availability is not built into KVM: it depends on the management stack you choose.
Hyper-V2 nodes (Failover Cluster)Dynamic Memory (not modelled here)SAN, SMB or Storage Spaces Direct (extra RAM reserve per host)A Failover Cluster needs a quorum witness; include S2D RAM in the extra reserve.

The hypervisor RAM reserve values (4 GB for vSphere and Hyper-V, 2 GB for Proxmox and KVM) are reasonable starting estimates: adjust them to your actual configuration.

Assumptions and limits

  • This is allocation-based sizing, not performance sizing: it does not replace a load test. For production use real metrics (Aria Operations, Prometheus, PRTG, etc.) for CPU, active RAM and peaks.
  • NUMA and very large VMs are not modelled: a VM that spans sockets can perform worse, and monster VMs limit packing. The tool warns when a VM does not fit on a host.
  • Storage (IOPS, capacity, latency) and networking are not sized. Only the RAM and CPU that ZFS and Ceph use on the host are subtracted.
  • Licensing is not included. Many licenses depend on sockets or cores, so host count and configuration affect cost.
  • Reserve, ARC and OSD values are suggested defaults or guidelines, not measurements of your environment.

Frequently asked questions

How many hosts do I need for 100 VMs?

It depends on VM and host size, not on the VM count alone. With 100 VMs of 4 vCPU and 16 GB (400 vCPU and 1,600 GB), hosts of 2 × 16 cores and 512 GB, a 4:1 ratio and 80% RAM use, you get 4 hosts by CPU and 4 by RAM: 4 base + 1 N+1 spare = 5 hosts. Change the values in the calculator for your case.

Which vCPU:pCPU ratio should I use?

As a rule of thumb, 3:1 to 5:1 for general workloads, close to 1:1 to 2:1 for databases and latency-sensitive workloads, and higher for VDI. It is not a standard: measure real CPU (utilization and CPU ready/steal) and adjust. The higher the ratio, the fewer hosts by CPU but the more contention.

What is N+1?

It means having one more host than the workload needs, so the cluster still meets the target capacity if a host fails or is in maintenance. N+2 tolerates two. The calculator checks the degraded state (total hosts minus F): that is where ratio and RAM use rise. In vSphere it matches HA admission control.

Does Proxmox need 3 nodes?

For high availability with corosync quorum, 3 or more nodes are recommended. With 2 nodes you can operate by adding a QDevice (an external vote), but it is a more fragile design. With Ceph, replica 3 across hosts also needs at least 3 nodes. That is why the calculator applies a 3-host minimum when you pick Proxmox with F greater than 0.

How much RAM does Ceph use on Proxmox?

Each OSD targets 4 GB of RAM by default (osd_memory_target), plus the RAM of the MON and MGR services. With 4 OSDs per host that is about 16 GB plus a MON/MGR reserve (the calculator uses 4 GB), around 20 GB per host, plus roughly 1 core per OSD. During recovery usage can rise above the target, and this figure is an editable guideline, not a measurement.

Do I need more hosts when migrating from VMware to Proxmox?

Not necessarily. If you keep external storage the host count is similar. You may need more with hyperconverged Ceph (RAM and CPU reserved for OSDs), if your cluster was 2 nodes and now needs 3 for quorum, or if you relied on memory savings that no longer apply. Use comparison mode to see it with your numbers. Licensing is not included.

Which server should I buy for my VMs?

Turn on the "Recommend hosts" mode: the calculator tries generic configurations with 1 or 2 sockets, 8 to 64 cores per socket and 128 to 2,048 GB of RAM, and proposes the one that leaves CPU and RAM best balanced after a failure, along with alternatives (fewest hosts, most resilient, fewest total cores). It uses no vendors, models or pricing: validate the result with the vendor configurators.

Is it better to have a few large hosts or many small ones?

It depends. A few large hosts mean fewer servers to manage and license, but the N+1 spare weighs more (1 of 3 hosts is 33%) and a failure affects more VMs. Many small hosts spread the risk and make the spare more efficient (1 of 10 is 10%), at the cost of more rack space, power, cabling and management. With Ceph or vSAN, each node also adds its own RAM and CPU reserves.