Knowledge / Information Technology / Virtualisation: VMware and Hyper-V

Virtualisation: VMware and Hyper-V

Information Technology (B.E./B.Tech) · IT operations and continuity · free study notes for exams, placements and interviews

In short

Virtualisation lets one physical server run many isolated virtual machines (VMs), each with its own operating system, by inserting a thin software layer called a hypervisor between the hardware and the guests. It exists because a bare-metal server typically idles at 5-15% utilisation; consolidating 10-20 workloads onto one host cuts hardware, power, rack space and provisioning time from weeks to minutes, and it is the foundation on which every public cloud (AWS, Azure, Google Cloud, NIC MeghRaj) is built. The two dominant enterprise platforms in India are VMware vSphere/ESXi and Microsoft Hyper-V, with KVM, Nutanix AHV and Proxmox growing fast. It is examined in Operating Systems, Cloud Computing and Computer Architecture papers (university and placement tests ask hypervisor types, memory translation and isolation; it is not in the GATE CS/DA syllabus), and it is a standing interview area for infrastructure, cloud and DevOps roles at TCS, Infosys, Wipro, HCLTech, LTIMindtree, Tech Mahindra and every Indian data-centre operator.

Explained

What virtualisation is, and its types

How the CPU, memory and I/O are virtualised

VMware vSphere — architecture and features

Microsoft Hyper-V — architecture and features

VMs versus containers, and where each fits

Benefits, limitations and Indian practice

Key points

Formulas and examples

Consolidation ratio = (number of VMs) / (number of physical hosts)
vCPU : pCPU ratio = Σ vCPUs allocated / physical cores available (threads if HT counted); typical safe range 3:1 to 6:1
%CPU Ready = [ ready-time summation (ms) ] / [ sample interval (ms) × number of vCPUs ] × 100 ; vSphere real-time sample = 20,000 ms. Target < 5% per vCPU
Usable host memory = installed RAM − hypervisor overhead − Σ per-VM overhead
Memory overcommit ratio = Σ configured VM memory / usable host memory
Hosts required (N+1) = ceil( total workload demand / per-host usable capacity ) + 1
HA slots per host = min( host CPU capacity / largest CPU reservation , host memory / largest memory reservation )
Live-migration time T ≈ M / (R − D), downtime ≈ (D × T_last)/R, where M = VM RAM (GB), R = effective transfer rate (GB/s), D = memory dirty rate (GB/s), R > D
Availability A = MTBF / (MTBF + MTTR) ; annual downtime (min) = (1 − A) × 525,600
Cost per VM per month = (amortised hardware + licence + power + support) / VMs

Example 1 — Consolidation and host sizing. 40 physical servers, each 8 cores at 10% average CPU and 32 GB RAM at 40% used. Target hosts have 2 × 24 cores and 512 GB RAM; plan to utilisation ceilings of 70% CPU and 80% memory (i.e. 30% / 20% headroom).

Example 2 — CPU Ready. A 4-vCPU VM reports a ready summation of 8,000 ms over a 20,000 ms sample.

Example 3 — Memory overcommitment. Host with 256 GB RAM, 24 GB taken by the hypervisor and VM overheads; 20 VMs configured at 16 GB each.

Example 4 — Live migration time. VM with 16 GB RAM, 10 GbE migration network at 80% efficiency, dirty rate 100 MB/s.

Example 5 — Hyper-V licensing break-even. Host with 2 × 16 = 32 cores. Assume list prices of ₹85,000 per 16-core Standard pack and ₹5,00,000 per 16-core Datacenter pack (indicative only — Indian reseller and EA pricing varies, verify current rates).

FeatureVMware vSphere / ESXiMicrosoft Hyper-V
Hypervisor typeType 1, purpose-built VMkernelType 1, parent partition on Windows Server
ManagementvCenter Server, vSphere Client, PowerCLIHyper-V Manager, Windows Admin Center, SCVMM, PowerShell
Disk formatVMDK (thin / lazy / eager-zeroed thick)VHD, VHDX (dynamic / fixed / differencing)
Live migrationvMotion, Storage vMotion, EVCLive Migration, Storage/Shared-Nothing Migration
Load balancingDRS, DPMSCVMM Dynamic Optimization / Power Optimization
Host failure recoveryvSphere HA, Fault ToleranceFailover Clustering with CSV
Built-in replicationvSphere Replication, SRM (extra licence)Hyper-V Replica (included)
Memory techniquesTPS, ballooning, compression, swapDynamic Memory, Smart Paging
Cluster file systemVMFS / NFS / vSANCSV on NTFS-ReFS, SMB 3.0, Storage Spaces Direct
Cost modelPer-core subscription bundles (post-Broadcom)Hypervisor free; Windows Server per-core, Standard vs Datacenter
Typical fitMixed Linux + Windows estates, mature toolingWindows-heavy estates, Azure-aligned, lower licence cost
Type 1 hypervisorType 2 hypervisorContainer
Runs onBare metalHost OSHost OS kernel
OverheadLowHigherNear zero
Boot timeTens of secondsTens of secondsMilliseconds
IsolationStrong (hardware)StrongWeaker (shared kernel)
Guest OSAny supported OSAny supported OSSame kernel family only
ExampleESXi, Hyper-V, KVMVirtualBox, WorkstationDocker, LXC, containerd

Where it is used

Interview questions

Common mistakes

Related topics

Cloud computing and IaaS service models · Operating system memory management and scheduling · Containers, Docker and Kubernetes · Disaster recovery and business continuity · IT asset and licence management · Storage and SAN/NAS fundamentals.

Open in the Knowledge reader →Find jobs →