Is there an easy way of having a vm with gpu pass through to play windows games ?
Basically the title. I’ve only ever seen huge 20 page guides on how to make it work. Is there an easy way?
Specifically on Debian or Arch with a laptop with two gpus (zephyrus g14)
Nanook
in reply to shapis • •Linux reshared this.
shapis
in reply to Nanook • • •Indeed. That’s the opposite of what I’m looking for though. That’s complicated and apparently breaks ?
I’m currently dual booting. Which works fine. I was wondering if there was an easier way though.
Nanook
in reply to shapis • •Linux reshared this.
wvstolzing
in reply to shapis • • •With Proxmox on AMD gpus, it can be as simple as picking a pci device from a dropdown.
-- but then again, you'll need to learn how to properly use proxmox, esp. with respect to storage configuration. Also, the performance can still suffer, depending on various factors.
If it's not too big of an inconvenience, dual boot is the way to go, IMHO.
Nanook
in reply to wvstolzing • •Linux reshared this.
atzanteol
in reply to Nanook • • •Jo Miran
in reply to shapis • • •Nanook
in reply to Jo Miran • — (Shoreline, WA, USA) •variants
in reply to shapis • • •Nanook
in reply to variants • •Linux reshared this.
halfapage
in reply to Nanook • • •Nanook
in reply to halfapage • •Linux reshared this.
halfapage
in reply to Nanook • • •Nanook
in reply to halfapage • •Linux reshared this.
PlasticPaperplane
in reply to Nanook • • •Nanook
in reply to PlasticPaperplane • •Linux reshared this.
Fonzie!
in reply to Nanook • • •Nanook
in reply to Fonzie! • •Linux reshared this.
blobjim [he/him]
in reply to shapis • • •I also don't know if there's any Linux program that will automatically do the configuration for you.
It seems like it would be pretty complex since I guess you need to disable the linux host from using the GPU, and do PCI passthrough in a VM that has Windows installed.
And there's still the problem of the graphics needing to move around the system in order to get to the display instead of the display being directly connected to the GPU.
Seems like a pretty cool thing that would be neat to have a nice automated GUI solution for.
I was just looking at, seems like it's difficult but not impossible
I'm in the same boat that it seems too difficult (and I bet the performance still isn't near native).
I just dual boot and boot into Windows if I'm going to play a game.
Single GPU Passthrough Tutorial - KVM/VFIO
YouTubeNanook
in reply to blobjim [he/him] • •This is all addressed by the Linux kernel and xml code specifying it for the VM.
Again handled by the kernel and qemu, just requires a bit of XML code in the vm description. Not a big deal.
Linux reshared this.
xtapa
in reply to shapis • • •Nanook
in reply to xtapa • •Linux reshared this.
Thorry84
in reply to Nanook • • •brian
in reply to Nanook • • •shekau
Unknown parent • • •antsu
in reply to shapis • • •I have the 2020 G14 and I got this working once. I'm afraid easy and simple are not a thing here, as you need to understand what you're doing if you want it to work well.
The basics are:
- Prevent the host system from loading any drivers that touch the discrete GPU. This is done by attaching it to the VFIO driver and uninstalling/blacklisting the Nvidia and Nouveau drivers.
- Make sure you have the correct kernel parameters to support virtualisation and PCI-e passthrough.
- Create a Windows VM and attach the Nvidia GPU to it.
- Setup Looking Glass so you can play with the best possible latency. This will likely require a dummy USB-C display stick.
Personally, I don't think it's worth the hassle. I keep a Windows install for when it's needed, and do most of my gaming on a separate system.
Ptsf
in reply to shapis • • •Nanook
in reply to Ptsf • •Linux reshared this.
Ptsf
in reply to Nanook • • •Nanook
in reply to Ptsf • •Linux reshared this.
brian
in reply to Nanook • • •Nanook
in reply to brian • •Linux reshared this.
brian
in reply to Nanook • • •even with cpu passthrough some things are still emulated. you can run a vm detector and see for yourself what tests fail.
it may not affect your games but others should still be careful since it is a real issue, and people do get banned for it.
Nanook
in reply to brian • •Linux reshared this.
brian
in reply to Nanook • • •GitHub - kernelwernel/VMAware: VM detection library and tool
GitHubNanook
in reply to brian • •Linux reshared this.
Sheldan
in reply to Nanook • • •Nanook
in reply to Sheldan • •Linux reshared this.
Presi300
in reply to shapis • • •It's not... easy but it's also not 20 pages difficult, unless you wanna do sinlge GPU passtrough, then that's black magic.
This along with the arch wiki's page on GPU passtrough should be enough to get you setup
E: Pro tip - pay close attention to section 2.3 Gotchas in the arch wiki, this sh!t had me stuck for a while on my system
Install GPU Passthrough on Arch Linux. HYPRLAND and Qtile integration with Looking Glass and RDP.
YouTubeNanook
in reply to shapis • •Linux reshared this.
TarantulaFudge
in reply to shekau • • •