Virtualization · KVM / QEMU
RAW
Cheat sheet · https://pcornel.dk/topic.php?topic=3796
Answer
The guest sees a virtual block device while QEMU maps requests to a host file or block backend; simplicity of format does not remove filesystem, device, cache or capacity dependencies.
Remember
- RAW ≠ automatically a physical disk.
- RAW file size ≠ guaranteed physical allocation on sparse host filesystems.
- No QCOW2 metadata ≠ no storage corruption risk.
- Simple format ≠ guaranteed higher workload performance in every stack.
First checks
qemu-img info <disk.raw>— rawqemu-img create -f raw disk.raw 50G— createcp --sparse=always src dst— copy sparse
Commands
virsh snapshot-create-as --disk-only
Verify in this order
raw → guest disk
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
KVM / QEMU → RAW reference map
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU → RAW 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3796