vSphere Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3788
Answer
vSphere troubleshooting starts from the exact symptom and time, then reads vCenter tasks and events, host logs (vmkernel.log, hostd.log) and the state of storage and networking dependencies before making the smallest change.
Remember
- Alarm/event ≠ root cause.
- vCenter error ≠ vCenter root cause when host/storage/network dependencies failed first.
- VM Powered On ≠ guest/application healthy.
- Temporary recovery after restart ≠ durable fix.
First checks
Get-VIEvent -Start (Get-Date).AddHours(-2) -Types Error,Warning | select CreatedTime,FullFormattedMessage— recent eventstail -100 /var/log/hostd.log; tail -100 /var/log/vmkernel.log (ESXi)— host logsGet-Task | ? State -eq Error— failed tasks
Commands
esxcli network nic list- Operational command for Inspect ESXi physical NIC state. Focus fields: vmnic name, PCI device, driver, link, speed, dup…
esxcli system version getesxcli network ip interface listesxcli system coredump
Verify in this order
symptom → events/tasks → host/VM logs → fix
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
VMware vSphere → vSphere Troubleshooting reference map
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Inventory/config | Expected VMware vSphere → vSphere Troubleshooting object, policy or configuration is present | Configured state does not prove effective runtime behavior |
| Runtime/control plane | Relevant vCenter/ESXi object, service or task state matches the intended condition | Management state does not prove storage/network/guest outcome |
| Dependency/data path | Required compute, storage, network, device and guest dependencies are healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after observation or change | Required for end-to-end closure |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3788