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.
KVM/QEMU Virtual Machine
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.
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).
domain XML → QEMU process → guest
Context & applicabilityCommon mistakes · platform/version boundaries
An active domain is evidence of host-side runtime state only; guest readiness and application acceptance require separate evidence.
Operational reference
Fast context before you go deeper.
virsh dominfo <vm>Primary 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
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 · 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.
- Defined domain ≠ running VM.
- Running QEMU process ≠ guest booted.
- Guest agent responsive ≠ application healthy.
- Clean shutdown request ≠ confirmed guest shutdown.
virsh dumpxml <vm>— domain XMLvirsh dominfo <vm>— summaryvirsh 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.
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 → Virtual Machine. 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 → Virtual Machine reference map
Fast operational boundaries and evidence limits for KVM / QEMU → Virtual Machine.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU → Virtual Machine 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 |