Pcornel
Virtualization · KVM / QEMU

libvirtd

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

Back to the Topic

Answer

The daemon is a management-plane broker between clients and libvirt drivers. Service layout is distribution/libvirt-version dependent, so daemon health must be interpreted in the context of the deployed architecture.

Remember

  • libvirtd running ≠ QEMU VM healthy.
  • libvirtd absent ≠ libvirt broken on systems using modular daemons.
  • Socket reachable ≠ authorization for the requested operation.
  • Restarting management daemons can affect management access without necessarily stopping already-running QEMU guests.

First checks

  • systemctl status libvirtd virtqemud — monolithic or modular daemons
  • journalctl -u libvirtd -u virtqemud --since -1h — errors
  • virsh -c qemu:///system version — daemon reachable

Commands

virsh

Verify in this order

virsh/virt-manager → libvirt daemon → QEMU

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.

KVM / QEMU → libvirtd reference map

BoundaryWhat to verifyEvidence limit
Definition/configExpected KVM / QEMU → libvirtd definition or configuration is presentConfigured state does not prove runtime behavior
RuntimeRelevant KVM/QEMU/libvirt object or process is active without matching errorsRuntime state does not prove dependencies or guest outcome
DependencyHost CPU/memory, storage, network or device backend required by this path is healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after the change or observationRequired 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=3792

Confirmation

Confirm action

Continue?