Hyper-V GPU passthrough
Jump to navigation
Jump to search
GPU Partitioning
GPU partitioning is a method to partition off resources from your graphics card so that it can be used inside your VMs. Hyper-V supports is GPU passthrough, a feature that allows virtual machines to access the host’s GPU directly. this feature allows graphics intensive workloads like gaming or video editing on Hyper-V guest.
This posting explains how to set GPU to Hyper-V window VM
Window Powershell commands
Test to see if your GPU can be partitioned at all. On the Host, open a Powershell prompt as administrator.
Get-VMPartitionableGpu
(win10)
or
Get-VMHostPartitionableGpu
(win11)
Requirements
- Need a GPU that supports GPU virtualization, such as NVIDIA GRID or AMD MxGPU technology
- Your CPU needs to support IOMMU (Input-Output Memory Management Unit) virtualization, which is required for GPU passthrough
- GPU passthrough is not supported for virtual machines that use Dynamic Memory
- GPU passthrough is only available on specific editions of Windows Server, such as the Datacenter edition
Enabling GPU passthrough to Ubuntu VM
- brokeDude2901 introduced how to enable GPU passthrough to Ubuntu VM using dxgkrnl_ubuntu kernel on github