Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

RAW

Direct answer

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.

When to use this

Use this when maximum disk performance matters on KVM.

First 30 seconds

1. raw: fastest file format.

2. Snapshots via storage (LVM/ZFS/RBD).

3. Sparse or preallocated.

4. Simple recovery.

5. Use on block backends.

Operational verification

raw → guest disk

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Copying sparse RAW files with tools that do not preserve sparseness (use cp --sparse=always or rsync -S).
  • Expecting snapshots on RAW files (use LVM/ZFS/Ceph snapshots instead).
  • Resizing without the guest file system following.
Platform / version applicability
Hypervisor 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.

PlatformHypervisor Storage
Scope / prerequisiteUse this when maximum disk performance matters on KVM.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
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
  • No metadata overhead.
  • No native snapshots.
  • Use LVM or file system for snapshots.
Key checks
  • qemu-img info <disk.raw> — raw
  • du -h --apparent-size <disk>; du -h <disk> — sparse
  • qemu-img create -f raw -o preallocation=falloc <disk> 50G — preallocate
ReferenceHow it works1 section · depth on demand

RAW vs QCOW2

RAWQCOW2
PerformanceBestSlightly lower
Thin provisioningVia sparse filesBuilt in
Snapshots / backing filesNo (use storage layer)Yes
Compression, encryptionNoOptional

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.

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 docHypervisor Storage current

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%
Confirmation

Confirm action

Continue?