Hyper-V GPU-P not working


antpalmer

Member
Local time
1:03 PM
Posts
3
OS
Windows 11
I have been trying to run a hyper-V VM and passing my dedicated GPU (an RX5500M) into my VM.

My host OS is Windows 11 Home and the target OS is Windows 11 Pro.

I used driver store explorer to track down drivers and I physically copied all of my AMD/ATI device drivers from my host to the target OS.
Any files in system32 with an amd/ati prefix were copied to the VM.

To avoid GPU conflicts, I disabled my integrated GPU via device manager.

For reference, I followed these links:
2 Gamers 1 GPU with Hyper V GPU-P (GPU Partitioning finally made possible with HyperV)
GitHub - jamesstringerparsec/Easy-GPU-PV: A Project dedicated to making GPU Partitioning on Windows easier!

None of this has worked and the VM does not recognize the GPU. What can I do to fix this?
 
Windows Build/Version
24H2 (26120.1252)

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP Victus 16
    CPU
    AMD Ryzen 5 5600H
    Memory
    16 GB DDR4
    Graphics Card(s)
    AMD Radeon Graphics + RX 5500M
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB SSD + 500 GB SSD
    Other Info
    also runs Ubuntu 22.04 and WSL
Open an elevated powershell prompt.
Run this command to make sure your GPU supports GPU-P
Code:
Get-VMHostPartitionableGpu

If it is returned then just run
Code:
Add-VMGpuPartitionAdapter -VMName <vmname>

The GPU should then be visible in the VM and you would just download and install your GPU drivers
 

My Computer

System One

  • OS
    Windows 11
Open an elevated powershell prompt.
Run this command to make sure your GPU supports GPU-P
Code:
Get-VMHostPartitionableGpu

If it is returned then just run
Code:
Add-VMGpuPartitionAdapter -VMName <vmname>

The GPU should then be visible in the VM and you would just download and install your GPU drivers
It didn't work, running
Code:
Get-VMGpuPartitionAdapter -VMName myvm | FL InstancePath,PartitionId,PartitionVfLuid
gets the following result:

1722818105192.png
However, this is the expected result from the microsoft documentation:

1722818157627.png

and just to clarify, this is on a laptop.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP Victus 16
    CPU
    AMD Ryzen 5 5600H
    Memory
    16 GB DDR4
    Graphics Card(s)
    AMD Radeon Graphics + RX 5500M
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB SSD + 500 GB SSD
    Other Info
    also runs Ubuntu 22.04 and WSL
To get the whole picture:
Did it work at all with the integrated GPU?
To avoid GPU conflicts, I disabled my integrated GPU via device manager.
Then, assuming it is disabled, what is the output of the command?
Code:
Get-VMHostPartitionableGpu
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC
    CPU
    i3 8109U
    Motherboard
    Intel
    Memory
    16GB DDR4 @2400
    Graphics Card(s)
    Intel Iris Plus Graphics 655
    Sound Card
    Intel / Realtek HD Audio
    Monitor(s) Displays
    LG-32ML600M
    Screen Resolution
    1920x1080
    Hard Drives
    Intel SSD 250GB + Samsung QVO SSD 1TB
    PSU
    Adapter
    Cooling
    The usual NUC airflow
    Keyboard
    Logitech Orion G610
    Mouse
    SteelSeries Rival 100 Red
    Internet Speed
    Good enough
    Browser
    Chromium, Edge, Firefox
    Antivirus
    Windows Defender
  • Operating System
    CentOS 9 Stream / Alma / Rocky / Fedora
    Computer type
    Laptop
    Manufacturer/Model
    TOSHIBA
    CPU
    Intel i7 4800MQ
    Motherboard
    TOSHIBA
    Memory
    32GB DDR3 @1600
    Graphics card(s)
    NVIDIA Quadro K2100M
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Built-in
    Screen Resolution
    1920x1080
Did the first command return anything? If it did not then your GPU doesn't support GPU-P
 

My Computer

System One

  • OS
    Windows 11
Open an elevated powershell prompt.
Run this command to make sure your GPU supports GPU-P
Code:
Get-VMHostPartitionableGpu
Code:
Name                          : <really_long_string_2>
ValidPartitionCounts          : {32}
PartitionCount                : 32
TotalVRAM                     : 1000000000
AvailableVRAM                 : 1000000000
SupportsIncomingLiveMigration : False
MinPartitionVRAM              : 0
MaxPartitionVRAM              : 1000000000
OptimalPartitionVRAM          : 1000000000
TotalEncode                   : 18446744073709551615
AvailableEncode               : 18446744073709551615
MinPartitionEncode            : 0
MaxPartitionEncode            : 18446744073709551615
OptimalPartitionEncode        : 18446744073709551615
TotalDecode                   : 1000000000
AvailableDecode               : 1000000000
MinPartitionDecode            : 0
MaxPartitionDecode            : 1000000000
OptimalPartitionDecode        : 1000000000
TotalCompute                  : 1000000000
AvailableCompute              : 1000000000
MinPartitionCompute           : 0
MaxPartitionCompute           : 1000000000
OptimalPartitionCompute       : 1000000000
CimSession                    : CimSession: .
ComputerName                  : <name>
IsDeleted                     : False

Name                          : <really_long_string_1>
ValidPartitionCounts          : {32}
PartitionCount                : 32
TotalVRAM                     : 1000000000
AvailableVRAM                 : 1000000000
SupportsIncomingLiveMigration : False
MinPartitionVRAM              : 0
MaxPartitionVRAM              : 1000000000
OptimalPartitionVRAM          : 1000000000
TotalEncode                   : 18446744073709551615
AvailableEncode               : 18446744073709551615
MinPartitionEncode            : 0
MaxPartitionEncode            : 18446744073709551615
OptimalPartitionEncode        : 18446744073709551615
TotalDecode                   : 1000000000
AvailableDecode               : 1000000000
MinPartitionDecode            : 0
MaxPartitionDecode            : 1000000000
OptimalPartitionDecode        : 1000000000
TotalCompute                  : 1000000000
AvailableCompute              : 1000000000
MinPartitionCompute           : 0
MaxPartitionCompute           : 1000000000
OptimalPartitionCompute       : 1000000000
CimSession                    : CimSession: .
ComputerName                  : <name>
IsDeleted                     : False
This is what I get.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP Victus 16
    CPU
    AMD Ryzen 5 5600H
    Memory
    16 GB DDR4
    Graphics Card(s)
    AMD Radeon Graphics + RX 5500M
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB SSD + 500 GB SSD
    Other Info
    also runs Ubuntu 22.04 and WSL

Latest Support Threads

Back
Top Bottom