Pcornel
Virtualization · Virtual Storage

VirtIO Block

Cheat sheet · https://pcornel.dk/topic.php?topic=3515

Back to the Topic

Answer

VirtIO Block is a paravirtualized block-device interface used by virtualization stacks such as QEMU/KVM to present efficient guest block I/O through a virtio driver rather than emulating a physical disk controller protocol.

Remember

  • VirtIO Block is a guest-facing I/O interface, not a disk image format or storage backend.
  • Guest driver presence and feature negotiation are prerequisites for correct operation.
  • Virtio can reduce emulation overhead but does not remove host/backend latency.
  • A virtio device present in the guest does not prove the backing image/pool is healthy.

First checks

  • lsblk -d -o NAME,MODEL — vda devices = virtio-blk
  • virsh dumpxml <vm> | grep "bus='virtio'" — libvirt virtio-blk
  • qm config <vmid> | grep virtio — Proxmox virtio disks

Verify in this order

guest virtio-blk → QEMU → storage

Where it usually breaks

First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.

Virtual Storage → VirtIO Block reference map

BoundaryMeaningEvidence limit
Guest drivervirtio-blkFront-end
Virtqueue/deviceparavirtual transportVirtualization boundary
Backend mappingimage/block objectHost mapping
Storage backendactual storageLatency/persistence

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3515

Confirmation

Confirm action

Continue?