Enterprise Virtualization Reference

VMware ESXi (esxcli) & Microsoft Hyper-V Cheat Sheet

Both VMware ESXi and Microsoft Hyper-V are enterprise Type 1 (bare-metal) hypervisors, but they manage hardware, drivers, and clustering very differently.

⚡ Quick Reference🟢 Beginner-Friendly📅 Updated: 2026
CLI Tool esxcli ESXi modular command-line framework
Namespace vm process Subsystem (vm, system, network, storage)
Action & Flags list Verb to execute (list, get, kill)

1 VMware esxcli & vim-cmd Commands

When vCenter is unreachable or you SSH directly into an ESXi host, esxcli and vim-cmd let you inspect hardware, network uplinks, and recover stuck VMs.

esxcli vm process list
List running VMs & their World IDs Shows every powered-on VM along with its World ID (needed if you must terminate a hung VM).
esxcli system version get
Check ESXi build & patch level Displays exact ESXi version, build number, and update level before applying patches.
esxcli network nic list
List physical NICs (vmnic0, vmnic1) Shows link status (Up/Down), link speed (10GbE/1GbE), duplex, and driver name.
vim-cmd vmsvc/getallvms
List all registered VMs & VMIDs Includes powered-off VMs, datastore path to .vmx file, and Guest OS type.
vim-cmd vmsvc/power.shutdown 12
Graceful OS shutdown via VMware Tools Cleanly shuts down VMID 12. Use vim-cmd vmsvc/power.on 12 to power it back on.

2 vSphere Concepts Explained (No Jargon)

ESXi is the hypervisor on one physical box; vSphere is the full suite that turns multiple ESXi hosts into a self-healing cluster.

Concept Plain-English Meaning What Problem It Solves Key Requirement
vCenter Server Central management appliance (VCSA) Manages dozens/hundreds of ESXi hosts from one web console Licensed separately from free ESXi
vMotion Live-move a running VM's compute (CPU/RAM) to another host Zero-downtime host patching and hardware maintenance Shared storage + vMotion VMkernel NIC
Storage vMotion Live-move a running VM's virtual disks to another datastore Migrating off old SAN/NAS arrays without shutting down VMs Destination datastore visible to host
HA (High Availability) Auto-restarts VMs on healthy hosts if a physical host crashes Turns a dead server into a ~2-minute VM reboot instead of an outage Shared storage + heartbeat network
DRS (Distributed Resource Scheduler) Auto-balances VMs across hosts using vMotion Prevents one host from hitting 95% CPU while another sits at 10% vSphere Enterprise Plus license
Datastore (VMFS) Clustered filesystem formatted on SAN/local LUNs Allows multiple ESXi hosts to safely read/write the same storage pool Block storage (iSCSI, FC, NVMe/SAS)

3 Microsoft Hyper-V PowerShell Cmdlets

Run these cmdlets in an elevated PowerShell window on your Hyper-V host (or remotely with -ComputerName) for fast, repeatable VM administration.

Get-VM
List all Hyper-V VMs & status Shows Name, State (Running/Off), CPUUsage, MemoryAssigned, and Uptime.
New-VM -Name "Web01" -MemoryStartupBytes 4GB -Generation 2 -NewVHDPath "D:\VMs\Web01.vhdx" -NewVHDSizeBytes 60GB -SwitchName "vSwitch-Ext"
Create a Generation 2 (UEFI) VM Creates a 4 GB RAM, 60 GB .vhdx VM attached to vSwitch-Ext. Always prefer Gen 2 for modern OSes.
New-VMSwitch -Name "vSwitch-Ext" -NetAdapterName "Ethernet" -AllowManagementOS $true
Create an External Virtual Switch Binds to physical NIC Ethernet so VMs reach the LAN/internet while keeping host access.
Checkpoint-VM -Name "Web01" -SnapshotName "Pre-Patch"
Take a VM Checkpoint (Snapshot) Creates a rollback point before updates. Remove it afterward with Remove-VMSnapshot -VMName "Web01" -Name "Pre-Patch".
Export-VM -Name "Web01" -Path "E:\Backups\"
Export VM config, disks & state Copies the entire VM folder (VHDX + config) to E:\Backups\—works even while the VM is running.

4 Hyper-V Virtual Switches & Integration Services

Hyper-V uses three Virtual Switch types to control who can talk to whom—choosing the wrong one is the #1 reason lab VMs have "no internet."

Switch Type VM ↔ VM VM ↔ Host OS VM ↔ Physical LAN / Internet Best Use Case
External Yes Yes Yes (Binds to physical NIC) Production servers, web apps, VMs needing LAN/internet
Internal Yes Yes No (Host NAT optional) Host-to-VM file sharing, isolated lab with host access
Private Yes No No (Completely air-gapped) Malware analysis, isolated Active Directory test forests

Hyper-V Integration Services

Integration Services are Hyper-V's equivalent of VMware Tools. Built into modern Windows and Linux kernels (hv_vmbus, hv_netvsc, hv_storvsc), they provide high-speed synthetic disk/NIC drivers over VMBus, graceful shutdown, time synchronization, and Volume Shadow Copy (VSS) backup quiescing.

🧠 Memory Trick — Hyper-V Switches & vSphere HA vs vMotion:
• External = Everyone (VMs + Host + LAN) • Internal = Inside Host + VMs • Private = Purely VM-to-VM.
• vMotion = Planned zero-downtime move; HA = Unplanned crash recovery reboot.

5 The Danger Zone: 3 Enterprise Traps

These three mistakes cause corrupted databases, broken Active Directory replication, and host crashes in ESXi and Hyper-V environments.

⚠️ Critical ESXi & Hyper-V Warnings
1. Running esxcli vm process kill -t force Immediately

The force kill type is a hard power-off that terminates the VM process without flushing guest disk caches—risking database and filesystem corruption. Rule: Always escalate in order: soft (graceful) → wait 60s → hard → force only as an absolute last resort.

2. Using Standard Checkpoints Instead of Production Checkpoints in Hyper-V

Standard Checkpoints capture live memory state. Restoring a memory snapshot on a Domain Controller or SQL Server causes USN rollbacks and corrupted transactions. Production Checkpoints (default in modern Hyper-V) use VSS inside the guest for a clean, application-consistent backup state. Rule: Keep Production Checkpoints enabled for all servers.

3. Mixing Incompatible VMware Tools Versions on Linux/Windows

Installing legacy bundled VMware Tools tarballs on top of OS-packaged open-vm-tools—or running severely outdated VMware Tools after an ESXi upgrade—causes vmxnet3 NIC drops, backup quiesce failures, and guest freezes. Rule: Use open-vm-tools from your Linux distro repo and keep Windows VMware Tools aligned with your ESXi version.

Quick-Copy: Safe ESXi VM Escalation (Soft → Hard) & Hyper-V Production Checkpoint Check
# ESXi: Find World ID, then try SOFT shutdown first (never jump straight to force)
esxcli vm process list
esxcli vm process kill --type=soft --world-id=12345

# Hyper-V PowerShell: Verify all VMs use Production Checkpoints
Get-VM | Select-Object Name, CheckpointType