VMware ESXi is the world's leading enterprise hypervisor, powering over 80% of virtualized data centers globally. As the core component of VMware vSphere, ESXi provides a robust, high-performance platform for running production workloads. This guide covers everything from installation to advanced administration.
π₯ Free VMware ESXi Cheat Sheet
Download our complete ESXi CLI command reference with esxcli, vim-cmd, and vmkfstools commands.
Download Free PDF βTable of Contents
- VMware ESXi Overview
- ESXi Architecture
- Installation Guide
- VM Management
- Virtual Networking
- Storage Management
- vCenter Server
- Advanced Features
- Best Practices
VMware ESXi Overview
VMware ESXi (Elastic Sky X Integrated) is a Type 1 bare-metal hypervisor that installs directly on server hardware. Unlike Type 2 hypervisors that run on a host OS, ESXi replaces the operating system entirely, providing direct access to hardware resources.
Key Specifications (vSphere 8.0)
| Specification | Maximum |
|---|---|
| VMs per host | 1,024 |
| vCPUs per VM | 768 |
| RAM per host | 24 TB |
| RAM per VM | 24 TB |
| Virtual disk size | 62 TB |
| Logical CPUs per host | 896 |
ESXi Architecture
ESXi uses a minimalist architecture with a ~150MB footprint:
- VMkernel β The core operating system and hypervisor, managing CPU scheduling, memory management, and I/O
- DCUI (Direct Console User Interface) β Basic text-mode configuration at the physical console
- hostd β Management agent handling API requests from vCenter and vSphere Client
- vpxa β vCenter agent for centralized management
- VMware Tools β Guest agents installed in each VM for enhanced performance and management
Installation Guide
ESXi installation requirements:
- 64-bit CPU with VT-x/AMD-V support
- Minimum 8 GB RAM (32+ GB recommended for production)
- Boot device: 32 GB minimum (USB, SD, SAN, or local disk)
- At least one supported network adapter
- Server on the VMware HCL (Hardware Compatibility List)
# Boot from ESXi installer ISO
# Select installation disk
# Set root password
# After installation, access via:
https://<esxi-ip-address>/ui # Host Client (web UI)
ssh root@<esxi-ip-address> # SSH access (enable first)
VM Management
Creating VMs
# List all VMs
vim-cmd vmsvc/getallvms
# Power operations
vim-cmd vmsvc/power.on <vmid>
vim-cmd vmsvc/power.off <vmid>
vim-cmd vmsvc/power.shutdown <vmid> # Graceful (needs VMware Tools)
vim-cmd vmsvc/power.reboot <vmid>
# Get VM information
vim-cmd vmsvc/get.summary <vmid>
vim-cmd vmsvc/power.getstate <vmid>
# Snapshots
vim-cmd vmsvc/snapshot.create <vmid> "Before Update" "Pre-patch snapshot"
vim-cmd vmsvc/snapshot.get <vmid>
vim-cmd vmsvc/snapshot.revert <vmid>
vim-cmd vmsvc/snapshot.removeall <vmid>
VM Registration
# Register existing VM
vim-cmd solo/registervm /vmfs/volumes/datastore1/myvm/myvm.vmx
# Unregister VM (keeps files)
vim-cmd vmsvc/unregister <vmid>
Virtual Networking
ESXi supports two types of virtual switches:
- Standard vSwitch (vSS) β Per-host virtual switch, configured individually on each ESXi host
- Distributed vSwitch (vDS) β Cluster-wide virtual switch managed by vCenter (Enterprise Plus license)
# Network management
esxcli network nic list # List physical NICs
esxcli network vswitch standard list # List vSwitches
esxcli network vswitch standard add --vswitch-name=vSwitch1
esxcli network vswitch standard portgroup list # List port groups
esxcli network ip interface list # VMkernel interfaces
esxcli network ip dns server list # DNS servers
esxcli network ip route ipv4 list # Routing table
esxcli network firewall get # Firewall status
esxcli network firewall ruleset list # Firewall rules
Storage Management
# Storage
esxcli storage filesystem list # List datastores
esxcli storage core device list # List storage devices
esxcli storage nmp device list # Multipath info
# Virtual disk operations
vmkfstools -c 50G /vmfs/volumes/ds1/disk.vmdk # Create 50GB disk
vmkfstools -i source.vmdk dest.vmdk -d thin # Clone as thin
vmkfstools -X 100G /vmfs/volumes/ds1/disk.vmdk # Extend to 100GB
vmkfstools -k /vmfs/volumes/ds1/disk.vmdk dest.vmdk # Convert thin to thick
vCenter Server
vCenter Server is the centralized management platform for vSphere environments. It provides:
- vMotion β Live migration of running VMs between hosts with zero downtime
- Storage vMotion β Live migration of VM storage between datastores
- DRS (Distributed Resource Scheduler) β Automatic VM placement and load balancing
- HA (High Availability) β Automatic VM restart on healthy hosts after a failure
- FT (Fault Tolerance) β Real-time VM mirroring for zero-downtime failover
- Content Library β Centralized repository for VM templates and ISOs
Advanced Features
Host Maintenance
# System management
esxcli system version get # ESXi version
esxcli system hostname get # Hostname info
esxcli hardware cpu list # CPU details
esxcli hardware memory get # Memory info
# Maintenance mode
esxcli system maintenanceMode set --enable true # Enter maintenance
esxcli system maintenanceMode set --enable false # Exit maintenance
# Patching
esxcli software vib list # List installed VIBs
esxcli software vib install -d /path/patch.zip # Install patch
esxcli software profile get # Current image profile
Best Practices
- Always install VMware Tools β Significantly improves VM performance and enables graceful shutdown
- Use thin provisioning for non-critical workloads to save storage
- Implement vSphere HA β Protects against host failures
- Regular snapshots before patching β But don't keep snapshots long-term (performance impact)
- Monitor with vCenter alarms β Set up alerts for CPU, memory, storage thresholds
- Keep ESXi patched β Use VMware Update Manager for automated patching
- Separate management network β Use a dedicated VLAN for ESXi management traffic
- Enable lockdown mode β Restrict direct host access when managed by vCenter
π₯ Download the VMware ESXi Cheat Sheet
All esxcli, vim-cmd, and vmkfstools commands in a printable PDF.
Download Free PDF β