Use it when a workload needs direct use of a host-visible block object or when avoiding an image-format layer is an intentional design choice.
Raw Disk
A Raw Disk mapping exposes an underlying block device, LUN, partition or similar host storage object to a VM with little or no disk-image format layer between the virtual device and that backing block resource.
1. Raw device mapping gives a VM a whole physical disk or LUN.
2. Use by-id paths, not /dev/sdX.
3. No hypervisor snapshots.
4. Pins VM to hosts that see the disk.
5. Used for clustering and special apps.
physical disk/LUN → mapped to VM → guest filesystem
Verify fencing/locking, stable device identity, failover behavior and measured performance.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show direct hardware passthrough, exclusive access, multipath resilience or better latency.
Next check: Verify fencing/locking, stable device identity, failover behavior and measured performance.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
raw mapping config → backing device identity → access/ownership → host block path → guest I/O → persistence verification
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.
- Raw mapping is still mediated by the virtualization and host I/O stack unless true device passthrough is used.
- Raw disk is not automatically faster than image-backed storage.
- A raw mapping can reduce image-format features such as snapshots or portability depending on platform.
- Exclusive ownership and fencing requirements must be verified before multiple consumers access the same raw block resource.
lsblk -o NAME,SIZE,SERIAL— raw device on hostqm set <vmid> --scsi1 /dev/disk/by-id/<id>— attach physical disk (Proxmox)Add-VMHardDiskDrive <vm> -DiskNumber <n>— pass-through disk (Hyper-V)
ReferenceWhat it is1 section · depth on demand
When to use raw devices
Raw mapping (RDM on VMware, pass-through disks on Hyper-V, LUN//dev/disk/by-id in KVM) is used for SAN-aware applications, guest clustering with shared disks and very large volumes. You lose snapshots (in physical mode), some backup integrations and easy migration. Use stable device paths (/dev/disk/by-id/...), never /dev/sdX.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Raw ≠ physical passthrough ≠ exclusive ownership ≠ guaranteed performance.
In depth
A raw disk gives the VM direct access to a physical disk, partition or LUN instead of a disk image: RDM (VMware), pass-through disk (Hyper-V), or a block device path in QEMU (/dev/disk/by-id/…).
qm set 120 --scsi1 /dev/disk/by-id/ata-WDC_WD80EFZX-68UW8N0_ABC123
Uses: giving a NAS VM (TrueNAS) whole disks, guest clustering, very large existing LUNs. Downsides: no hypervisor snapshots or image-level backup for that disk, and the VM is tied to the host or LUN. For ZFS inside a VM, passing through the whole HBA is safer than individual disks.
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 Virtual Storage → Raw Disk. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/storage.html · confidence 94%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.
Quick lookup tables
Virtual Storage → Raw Disk reference map
Fast virtual-storage boundaries for Virtual Storage → Raw Disk.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest | virtual block device | Still virtualized |
| Mapping | raw/block binding | No image format layer |
| Host | block path/multipath | Host-managed |
| Backend | device/LUN | Actual media/service |