{
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-17",
  "advantages": [],
  "limitations": [],
  "slug": "qcow2",
  "term": "QCOW2",
  "aliases": [
    "QEMU copy-on-write version 2"
  ],
  "definition": "QCOW2 is a virtual disk image format that maps guest clusters to stored data, explicit zeros or data inherited from a backing file.",
  "note": "Mapping: guest-visible capacity and host file allocation are distinct. In the standard cluster mapping, an unallocated region can inherit backing data, while an explicit zero cluster masks that data. Reads beyond the end of an existing backing file return zeros. [qcow2-format]\n\nVerification: Hesela changed one stored payload byte without changing allocation metadata; QEMU 8.2.2 still completed its consistency check successfully. The changed byte was detected by a full export and comparison against the known baseline. This is a controlled example, not a general claim that the checker misses every corruption. [hesela-qcow2]\n\nPreservation: identify required backing files as well as the overlay. A top-file hash alone does not identify the entire virtual disk's contents. [libvirt-chain]\n\nExternal payload: a QCOW2 file may keep its guest data in a separate external data file, even without a backing image. Preserve that dependency and its effective opening configuration. [qcow2-format]\n\nTracking metadata: persistent dirty bitmaps are separate from guest payload mappings. Their in_use state can signal outdated change records despite well-formed bitmap metadata. [qcow2-bitmaps-101]",
  "related": [
    "qcow2-backing-chain",
    "copy-on-write",
    "snapshot",
    "backup-verification",
    "qcow2-external-data-file",
    "fast-virtual-disk",
    "reflink",
    "changed-block-tracking",
    "dirty-bitmap",
    "copy-on-read",
    "virtio-blk",
    "virtio-scsi"
  ],
  "citations": [
    {
      "id": "qcow2-format",
      "title": "QEMU 8.2.2: QCOW2 image file format, cluster mapping and zero clusters",
      "url": "https://github.com/qemu/qemu/blob/v8.2.2/docs/interop/qcow2.txt",
      "accessed": "2026-10-18"
    },
    {
      "id": "libvirt-chain",
      "title": "libvirt: disk image chains, backing formats and relocation",
      "url": "https://libvirt.org/kbase/backing_chains.html",
      "accessed": "2026-10-18"
    },
    {
      "id": "hesela-qcow2",
      "title": "Hesela: QCOW2 dependency and verification observations",
      "url": "https://hesela.dev/datasets/qcow2-dependency-observations/",
      "accessed": "2026-10-18"
    },
    {
      "id": "qcow2-bitmaps-101",
      "title": "QEMU v10.1.0 QCOW2 format: bitmap directory and dirty tracking bitmaps",
      "url": "https://github.com/qemu/qemu/blob/v10.1.0/docs/interop/qcow2.rst",
      "accessed": "2026-10-28"
    }
  ]
}
