Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

RAW · Virtual Storage

Direct answer

RAW is a virtual disk image representation with a simple byte-for-byte block layout and little or no image-format metadata beyond the storage object that contains the blocks.

When to use this

Use it when simplicity, direct block layout or compatibility with block-backed workflows is desired and advanced image-format metadata features are unnecessary.

First 30 seconds

1. RAW: simplest and fastest file format.

2. No internal snapshots — use storage snapshots.

3. Can be sparse on filesystems.

4. Best on LVM/ZFS/RBD.

5. Copy with --sparse=always.

Operational verification

raw file/volume → guest disk

Evidence · next step

Verify backing allocation, capacity headroom and required protection features at adjacent layers.

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

It does not show direct hardware access, full allocation, better performance or independent snapshot capability.

Next check: Verify backing allocation, capacity headroom and required protection features at adjacent layers.

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 simplicity, direct block layout or compatibility with block-backed workflows is desired and advanced image-…
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 → raw object identity → offset/capacity mapping → host/backend I/O → guest 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
  • RAW image format is not the same as raw physical device passthrough.
  • A sparse RAW file can still be thin at the host filesystem layer even though the image format itself is simple.
  • RAW does not inherently provide snapshots, compression or checksums as image-format features.
  • Simple format does not guarantee better end-to-end performance.
Key checks
  • qemu-img info <disk.raw> — raw format
  • du -h --apparent-size <disk.raw>; du -h <disk.raw> — sparse vs apparent size
  • fallocate -l 50G <disk.raw> — preallocate
ReferenceImportant terms & boundaries3 sections · depth on demand

What this shows and what it does not

RAW format ≠ raw hardware passthrough ≠ fully allocated ≠ faster.

When RAW fits

  • Best raw performance on KVM with no format overhead.
  • On LVM, ZFS zvols or Ceph RBD, where the storage layer provides snapshots.
  • Not on plain file systems if you need snapshots — use QCOW2 there.

In depth

Raw images have no metadata: block N of the file is block N of the disk. They are the fastest file format, simple to inspect and convert, and the native format for block-backed storage (LVM, zvol, RBD) in Proxmox.

qemu-img create -f raw vm.raw 100G            # sparse on most filesystems
losetup -fP --show vm.raw; lsblk /dev/loop0   # inspect partitions offline

Without format-level snapshots, raw files rely on the storage layer (ZFS, LVM-thin, Btrfs reflinks, NAS snapshots) for point-in-time copies.

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 → RAW. 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
raw imageraw virtual diskraw disk formatflat disk image
Embedded reference data

Quick lookup tables

Virtual Storage → RAW reference map

Fast virtual-storage boundaries for Virtual Storage → RAW.

BoundaryMeaningEvidence limit
Formatsimple block layoutMinimal metadata
File-backedmay be sparseFilesystem controls allocation
Block-backeddevice/LV objectNo file layer
Featuresexternal mechanismsSnapshots etc. separate
Confirmation

Confirm action

Continue?