Skip to content

A Project dedicated to making GPU Partitioning on Windows simpler!

License

Notifications You must be signed in to change notification settings

PrzemekWolw/Simple-GPU-P

 
 

Repository files navigation

Simple-GPU-P

A work-in-progress project dedicated to making GPU Paravirtualization on Windows Hyper-V easier!

GPU-PV allows you to partition your systems dedicated or integrated GPU and assign it to several Hyper-V VMs. It's the same technology that is used in WSL2, and Windows Sandbox.

Simple-GPU-P aims to make this easier by automating the steps required to get a GPU-PV VM up and running. Simple-GPU-P does the following...

  1. Allows managing GPUs in your VM
  2. Adds GPU to existing VM
  3. Updates Drivers in VM
  4. Removes GPUs from VM
  5. Changes allocation of your GPU

Prerequisites:

  • Windows 10 20H1+ Pro, Enterprise or Education OR Windows 11 Pro, Enterprise or Education. Windows 11 on host and VM is preferred due to better compatibility.
  • Latest GPU driver from Intel.com or NVIDIA.com, don't rely on Device manager or Windows update.
  • Virtualisation enabled in the motherboard and Hyper-V fully enabled on the Windows 10/ 11 OS (requires reboot).
  • Allow Powershell scripts to run on your system - typically by running "Set-ExecutionPolicy unrestricted" in Powershell running as Administrator.

Instructions

  1. Make sure your system meets the prerequisites.
  2. Download files from this repository
  3. Use Generation 2 of VM
  4. Install Windows on your VM
  5. DISABLE dynamic memory
  6. DISABLE automatic snapshots
  7. Run RUN-ME.BAT as Administrator
  8. Follow the steps in command prompt
  9. In Hyper-V settings enable enhanced session to add sound support

Thanks to:

Vulkan:

  • Vulkan works on certain Hardware-software configurations

Notes:

  • Your GPU on the host will have a Microsoft driver in device manager, rather than an nvidia/intel/amd driver. As long as it doesn't have a yellow triangle over top of the device in device manager, it's working correctly.
  • If you do not have administrator permissions on the machine it means you set the username and vmname to the same thing, these needs to be different.
  • AMD Polaris GPUS like the RX 580 do not support hardware video encoding via GPU Paravirtualization at this time.
  • Linux Virtual Guests are not supported yet

Original Project:

  • Original Project is available here.

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 99.6%
  • Batchfile 0.4%