Jump to content

Welcome to ExtremeHW

Welcome to ExtremeHW, register to take part in our community, don't worry this is a simple FREE process that requires minimal information for you to signup.

 

Registered users can: 

  • Start new topics and reply to others.
  • Show off your PC using our Rig Creator feature.
  • Subscribe to topics and forums to get updates.
  • Get your own profile page to customize.
  • Send personal messages to other members.
  • Take advantage of site exclusive features.
  • Upgrade to Premium to unlock additional sites features.
IGNORED

Easy GPU Sharing on a VM


Recommended Posts

Administrators

Really wasn't sure where to put this, as I don't think we've ever had too many people creating custom software on EHW.  Well....I did it.  I bashed my head against Grok and Copilot, and I learned how to code.  To all you buttholes on this site that told me it wasn't possible, I DID IT!!!!! 😛

I finally figured out a way to share my one GPU across multiple VM's on my rack server.  And I'm going to share with you guys my program that I made, to make this easier!

I started off with "Easy-GPU-PV" script.  It's not PERFECT, but for server duties that require a GPU, this program works GREAT.  I then created a batch file that runs (with Grok / Copilot), that asks the user for some input, and customizes the Easy-GPU-PV scripts, AND automatically runs them for you.  No need to learn scripting, I already did for you. 🙂

Just run the "setup_vm.bat" included.  The script files are all there in the /data/ folder, its an exact copy / paste of the original script from github.

I own no rights to the scripting of Easy-GPU-PV.  I only created the .bat file to automate this process.

Note:  ONLY WORKS ON WINDOWS 11 PRO / ENTERPRISE HOSTS
Note 2:  I wasn't sure on "version" type in the script.  It calls for version "6" which I guess is "Professional", but I tend to use the IoT Enterprise installers too, which is version "2".  That option in the installer batch MAY be confusing for people.  Pro = Win10 / 11 "Professional" (consumer), and IoT = Win10 / 11 IoT Enterprise.  I did NOT code anything in for home versions or any others.

This script is CONFIRMED WORKING on an Intel Arc A770 on Windows 11 with a variety of VM clients, 3d working on all.

REQUIREMENTS (that I know of):

  • Windows 11 IoT Enterprise or Professional Host install
  • Hyper-V fully enabled and working on the host
  • Nvidia, Intel, or AMD GPU with drivers (that the script can copy to your VM's)
  • Windows 10 / 11 Professional or IoT Enterprise VM install
  • Dedicated RAM resources for the VM (cannot use dynamic RAM)


Screenshots:
Installing a new VM with a GPU:
image.png.00b2e44794db8e69a3cfe88372b3f23f.png

Updating a Virtual Machine's GPU driver (from the host):
image.png.ebbfc932d716db5689062af69a2de6a1.png

 

Easy GPU VM Share.zipFetching info...

  • Respect 2

null

Owned

 Share

CPU: Ryzen 7800 x3d
MOTHERBOARD: Gigabyte B650 Aorus Elite AX
RAM: 64GB Patriot Viper DDR5 @ 6200, 28-36-34-70, 1.50v
PSU: Seasonic Focus Gold 1000w
GPU: Sapphire Pulse RX 9070 XT
SOUNDCARD: Asus Xonar DGX
OPTICAL: USB Pioneer DVD-RW + Lightscribe
SSD/NVME: Corsair MP600 Mini 2TB
Full Rig Info
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This Website may place and access certain Cookies on your computer. ExtremeHW uses Cookies to improve your experience of using the Website and to improve our range of products and services. ExtremeHW has carefully chosen these Cookies and has taken steps to ensure that your privacy is protected and respected at all times. All Cookies used by this Website are used in accordance with current UK and EU Cookie Law. For more information please see our Privacy Policy