Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

KVM / QEMU

Direct answer

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.

When to use this

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

First 30 seconds

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

Operational verification

libvirt API → QEMU process → KVM → guest

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

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.

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 · KVM / QEMU / libvirt
Key commandvirsh
Scope / prerequisiteUse this topic when the symptom or planned change has been narrowed to KVM / QEMU. Establish effective host/runtime sta…
Reference · 1
What next?3 suggested next steps
Child topics (this level)16
Catalog command links1
Evidence2
On this pageJump to a specific section
Virtualization command reference

Primary Commands

Configuration and operational commands for this Topic.

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

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 domiflist and 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 references

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.

observation · 1command output · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic KVM

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 QEMU

QEMU 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 libvirt

libvirt 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 libvirtd

libvirtd is the traditional libvirt daemon that brokers management requests to virtualization drivers; modern distributions may use modular per-driver daemons instead.

Subtopic virt-manager

virt-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 Machine

A 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 QCOW2

QCOW2 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 RAW

RAW 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 VirtIO

VirtIO 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 Bridge

A 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 vSwitch

Open 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 Network

A 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 Passthrough

PCI 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 VFIO

VFIO is the Linux userspace device-assignment framework commonly used by QEMU/KVM to access IOMMU-protected devices for secure PCI passthrough.

Subtopic Live Migration

KVM/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 Troubleshooting

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

Key points
  • 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.
Key checks
  • virsh version — libvirt and QEMU versions
  • virsh list --all — domains
  • virsh 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
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. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.qemu.org/docs/master/ · confidence 94%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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
kvm & qemukvm qemulinux virtualizationvirtualization kvm & qemuKVM & QEMU troubleshootingqemu kvmlibvirt kvm
Embedded reference data

Quick lookup tables

KVM & QEMU evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?virsh list --allremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?guest workload → virtual device/switch/disk → hypervisor process → cluster ownership/quorum → physical network/storage → application outcomeapplication success

KVM / QEMU reference map

Fast operational boundaries and evidence limits for KVM / QEMU.

BoundaryWhat to verifyEvidence limit
Definition/configExpected KVM / QEMU 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?