I wanted to share my project, FreeStream: easily set up and manage GPU-P VMs in Hyper-V
github.comI run my own cloud gaming servers for my kids on Hyper-V: one high-powered machine split into several "gaming computers", one each, all sharing a single GPU. Hyper-V can partition a GPU (GPU-P) between virtual machines, but setting it up by hand is a long list of PowerShell, registry policy, MMIO sizes and driver files copied into each guest. Every host driver update means doing the driver part again for every VM.
So I built FreeStream, a Windows app that does all of it for me, and wanted to share in case the community might benefit from it, too.
It creates GPU-P gaming VMs and keeps them working:
- Supports both Windows Server and regular Windows as host
- New VM with no prompts: Windows 11, Ubuntu or Debian install unattended from an ISO, get their share of the GPU, and come up ready to use. Static IPs are optional.
- Each VM gets a share of the GPU (25%, 50% and so on), and the app tracks how much of the card is committed.
- Every VM is checked against the settings GPU partitioning needs. Anything wrong is flagged with a one-click Fix.
- Supports installing the GPU's driver on Windows Server for cards that try to prevent it (AMD....)
- Host driver updates are handled: it finds and installs the new AMD or NVIDIA driver, including on Windows Server, then copies it into every VM that needs it.
- On AMD, Windows guests get AMD's separate OpenGL driver too, so OpenGL games start.
- Dedicated GPUs (DDA) on Windows Server, when a VM should have a whole card to itself.
- Crash safety: an interrupted change is journaled and can be resumed or rolled back.
It's built and tested on an AMD Radeon RX 7900 XTX and 6950 XT, but is built hardware agnostic to work with any GPU. (I don't have a current Nvidia card to test it on myself, yet).