Pcornel
Virtualization · Virtualization Troubleshooting

VM Is Slow

Cheat sheet · https://pcornel.dk/topic.php?topic=3816

Back to the Topic

Answer

Translate “slow” into a measured bottleneck: workload transaction → guest CPU/memory/I/O/network demand → virtual scheduling/device queues → host resource contention → backend dependency → response time.

Remember

  • High utilization ≠ bottleneck; a resource can be busy while another boundary determines response time.
  • Low host average CPU ≠ low VM scheduling delay when contention is localized to cores, NUMA nodes or limits.
  • Guest disk busy ≠ physical storage bottleneck; latency can arise in virtual queues, datastore, network or backend media.
  • A temporary improvement after restart ≠ durable fix unless the original workload and contention condition are reproduced.

First checks

  • vmstat 1 — steal/IO wait in guest
  • esxtop / virt-top — host-side contention
  • iostat -x 1 — storage latency

Commands

virsh domstats
virsh

Verify in this order

user slowness → guest metrics → host contention → resource

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.

Virtualization Troubleshooting → VM Is Slow troubleshooting map

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting → VM Is Slow boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary recovery alone is not durable proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3816

Confirmation

Confirm action

Continue?