Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

KVM/QEMU Virtual Machine

Direct answer

Distinguish definition, QEMU process, vCPU/memory execution, virtual devices/backends, guest boot state and application state. Each layer can be healthy while the next fails.

When to use this

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

First 30 seconds

1. A libvirt domain = XML definition + disks + running QEMU.

2. Use virsh edit for changes.

3. Autostart: virsh autostart <vm>.

4. Back up XML with disks.

5. Undefine removes definition (and disks with flag).

Operational verification

domain XML → QEMU process → guest

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

An active domain is evidence of host-side runtime state only; guest readiness and application acceptance require separate evidence.

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 · Hyper-V / Proxmox VE / KVM-QEMU
Key commandvirsh dominfo <vm>
Scope / prerequisiteUse this topic when the symptom or planned change has been narrowed to KVM / QEMU → Virtual Machine. Establish effectiv…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
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.

3 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

Persistent definition → QEMU process → KVM vCPU/memory → virtual device backends → guest firmware/OS → workload

Step 2 Effective-state and workload closure Verify boundary

Local intent: 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.

Step 3 Branching troubleshooting Narrow the fault

Path: Virtualization → KVM / QEMU → Virtual Machine. Local intent: 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.

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
  • Defined domain ≠ running VM.
  • Running QEMU process ≠ guest booted.
  • Guest agent responsive ≠ application healthy.
  • Clean shutdown request ≠ confirmed guest shutdown.
Key checks
  • virsh dumpxml <vm> — domain XML
  • virsh dominfo <vm> — summary
  • virsh domstate <vm> --reason — state
ReferenceWhy it matters1 section · depth on demand

Internals and state

Local intent: 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.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

An active domain is evidence of host-side runtime state only; guest readiness and application acceptance require separate evidence.

In depth

A libvirt domain XML defines the VM. Important elements:

<domain type='kvm'>
  <name>web01</name>
  <memory unit='GiB'>4</memory>
  <vcpu placement='static'>2</vcpu>
  <os firmware='efi'><type arch='x86_64' machine='q35'>hvm</type></os>
  <cpu mode='host-model'/>
  <devices>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none' io='native' discard='unmap'/>
      <source file='/var/lib/libvirt/images/web01.qcow2'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <interface type='bridge'><source bridge='br0'/><model type='virtio'/></interface>
    <channel type='unix'><target type='virtio' name='org.qemu.guest_agent.0'/></channel>
  </devices>
</domain>

Documented example, not captured output.

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 → Virtual Machine. 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
kvm vmqemu vmlibvirt domainkvm virtual machine
Embedded reference data

Quick lookup tables

KVM / QEMU → Virtual Machine reference map

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

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