Use this topic when the symptom or planned change has been narrowed to KVM / QEMU → libvirtd. Establish effective host/runtime state before changing configuration.
libvirtd
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.
1. libvirtd (or modular virtqemud, virtnetworkd, virtstoraged) runs the management API.
2. Restarting doesn't stop VMs.
3. Socket activation in newer distros.
4. Logs show API errors.
5. Check permissions/polkit for users.
virsh/virt-manager → libvirt daemon → QEMU
Context & applicabilityCommon mistakes · platform/version boundaries
A healthy libvirt daemon shows a management entry point, but it does not show hypervisor, guest or workload health, and daemon naming varies by deployment.
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
Client/virsh → libvirt socket → libvirtd or modular daemon → QEMU driver → QEMU process/domain operation
Step 2 Common mistakes Narrow the fault
- Restarting libvirtd and expecting VMs to stop (they keep running).
- Mixing monolithic and modular daemons.
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.
- 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.
systemctl status libvirtd virtqemud— monolithic or modular daemonsjournalctl -u libvirtd -u virtqemud --since -1h— errorsvirsh -c qemu:///system version— daemon reachable
ReferenceWhy it matters1 section · depth on demand
In depth
libvirtd is the daemon serving the libvirt API. Newer distributions split it into modular daemons (virtqemud, virtnetworkd, virtstoraged, virtlogd…), activated by systemd sockets.
systemctl status libvirtd virtqemud
virsh uri
journalctl -u virtqemud -n 50
ls /var/log/libvirt/qemu/vm1.log # per-VM QEMU log with command line and errors
Running VMs survive a libvirtd restart; restart the daemon if virsh hangs, but investigate stuck storage pools first.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A healthy libvirt daemon shows a management entry point, but it does not show hypervisor, guest or workload health, and daemon naming varies by deployment.
Reference
systemctl status libvirtd # or virtqemud on modular setups
journalctl -u libvirtd -n 50
virsh -c qemu:///system list
Newer distributions use modular daemons (virtqemud, virtnetworkd, virtstoraged).
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 KVM / QEMU → libvirtd. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.qemu.org/docs/master/ · 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
KVM / QEMU → libvirtd reference map
Fast operational boundaries and evidence limits for KVM / QEMU → libvirtd.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU → libvirtd definition or configuration is present | Configured state does not prove runtime behavior |
| Runtime | Relevant KVM/QEMU/libvirt object or process is active without matching errors | Runtime state does not prove dependencies or guest outcome |
| Dependency | Host CPU/memory, storage, network or device backend required by this path is healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after the change or observation | Required for end-to-end closure |