Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

QCOW2 · Virtual Storage

Direct answer

QCOW2 is a QEMU Copy-On-Write virtual disk image format that supports sparse allocation and metadata-driven features such as backing files and snapshots, depending on tooling and usage.

When to use this

Use it when working with QEMU/KVM image-backed disks and when allocation, backing chains or metadata introduce a separate troubleshooting boundary.

First 30 seconds

1. QCOW2: thin, snapshots, backing files, compression.

2. Slightly slower than raw.

3. Use preallocation=metadata for speed.

4. Check after crashes.

5. Avoid long backing chains.

Operational verification

qcow2 file → QEMU block layer → guest

Evidence · next step

Verify backing-chain integrity, free-space headroom and workload latency.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show enough future capacity, snapshot recoverability, optimal performance or host filesystem health.

Next check: Verify backing-chain integrity, free-space headroom and workload latency.

Platform / version applicability
virtualization-storage
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.

Platformvirtualization-storage
Scope / prerequisiteUse it when working with QEMU/KVM image-backed disks and when allocation, backing chains or metadata introduce a separa…
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.

1 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

VM attachment → QCOW2 metadata → backing chain → host allocation → backend I/O → guest data verification

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
  • QCOW2 logical size can be much larger than its current physical file allocation.
  • A QCOW2 backing file chain is a dependency chain; missing or mismatched parents can break access.
  • Internal/external snapshot semantics are separate from ordinary filesystem backups.
  • QCOW2 feature overhead and performance depend on workload, cache mode, host filesystem and backend.
Key checks
  • qemu-img info <disk.qcow2> — format, snapshots, backing
  • qemu-img check -r leaks <disk.qcow2> — repair leaks (offline)
  • qemu-img snapshot -l <disk.qcow2> — internal snapshots
ReferenceWhy it matters1 section · depth on demand

Internals and state

Local intent: QCOW2 is a QEMU Copy-On-Write virtual disk image format that supports sparse allocation and metadata-driven features such as backing files and snapshots, depending on tooling and usage.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

QCOW2 file opens ≠ backing chain safe ≠ enough growth capacity ≠ guest filesystem healthy.

In depth

qcow2 is QEMU's native image: thin allocation in clusters (default 64 KiB), L1/L2 lookup tables, refcounts, internal snapshots and backing files. Tuning for performance:

qemu-img create -f qcow2 -o cluster_size=64k,preallocation=metadata,lazy_refcounts=on vm.qcow2 100G
# libvirt: <driver name='qemu' type='qcow2' cache='none' io='native' discard='unmap'/>

Large qcow2 images need a big enough L2 cache in QEMU (l2-cache-size) to avoid metadata lookups on random I/O; recent QEMU sizes it automatically for images up to tens of TB.

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 docvirtualization-storage current

Authoritative/upstream documentation reviewed for bounded claims in Virtual Storage → QCOW2. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/storage.html · 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
qcow2qemu disk imagecopy on write disk imageqcow backing file
Embedded reference data

Quick lookup tables

Virtual Storage → QCOW2 reference map

Fast virtual-storage boundaries for Virtual Storage → QCOW2.

BoundaryMeaningEvidence limit
Virtual sizeguest capacityLogical
Allocationsparse clustersPhysical use
Backing fileoptional parentDependency
Metadatamapping/featuresImage integrity
Confirmation

Confirm action

Continue?