Steps for enabling GPU in Hyper-V


vett93

Well-known member
Member
Local time
8:54 AM
Posts
72
Location
San Jose, California, USA
OS
Windows 11
I have a Windows 11 Pro PC running Hyper-V. The VMs are a few variants of Ubuntu and Windows 10. None of them can detect the GPU. What do I need to do to enable GPU for these VMs? Thanks.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Corsair Vengeance i7400
    CPU
    Intel i9-13900K
    Motherboard
    MSI Pro Z690-A WiFi DDR5
    Memory
    64GB DDR5-5600
    Graphics Card(s)
    4090
    Monitor(s) Displays
    BenQ PD3200U
    Screen Resolution
    4K
    Hard Drives
    2TB SSD
    PSU
    Corsair 1000W 80+ Gold
    Cooling
    water cooled CPU and air cooled GPU
    Internet Speed
    1200 Mbps down and 40 Mbps up
    Antivirus
    Windows Defender
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Zephyrus M16
    CPU
    Intel i9-13900H
    Memory
    64GB
    Graphics card(s)
    Nvidia 4070 mobile
    Hard Drives
    1TB SSD
You have to do it with Powershell
In it's most simple form, but it has a lot of options if you want to limit the GPU resources
Powershell:
Add-VMGpuPartitionAdapter -VMName <name>
 

My Computer

System One

  • OS
    Windows 11
You have to do it with Powershell
In it's most simple form, but it has a lot of options if you want to limit the GPU resources
Powershell:
Add-VMGpuPartitionAdapter -VMName <name>
Before I issued the PowerShell command, lspci in Ubuntu 24.04 does not show any driver. After I issued the command in Powershell, lspci shows the following:
7125:00:00.0 3D controller: Microsoft Corporation Basic Render Driver

On Ubunbu's "Software & Updates" "Additional Drivers" tab, it does not show anything.

So it does not seem to work for me.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Corsair Vengeance i7400
    CPU
    Intel i9-13900K
    Motherboard
    MSI Pro Z690-A WiFi DDR5
    Memory
    64GB DDR5-5600
    Graphics Card(s)
    4090
    Monitor(s) Displays
    BenQ PD3200U
    Screen Resolution
    4K
    Hard Drives
    2TB SSD
    PSU
    Corsair 1000W 80+ Gold
    Cooling
    water cooled CPU and air cooled GPU
    Internet Speed
    1200 Mbps down and 40 Mbps up
    Antivirus
    Windows Defender
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Zephyrus M16
    CPU
    Intel i9-13900H
    Memory
    64GB
    Graphics card(s)
    Nvidia 4070 mobile
    Hard Drives
    1TB SSD
Oh duh you said *nix too. Yeah *nix won't work with Hyper-v on a Windows client OS host. That "feature" is only supported for Hyper-v on a windows server OS.
 

My Computer

System One

  • OS
    Windows 11

Latest Support Threads

Back
Top Bottom