GPU Paravirtualization With Hyper-V (Easy-GPU-PV)
How to Set Up GPU Pair Virtualization for Hyper-V
Introduction to GPU Pair Virtualization
- The video introduces the process of setting up GPU pair virtualization, allowing users to share their GPU with Hyper-V virtual machines.
- The tutorial follows a guide by James Stringer and utilizes a script from a repository that facilitates the setup.
Prerequisites for Setup
- Users must enable Hyper-V on their system; instructions are available in Microsoft's official documentation.
- It is essential to download the correct and latest drivers for either Nvidia or AMD GPUs based on the user's hardware.
Preparing Windows ISO
- Ensure that the version of Windows used in the virtual machine matches that of the host system (Windows 11 or Windows 10).
- The user should have a downloaded Windows ISO file ready for use in creating the virtual machine.
Running Initial Scripts
- Open PowerShell as an administrator and set execution policy to unrestricted before running scripts.
- Execute the pre-check script to verify if your graphics card is supported; if not detected, it indicates an unsupported GPU.
Configuring Virtual Machine Settings
- Create a new folder named "virtual machines" for storage and open the "copy files to VM" script in Notepad for configuration.
- Adjust settings such as VM name, source path (ISO), storage size (recommended increase from 40 GB to 200 GB), RAM allocation (increase from 8 GB to 16 GB), and network switch options.
Finalizing Setup and Installation
- Specify GPU name, resource allocation percentage, team ID/key, username/password settings. Most defaults can be left unchanged.
- Run the "copy files to VM" script which will take some time; upon completion, follow prompts related to Parsec setup.
Completing Installation Process
- After installation finishes, sign up for Parsec on its website while waiting for virtual machine setup completion.
Connecting to a Virtual Machine
Initial Connection and Setup
- The process begins by clicking on "connect" to access the virtual machine through Parc, which may take a moment to establish the connection.
- Once connected, users can verify functionality by opening the Device Manager and checking under "Display Adapters" for their graphics card.
- If the graphics card does not appear, it indicates a potential issue with the setup that needs addressing.
- Users are advised to consider disabling Hyper-V video as an optional step in optimizing performance within the virtual machine.