OpenStack and virtualization decisions
Start with a capacity decision
The bookstore must accommodate 80 identical VMs, each requesting 2 vCPUs and 6 GiB RAM. It wants one compute host to be unavailable for maintenance or failure without exceeding its modeled resource limits. Compare private capacity with managed public-cloud usage over 36 months. Treat all numbers as fictional planning inputs, not hardware benchmarks or quotes. A successful spreadsheet or Python calculation is not proof of actual VM availability.
Choose a platform by responsibility and evidence
| Platform | What it provides | Evidence required before selection |
|---|---|---|
| OpenStack with KVM | Composable IaaS services above Linux virtualization | Supported distribution/release, drivers, upgrades, staffing and support |
| VMware vSphere / VCF / VVF | Virtualization and bundled infrastructure capabilities depending on product | Hardware compatibility, subscription entitlement, version and lifecycle |
| Microsoft Hyper-V | Hypervisor in supported Windows products | Host/guest versions, Windows Server edition, guest rights and access licenses |
| KVM with management tools | Linux kernel virtualization plus userspace and management stack | Distribution, QEMU/libvirt versions, security updates, support contract |
| Hyperconverged infrastructure (HCI) | Compute and distributed storage on clustered nodes | Storage replication, failure-domain layout, rebuild performance and licensing |
HCI alternatives can include integrated commercial appliances or a managed KVM/Ceph-based stack; HCI does not automatically provide tenant self-service or cloud APIs. With shared compute and storage failure domains, a failed host can simultaneously reduce compute headroom and storage redundancy. Separate storage can scale independently but adds network and operational dependencies.
Documentation excerpts checked on 2026-11-28: Broadcom identifies October 2, 2025 as vSphere 7 end of general support and describes a change to subscription-based license files for VCF/VVF 9. Microsoft documents core-based Windows Server 2025 licensing and different Standard/Datacenter virtualization rights; exact entitlements depend on license terms and deployment. Hyper-V availability does not imply free Windows guest licenses. KVM is integrated into Linux, but open source does not imply free support, hardware or operations. Verify the current vendor lifecycle, actual version, agreement, feature entitlement and support coverage before any procurement; no specific contract or price is assumed.
Calculate N−1 capacity without hiding physical limits
Each of four fictional hosts has 32 physical cores and 192 GiB RAM. Reserve 4 cores and 16 GiB per host for the platform. For this exercise, use an illustrative 2:1 vCPU allocation ratio and no RAM overcommit. These are assumptions, not OpenStack defaults. Per host: (32 − 4) × 2 = 56 allocatable vCPUs; 192 − 16 = 176 GiB. With one host unavailable, three hosts remain: 168 vCPUs and 528 GiB. Demand is 160 vCPUs and 480 GiB. Each host can fit min(floor(56/2), floor(176/6)) = 28 identical VMs; three fit 84, leaving four VM slots. Under a two-host outage, only 56 fit. Real workloads require measured CPU contention, memory pressure, NUMA, dedicated CPU, I/O, network, affinity and storage placement checks. Dedicated physical CPU inventory cannot be treated like shared vCPU overcommit. An allocation ratio changes scheduler accounting, not physical throughput.
A 12 TiB raw storage pool with three full replicas and an illustrative 75% utilization ceiling has 12/3 × 0.75 = 3 TiB modeled usable budget before metadata or rebuild reserves. Verify placement across independent domains, minimum replica policy, capacity after failure, IOPS and network contention. Do not equate this simple ratio with Ceph's actual usable capacity. Capacity procurement must include lead time, spare parts and forecast growth; a four-VM margin may be insufficient by the time new hardware arrives.
Compare costs over the same period
For a 36-month fictional comparison, use hardware and initial installation of $96,000, residual value $12,000, monthly support and license cost $1,200, power and facility cost $800, staffing $3,000, backup/network cost $500. Monthly modeled private cost = (96,000 − 12,000)/36 + 5,500 = $7,833.33 rounded. Total = $282,000. A comparable managed service costs $6,900/month in usage and platform charges, plus $1,400/month in retained operations, totaling $298,800. Under these assumptions the private model is $16,800 lower over 36 months. If staffing rises by $1,000/month, private cost becomes $318,000, or $19,200 higher than managed. Break-even managed monthly total is $282,000/36 ≈ $7,833.33. Use unrounded totals for comparisons.
This simple undiscounted total-cost model is not accounting advice, a cash-flow forecast or a license quote. CapEx is an initial investment; OpEx is ongoing operating expense. Actual accounting treatment depends on policy. Include financing, tax, migration, hardware refresh, outages, utilization, egress, managed backup and retained staffing under equal reliability and security requirements. Model declining demand, hardware failure, growth and exit costs. Private cloud may be preferable for specific control, locality or stable workload economics; public or managed private cloud may be preferable when demand is variable or staff capacity is limited.
Run an offline admission model
The following Python example calculates a conservative identical-VM slot count per host before aggregation. Each input is an integer; memory is in GiB, and ratio is a whole-number shared-vCPU allocation factor. It rejects invalid inputs. It does not implement a real scheduler, test failure recovery or call infrastructure APIs.
def slots_after_failure(hosts, failed, cores, ram, reserve_cpu, reserve_ram, ratio, vm_cpu, vm_ram): values = (hosts, failed, cores, ram, reserve_cpu, reserve_ram, ratio, vm_cpu, vm_ram) if any(type(x) is not int or x < 0 for x in values): raise ValueError("nonnegative integers required") if (hosts == 0 or failed > hosts or cores == 0 or ram == 0 or reserve_cpu >= cores or reserve_ram >= ram or min(ratio, vm_cpu, vm_ram) < 1): raise ValueError("invalid capacity") cpu_slots = ((cores - reserve_cpu) * ratio) // vm_cpu ram_slots = (ram - reserve_ram) // vm_ram return (hosts - failed) * min(cpu_slots, ram_slots)
for failed in (0, 1, 2): slots = slots_after_failure(4, failed, 32, 192, 4, 16, 2, 2, 6) print(f"Failed: {failed}; slots: {slots}; fits 80: {slots >= 80}")Expected output:
Failed: 0; slots: 112; fits 80: TrueFailed: 1; slots: 84; fits 80: TrueFailed: 2; slots: 56; fits 80: FalseWhy calculate per host? Two hosts each with 3 free vCPUs cannot fit a VM needing 4 vCPUs, even though their aggregate is 6. This model assumes empty identical hosts and freely placeable homogeneous workloads. Real placement needs existing allocations, heterogeneous hosts, topology constraints, compatible devices, shared-storage access and migration/restart validation. An actual failover may require additional capacity and time.
Practice and decision memo
Change each VM to 8 GiB. The one-failure capacity becomes 3 × min(28, 22) = 66, so 80 no longer fit. How many identical hosts are required for N−1? Four surviving hosts provide 88 slots; purchase or otherwise supply at least five total in this model. Compare a 10% growth case (88 VMs), a two-host outage, and the cost sensitivity above. Write a decision memo stating assumptions, service boundaries, current license evidence, procurement lead time, required staff skills, patching, monitoring and a tested recovery plan. Do not install or change infrastructure. Reset by discarding the local inputs.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
OpenStack and virtualization decisions — knowledge check
Choose the best answer for each offline scenario.
Four hosts each fit 28 identical VMs. How many fit after one failure?
What does a 2:1 shared-vCPU allocation ratio guarantee?
A 12 TiB raw pool has three replicas and a 75% ceiling. What is the simplified budget?
Private cost rises $1,000/month for 36 months. What is its new total?
What is required before selecting a virtualization license?