This little guide aim to let you setup an Hyper-V Windows 10 VM with GPU Partioning to run FiveM.
No documentation is provided anywhere by Microsoft and an Hyper-V dev’s gist about that got taken down.
Do note that this guide is intended to be used with an Nvidia GPU, and haven’t been tested with an AMD GPU yet.
Create a Hyper-V VM (no, for real?! :o) and name it fivem
Then, on your host machine, browse to C:\Windows\System32\DriverStore\FileRepository\
Transfer the nv_dispi.inf_amd64_<UNIQUEID> folder to C:\Windows\System32\HostDriverStore\FileRepository\ on your VM (if folders doesn’t exist, create them.)
Then transfer the C:\Windows\System32\nvapi64.dll file from your host to C:\Windows\System32\ on your VM
Restart the VM
Disable enhanced session and checkpoints in Hyper-V
And voilà! You can now use FiveM with great FPS inside an Hyper-V VM !
Big thanks to @nta for his patience to figure this out.
HINT: You can expose a file share on your host PC to share the GTA V game install to the VM!
So, by other words, we can run FiveM client beside actual server all at the one machine inside Windows Server edition and therefore reduce lags usually connected to arbitrator clients running on slow machine with terrible ping?
(Just a newbie trying to comprehend what he just read)
No, that is not related nor does it really make sense to do so. A OneSync server won’t have any arbitrator at all, and a non-OneSync server only uses the arbitrator for establishing initial connectivity (during the HS_JOINING phases in console logs), everything else is done in a distributed fashion.
This guide is rather meant as an alternative to the “cl2” launch mode.
Did the VM wasn’t starting since you created it in Hyper-V? Or only after following the guide?
Also “Not enough resources” is kinda self-explanatory Maybe your VM is missing RAM
Only after following guide, DDA (PCIE passthrough) working, but NVIDIA blocks it on drivers level (need to patch) and Hyper-V host is lose display adapter. So, GPU-P is more like for me, but it did not work.
I try it in amd GPU. it can run.
But when i instaill android emulator like nox player or bluestack, it can’t not install.
the nox player install crash, and the bluestack run until 99% and crash.
How to fix this problem?
I’m suspecting something along the lines of nested virtualization being disabled or unsupported for this scenario. Ideally one could just run Anbox in WSL2-enhanced Linux, but that might be a few ways off…
Hey!
I create New VM with clean drive, it strarts with windows setup, I cancel it and shut VM down. Then I apply the script from above but my VM refuses to start with the error 32788 returned by Hyper-V. After Remove-VMGpuPartitionAdapter -VMName $vm the VM starts normally
What do I do wrong? How to workaround?
I use Windows server 2019 GeForce GTX1060 for the host and GeForce GTX1080 Im trying to give to my guest VM. Btw I managed to passthu this 1080 via DDA and patched Nvidia driver with KVM patcher, but Im not satisfied with the perfomance.
Could this - in theory - be used to have two instances of FiveM on the same machine? Two separate clients on different gta 5 accounts of course…
I want to experiment with client -> server and vice versa with multiple clients however I’m not sure of another way all by myself.