Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

libvirtd

Direct 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.

When to use this

Use this topic when the symptom or planned change has been narrowed to KVM / QEMU → libvirtd. Establish effective host/runtime state before changing configuration.

First 30 seconds

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.

Operational verification

virsh/virt-manager → libvirt daemon → QEMU

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
kvm-qemu
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformkvm-qemu
Scope / prerequisiteUse this topic when the symptom or planned change has been narrowed to KVM / QEMU → libvirtd. Establish effective host/…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • systemctl status libvirtd virtqemud — monolithic or modular daemons
  • journalctl -u libvirtd -u virtqemud --since -1h — errors
  • virsh -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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor dockvm-qemu current

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%
Terminology layer

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.

Aliases that resolve here
libvirtd servicevirtqemudlibvirt daemonlibvirt socket
Embedded reference data

Quick lookup tables

KVM / QEMU → libvirtd reference map

Fast operational boundaries and evidence limits for KVM / QEMU → libvirtd.

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
Confirmation

Confirm action

Continue?