Use it when the symptom is “VM Is Slow”: work through the layers in order and stop at the first one that fails.
VM Is Slow
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.
1. Slow VM: find the bottleneck — CPU (ready/steal), memory (ballooning/swap), storage (latency), network.
2. Compare guest and host metrics.
3. Check recent changes.
4. Check snapshots.
5. Fix the biggest wait.
user slowness → guest metrics → host contention → resource
Context & applicabilityCommon mistakes · platform/version boundaries
It does not show root cause from one status, counter, alert or log line, and it does not show unobserved adjacent or end-to-end health. “Slow” is not a resource diagnosis; the first step where demand waits, queues, retries or is throttled must be measured before tuning.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Workload latency → guest demand → vCPU/memory/device queues → host contention → storage/network backend → external dependency → response
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
vmstat 1— steal/IO wait in guestesxtop / virt-top— host-side contentioniostat -x 1— storage latency
ReferenceWhy it matters1 section · depth on demand
Method
"The VM is slow" — measure before changing anything:
| Layer | Metric | Points to |
|---|---|---|
| Guest | CPU, memory, disk queue, app logs | Application or sizing |
| VM CPU | Ready/steal, co-stop, limits | Host contention or limits |
| VM memory | Balloon, swap | Host memory pressure |
| VM disk | Latency (GAVG/DAVG), IOPS limits | Storage |
| VM network | Drops, retransmits | vNIC/vSwitch/physical |
| Snapshots | Old/large snapshots | Chain overhead |
Compare with a baseline from monitoring; "slow" without numbers is not yet a diagnosis.
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
“Slow” is not a resource diagnosis; the first step where demand waits, queues, retries or is throttled must be measured before tuning.
In depth
A layered method for "the VM is slow"
1. Define slow: which operation, how slow, since when, compared with what.
2. Guest view: CPU, memory, disk, network inside the VM.
3. Virtual hardware: device models, drivers, guest agent, vCPU/memory sizing.
4. Host view: contention on CPU, RAM, storage, network for that VM.
5. Shared infrastructure: storage array/Ceph, network, other VMs at the same time.
Guest vs. host at the same moment
| Inside the guest | On the host | Interpretation |
|---|---|---|
| CPU high, steal low | VM's vCPU threads busy | Guest workload |
| CPU moderate, steal high | Host run queue long | Host CPU contention |
Disk await high | Same latency on host block device | Storage is slow |
Disk await high | Host latency low | Virtual disk path: cache mode, IDE/SATA emulation, missing iothread |
| Swapping | Host has free RAM | VM sized too small |
| Ballooned memory, swapping | Host RAM pressure | Host overcommitted |
Host-side per-VM data
# virsh domstats web01 --vcpu --block --interface --balloon
vcpu.0.time=... vcpu.0.wait=...
block.0.rd.times=... block.0.wr.times=... block.0.rd.reqs=...
balloon.current=8388608 balloon.maximum=16777216
virsh domstats (documented in the virsh manual) gives cumulative counters; sample twice and divide by the interval. block.N.wr.times / wr.reqs is average write latency in nanoseconds; vcpu.N.wait is CPU waiting time; balloon.current < maximum shows ballooning.
Typical virtualisation-specific fixes
| Finding | Fix |
|---|---|
| IDE/SATA or e1000 devices | VirtIO SCSI / VirtIO NIC with drivers |
cache=none missing on shared storage with heavy writes, or writeback without UPS | Use defaults appropriate to the storage (Proxmox default none) |
| No iothread for busy disks | Enable iothread (VirtIO SCSI single) |
CPU type kvm64/qemu64 | Modern model to expose AES-NI, AVX |
| Time drift, slow timers in Windows | Hyper-V enlightenments (Proxmox ostype win*) |
Change one thing at a time and measure the same operation again.
*The libvirt CPU, disk, interface and balloon metrics above are illustrative examples, not captured from a lab or production host.*
Order of checks
1. Inside the guest: which resource is busy?
2. Host: CPU ready/steal, ballooning/swap, disk latency, NIC drops.
3. Limits on the VM.
4. Snapshots and backup jobs running.
5. Other VMs competing on the same host/datastore.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization Troubleshooting → VM Is Slow. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtualization Troubleshooting → VM Is Slow troubleshooting map
Fast fault-isolation boundaries and proof limits for Virtualization Troubleshooting → VM Is Slow.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Symptom/scope | Exact failing test, affected VM/host/cluster and incident time are defined | Symptom classification does not identify root cause |
| Observed boundary | Configuration, runtime and counters/logs for this Virtualization Troubleshooting → VM Is Slow boundary are time-correlated | One healthy or failed status does not prove adjacent dependencies |
| Adjacent dependency | The next host, storage, network, device, guest or cluster dependency is tested independently | Local success does not prove end-to-end health |
| Verification | The original workload test succeeds after one controlled change and remains healthy in regression checks | Temporary recovery alone is not durable proof |