Use this when maximum disk performance matters on KVM.
RAW
RAW is a plain disk image with no metadata, one byte on disk per byte in the guest. It gives the best performance and simplicity for KVM, but snapshots depend on the underlying file system or LVM.
1. raw: fastest file format.
2. Snapshots via storage (LVM/ZFS/RBD).
3. Sparse or preallocated.
4. Simple recovery.
5. Use on block backends.
raw → guest disk
Context & applicabilityCommon mistakes · platform/version boundaries
- Copying sparse RAW files with tools that do not preserve sparseness (use
cp --sparse=alwaysorrsync -S). - Expecting snapshots on RAW files (use LVM/ZFS/Ceph snapshots instead).
- Resizing without the guest file system following.
Operational reference
Fast context before you go deeper.
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.
- No metadata overhead.
- No native snapshots.
- Use LVM or file system for snapshots.
qemu-img info <disk.raw>— rawdu -h --apparent-size <disk>; du -h <disk>— sparseqemu-img create -f raw -o preallocation=falloc <disk> 50G— preallocate
ReferenceHow it works1 section · depth on demand
RAW vs QCOW2
| RAW | QCOW2 | |
|---|---|---|
| Performance | Best | Slightly lower |
| Thin provisioning | Via sparse files | Built in |
| Snapshots / backing files | No (use storage layer) | Yes |
| Compression, encryption | No | Optional |
Use RAW on block storage that already provides snapshots (LVM-thin, ZFS, Ceph). qemu-img convert -O raw converts.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A raw image is a plain byte-for-byte disk with no metadata: fastest and simplest, sparse on filesystems that support holes, but no snapshots or backing files in the format itself.
qemu-img create -f raw vm.raw 100G # sparse file
du -h --apparent-size vm.raw; du -h vm.raw
qemu-img convert -f qcow2 -O raw vm.qcow2 vm.raw
Snapshots for raw disks come from the storage layer underneath (LVM-thin, ZFS, Ceph RBD), which is how Proxmox handles them.
ReferenceConfiguration & state1 section · depth on demand
Commands
qemu-img create -f raw disk.raw 100G
qemu-img convert -p -f qcow2 -O raw disk.qcow2 disk.raw
qemu-img info disk.raw
Documented example, not captured output. RAW files are sparse on most file systems; du -h shows actual usage while ls -lh shows the full size.
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 Hypervisor Storage → KVM Storage → RAW. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/chapter-pvesm.html · confidence 94%