Pcornel
Virtualization · Hyper-V

Discrete Device Assignment

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

Back to the Topic

Answer

DDA changes ownership and isolation boundaries: the host must relinquish the device, platform/device requirements must be satisfied, and the VM/guest must have compatible configuration and drivers.

Remember

  • DDA is direct device assignment, not ordinary virtual-device emulation.
  • Device visible in guest ≠ driver/function healthy.
  • Host cannot simultaneously use a device assigned exclusively to a VM.
  • IOMMU/platform isolation and device support are critical boundaries.

First checks

  • Get-VMHostAssignableDevice — DDA-capable devices
  • Dismount-VMHostAssignableDevice -LocationPath <path> -Force — detach from host
  • Add-VMAssignableDevice -VMName <vm> -LocationPath <path> — assign

Verify in this order

PCIe device → dismount from host → assign to VM → guest driver

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Hyper-V → Discrete Device Assignment reference map

BoundaryMeaningEvidence limit
PlatformIOMMU/device capabilitiesSupport prerequisite
HostDevice dismounted/assignableNot guest ready
VMPhysical device assignedVisible ≠ functional
GuestDriver/workload uses deviceFinal functional proof

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

Confirmation

Confirm action

Continue?