How to Assign a GPU to a Hyper-V VM (Step-by-Step)
In this article
You can assign a GPU to a Hyper-V VM, but only through GPU partitioning (GPU-P) on Windows 10/11 Pro, Enterprise, or Education hosts with compatible hardware. Full discrete device assignment (DDA) is available only on Windows Server. This guide covers the practical GPU-P method for client Hyper-V, which lets multiple VMs share one physical GPU for graphics acceleration and compute tasks.
What You'll Need
- A host PC running Windows 10 or 11 Pro, Enterprise, or Education (Hyper-V enabled).
- A GPU that supports GPU partitioning — most modern NVIDIA and AMD discrete GPUs do, but check the vendor's documentation. Integrated Intel GPUs generally do not support GPU-P.
- The latest GPU driver installed on the host.
- A virtual machine running Windows 10/11 (guest OS must match or be compatible with the host driver model).
- Administrator rights on the host and the VM.
- PowerShell (run as Administrator) — all steps use PowerShell because Hyper-V Manager has no GUI for GPU-P.
Step-by-Step
- Confirm your GPU supports partitioning. Open Device Manager, expand Display adapters, and note the exact GPU name. Then run PowerShell as Administrator and type
Get-VMHostPartitionableGpu. If it returns your GPU, you're good. If it returns nothing, your GPU or driver does not support GPU-P — stop here. - Shut down the target VM. GPU assignment requires the VM to be off, not just saved or paused.
- Note the GPU's instance path. Run
Get-VMHostPartitionableGpu | Select Name, InstancePathand copy the full InstancePath string (it looks like\\?\PCI#VEN_10DE&DEV_...). You'll need it in the next step. - Add the partition adapter to the VM. In PowerShell, run:
Add-VMGpuPartitionAdapter -VMName "YourVMName" -InstancePath "paste-instance-path-here"
Replace YourVMName with your VM's name. If you omit-InstancePath, Hyper-V picks the first available partitionable GPU. - Set partition resources (optional but recommended). By default the VM gets a share of the GPU. To reserve a minimum, use
Set-VMGpuPartitionAdapter -VMName "YourVMName" -MinPartitionVRAM 80000000 -MaxPartitionVRAM 100000000 -OptimalPartitionVRAM 100000000(values in bytes). Adjust to your GPU's VRAM. Similar parameters exist for encode, decode, and compute. - Copy the host GPU driver files into the VM. This is the step most people miss. On the host, open File Explorer and navigate to
C:\Windows\System32\DriverStore\FileRepository. Find the folder for your GPU driver (it containsnvlddmkm.sysfor NVIDIA oramdkmdap.sysfor AMD). Copy that entire folder into the VM atC:\Windows\System32\DriverStore\FileRepository(create the folder if needed). You can do this by mounting the VM's VHDX or by using a network share. - Also copy the driver's INF and related files. In the same driver folder, copy any
.inf,.cat, and.dllfiles intoC:\Windows\System32\DriverStore\FileRepositoryinside the VM, preserving the folder structure. Then, inside the VM, open Device Manager, right-click the display adapter (it may show as Microsoft Basic Display Adapter), choose Update driver > Browse my computer, and point it to the copied folder. - Start the VM and verify. Power on the VM. Open Device Manager inside the guest — you should see your GPU listed under Display adapters without a warning icon. Run
dxdiagor a GPU tool like GPU-Z to confirm the adapter is recognized and has VRAM assigned. - Install the guest-side driver package (if needed). Some GPUs require the full driver installer inside the VM. Download the same driver version from the vendor's site and install it in the guest. Do not use a different version than the host.
- Test with a workload. Open a game, a rendering app, or run a compute benchmark inside the VM. Check Task Manager > Performance > GPU to confirm activity. If the GPU shows 0% usage, revisit step 6 — the driver files are the usual culprit.
Common Mistakes
- Skipping the driver copy. Adding the partition adapter alone does nothing; the guest needs the host's driver binaries to communicate with the GPU.
- Using mismatched driver versions. Host and guest must run the same GPU driver version. A newer guest driver will fail to load.
- Trying this on Windows Home. Hyper-V and GPU-P are not available on Home editions.
- Expecting DDA on a client OS. Full device passthrough (DDA) is a Windows Server feature; on Windows 10/11 you get partitioning, which shares the GPU rather than dedicating it.
- Forgetting to shut down the VM.
Add-VMGpuPartitionAdapterfails if the VM is running. - Assuming integrated graphics work. Most Intel iGPUs do not support GPU-P; check
Get-VMHostPartitionableGpufirst.
Tips
- Keep a snapshot of the VM before copying driver files — if the guest fails to boot or the display breaks, you can revert quickly.
- Use the same Windows build on host and guest where possible; driver model mismatches cause silent failures.
- If you run multiple VMs with GPU-P, set
-MinPartitionVRAMon each so one VM cannot starve the others. - For NVIDIA cards, the driver folder name starts with
nvlddmkm; for AMD, look foramdkmdap. Copy the whole folder, not just the .sys file. - After a host GPU driver update, re-copy the new driver folder into each VM — the old files will stop working.
- Check Event Viewer inside the guest (System log) for GPU-related errors if the adapter shows a warning icon.
Troubleshooting
The GPU doesn't appear in Device Manager inside the VM. Confirm the partition adapter was added (Get-VMGpuPartitionAdapter -VMName "YourVMName"). If it's missing, re-run the add command. Also verify the VM is generation 2 and has the latest integration services.
Device Manager shows a yellow warning icon. The guest driver files are missing or mismatched. Re-copy the entire driver folder from the host and update the driver manually in the guest.
Games or apps crash on launch. The guest may be trying to use a different driver version. Uninstall any GPU driver inside the VM, then reinstall the exact version from the host's driver folder.
GPU usage stays at 0%. Check that the VM has a partition assigned with sufficient VRAM. Run Get-VMGpuPartitionAdapter and look at the MinPartitionVRAM value — if it's 0, set a minimum.
The VM won't boot after copying drivers. Boot into Safe Mode (hold Shift during restart) and remove the copied driver files, or revert to a snapshot. Then recopy only the necessary files.
Host GPU driver update broke the VM. Re-copy the new driver folder into the guest and reinstall the driver there. Host and guest must always match.
Frequently Asked Questions
Can I assign a GPU to a Hyper-V VM on Windows Home?
No. Hyper-V and GPU partitioning require Windows 10/11 Pro, Enterprise, or Education.
Does GPU-P give the VM full access to the GPU?
No — it partitions the GPU, so multiple VMs share it. For dedicated access you need Windows Server and Discrete Device Assignment (DDA).
Will this work with an integrated Intel GPU?
Generally no. Most Intel integrated GPUs do not support GPU partitioning. Check with Get-VMHostPartitionableGpu.
Do I need to install the GPU driver inside the VM?
Yes, but you don't run the installer — you copy the host's driver files into the guest's DriverStore and point Device Manager to them. Some setups also need the full driver package installed in the guest.
Can I use this for gaming in a VM?
It can work for light gaming and GPU-accelerated apps, but performance depends on the GPU and partition size. Anti-cheat software may block VMs.
What happens after a host driver update?
The VM will lose GPU access until you copy the new driver folder into the guest and reinstall the driver there.