Use this topic for supported direct-assignment scenarios such as selected GPUs or accelerators where ordinary synthetic virtualization is insufficient.
Discrete Device Assignment
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.
1. Discrete Device Assignment passes PCIe devices (GPU, NVMe) to VMs.
2. Survey with Microsoft's script; check IOMMU/ACS.
3. Set MMIO space for GPUs.
4. No live migration or dynamic memory.
5. Server editions only.
PCIe device → dismount from host → assign to VM → guest driver
Verify guest driver/device telemetry and the original accelerated workload after assignment.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show correct driver behavior or workload acceleration from device visibility alone.
Next check: Verify guest driver/device telemetry and the original accelerated workload after assignment.
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
Physical PCIe device → platform/IOMMU isolation → host dismount/assignment → VM MMIO/device exposure → guest driver → workload
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.
- 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.
Get-VMHostAssignableDevice— DDA-capable devicesDismount-VMHostAssignableDevice -LocationPath <path> -Force— detach from hostAdd-VMAssignableDevice -VMName <vm> -LocationPath <path>— assign
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
Successful DDA assignment shows device ownership/exposure changed, not that the guest driver or workload uses the device correctly.
Steps
$loc = (Get-PnpDeviceProperty -InstanceId $id -KeyName DEVPKEY_Device_LocationPaths).Data[0]
Disable-PnpDevice -InstanceId $id
Dismount-VMHostAssignableDevice -LocationPath $loc -Force
Add-VMAssignableDevice -LocationPath $loc -VMName vm01
Documented example, not captured output. Supported on Windows Server for GPUs and NVMe; VM must use Generation 2 and automatic stop action TurnOff.
In depth
Discrete Device Assignment (DDA) passes a whole PCIe device (GPU, NVMe) to a Hyper-V VM.
$dev = Get-PnpDevice -FriendlyName '*NVIDIA*' | ? Class -eq Display
$loc = ($dev | Get-PnpDeviceProperty DEVPKEY_Device_LocationPaths).Data[0]
Disable-PnpDevice -InstanceId $dev.InstanceId -Confirm:$false
Dismount-VMHostAssignableDevice -LocationPath $loc -Force
Set-VM gpu-vm -AutomaticStopAction TurnOff -GuestControlledCacheTypes $true -LowMemoryMappedIoSpace 3GB -HighMemoryMappedIoSpace 33280MB
Add-VMAssignableDevice -LocationPath $loc -VMName gpu-vm
DDA VMs cannot live-migrate or use dynamic memory. GPU partitioning (GPU-P) in Server 2025 shares one GPU between VMs as an alternative.
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 Hyper-V → Discrete Device Assignment. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/ · 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
Hyper-V → Discrete Device Assignment reference map
Fast Hyper-V boundaries for Hyper-V → Discrete Device Assignment.
| 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 |