Discrete Device Assignment
Cheat sheet · https://pcornel.dk/topic.php?topic=3713
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 devicesDismount-VMHostAssignableDevice -LocationPath <path> -Force— detach from hostAdd-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Platform | IOMMU/device capabilities | Support prerequisite |
| Host | Device dismounted/assignable | Not guest ready |
| VM | Physical device assigned | Visible ≠ functional |
| Guest | Driver/workload uses device | Final 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