Pcornel
Virtualization · VM Hardware › Storage Controllers

NVMe

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

Back to the Topic

Answer

A hypervisor can implement a virtual NVMe controller backed by a virtual disk on any supported backend. This differs from PCIe/NVMe passthrough where the guest controls a physical device more directly.

Remember

  • Virtual NVMe does not prove physical NVMe backing.
  • Guest needs an NVMe-capable driver/OS stack.
  • Virtual NVMe and PCI passthrough have different isolation/migration/management properties.
  • Backend latency can dominate regardless of guest controller name.

First checks

  • lsblk -d -o NAME,TRAN — guest sees nvme
  • virsh dumpxml <vm> | grep nvme — NVMe controller
  • Get-VMHardDiskDrive <vm> — Hyper-V (SCSI, NVMe via DDA)

Verify in this order

guest NVMe driver → virtual/physical NVMe → storage

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.

VM Hardware → Storage Controllers → NVMe reference map

BoundaryMeaningEvidence limit
Virtual NVMeHypervisor-provided NVMe interfaceCan use non-NVMe backend
NVMe passthroughPhysical device assignedDifferent ownership model
Guest namespaceNVMe block device viewVirtual presentation
BackendHost storage pathDetermines real latency/capacity

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

Confirmation

Confirm action

Continue?