Use this topic when the symptom or planned change has been narrowed to KVM / QEMU. Establish effective host/runtime state before changing configuration.
KVM / QEMU
Separate the stack into Linux host/kernel, KVM accelerator, QEMU process and machine/device model, libvirt management state, backing storage/network/device resources, guest OS and workload.
1. KVM (kernel) + QEMU (devices) + libvirt (management).
2. Use virtio devices and qemu-guest-agent.
3. Store XML in version control or use virsh/virt-install.
4. Networks and pools are libvirt objects.
5. Logs in /var/log/libvirt/qemu/.
libvirt API → QEMU process → KVM → guest
Context & applicabilityCommon mistakes · platform/version boundaries
It does not show root cause from one status line, process state or log message, and it does not show unobserved guest/application or external dependency health. A running QEMU process or active libvirt domain shows only that a virtualization runtime exists, but it does not show KVM acceleration, guest boot, I/O paths, networking or application health.
Next check: Continue from the first failing step into the responsible KVM/QEMU or specialist branch, then verify the original workload after a minimal controlled change.
Operational reference
Fast context before you go deeper.
virshPrimary Commands
Configuration and operational commands for this Topic.
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
Hardware/firmware → Linux kernel/KVM → QEMU process/machine model → libvirt domain state → virtual devices/backends → guest OS → workload
Step 2 Operational verification Verify boundary
KVM/QEMU virtualization concepts, VM process state, devices and host integration.
Fast verification
- Use
virsh list,virsh dominfo,virsh domiflistand storage-pool queries to establish VM state.
- Check the QEMU/libvirt logs for the specific domain operation.
- Separate libvirt definition, QEMU process, host bridge and backing-storage failures.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Time-correlated configuration, runtime, host and guest evidence is collected for KVM / QEMU and its dependent path.
command output · Documented exampleKVM & QEMU local healthy-state checkpointThe expected object, scope, state and counters match a controlled test.
Subtopics
Go one level deeper into this subject.
KVM (Kernel-based Virtual Machine) is the Linux kernel virtualization facility that exposes hardware virtualization capabilities to userspace virtual machine monitors such as QEMU.
Subtopic QEMUQEMU is a machine emulator and virtualizer that can emulate complete systems and devices, and on Linux can use KVM as an accelerator for hardware-assisted virtualization.
Subtopic libvirtlibvirt is a virtualization management API and abstraction layer that defines and manages domains, networks, storage pools and host capabilities across drivers including QEMU/KVM.
Subtopic libvirtdlibvirtd is the traditional libvirt daemon that brokers management requests to virtualization drivers; modern distributions may use modular per-driver daemons instead.
Subtopic virt-managervirt-manager is a graphical libvirt client used to create, inspect and operate virtual machines and related resources without being the virtualization engine itself.
Subtopic KVM/QEMU Virtual MachineA KVM/QEMU virtual machine is typically a QEMU process whose virtual hardware and runtime are accelerated by KVM and often described/managed as a libvirt domain.
Subtopic QCOW2QCOW2 is QEMU’s copy-on-write disk image format supporting sparse allocation and features such as internal snapshots, compression and backing files, with metadata overhead and chain considerations.
Subtopic RAWRAW storage presents guest sectors with little image-format metadata and can be backed by a regular file or block device, trading format features for a simpler mapping.
Subtopic VirtIOVirtIO is a standardized paravirtualized device framework used by QEMU/KVM to expose efficient virtual block, network and other devices to guests with cooperating guest drivers.
Subtopic Linux BridgeA Linux bridge can connect QEMU/libvirt virtual NIC tap interfaces to host interfaces and other virtual ports, providing Layer 2 forwarding for KVM guests.
Subtopic Open vSwitchOpen vSwitch can provide programmable virtual switching for KVM/QEMU guests through tap interfaces and libvirt integration, with bridges, ports, VLANs and flow processing.
Subtopic NAT NetworkA libvirt/QEMU NAT network typically places guests on a private virtual subnet and translates outbound traffic through the host while optionally providing DHCP/DNS services.
Subtopic PCI PassthroughPCI passthrough assigns a host PCI function directly to a KVM/QEMU guest, normally through VFIO and an IOMMU, reducing emulation while increasing hardware, isolation and migration constraints.
Subtopic VFIOVFIO is the Linux userspace device-assignment framework commonly used by QEMU/KVM to access IOMMU-protected devices for secure PCI passthrough.
Subtopic Live MigrationKVM/QEMU live migration transfers a running VM’s execution state to a destination QEMU instance while attempting to minimize guest downtime; storage and device state may require separate handling.
Subtopic KVM TroubleshootingKVM troubleshooting is cross-layer fault isolation across host firmware/CPU, Linux kernel/KVM, QEMU process state, libvirt control plane, virtual devices/backends, guest OS and workload.
- KVM is not the whole virtual machine manager; it is a Linux kernel virtualization facility used by userspace such as QEMU.
- QEMU can run with KVM acceleration or with software emulation such as TCG; QEMU running does not by itself prove KVM acceleration is active.
- libvirt domain state is management-plane state and does not prove guest or application health.
- A VM problem can originate below QEMU in host CPU, memory, storage, networking, kernel or device assignment.
virsh version— libvirt and QEMU versionsvirsh list --all— domainsvirsh capabilities | head -30— host capabilities
ReferenceWhat it is2 sections · depth on demand
Operational scope
KVM/QEMU virtualization concepts, VM process state, devices and host integration.
What it is
KVM/QEMU virtualization concepts, VM process state, devices and host integration.
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use KVM & QEMU when the problem concerns hypervisor, VM/container lifecycle, virtual networking, cluster, storage or capacity.
Why it matters operationally
The useful outcome is not simply knowing a definition; it is being able to decide whether KVM & QEMU is healthy, misconfigured, missing, or only a symptom of a failure somewhere else.
ReferenceHow it works1 section · depth on demand
How it works
KVM/QEMU virtualization concepts, VM process state, devices and host integration.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A running QEMU process or active libvirt domain shows only that a virtualization runtime exists, but it does not show KVM acceleration, guest boot, I/O paths, networking or application health.
Key operational limits
- Snapshots/checkpoints are not independent backups
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.qemu.org/docs/master/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
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 evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | virsh list --all | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | guest workload → virtual device/switch/disk → hypervisor process → cluster ownership/quorum → physical network/storage → application outcome | application success |
KVM / QEMU reference map
Fast operational boundaries and evidence limits for KVM / QEMU.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU 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 |