Easy way to get yourself banned in online games just an FYI. Most online games will detect and ban virtual machines now since they've become commonplace in cheat/hack communities.
If there's a game that doesn't work on Linux because of anti or something it probably won't work in a vm either so dual booting would probably be the way to go to avoid that
@variants@shapis Not true, a root-kit will break it in wine because wine is just translating windows sys calls into Linux sys calls, but a vm is actually running a windows kernel, then the root kit anti-cheat works fine. With GPU pass through, I have found no games that work under Windows won't also work within the VM.
There are many signs for software running in a VM to realize it does, especially if you want an easy setup. In theory you could mask that, in practice it would be very tedious, time consuming, and not perfect enough anyway.
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.
@xtapa@shapis Lutris is just wine, so any game using a kernel anti-cheat won't work under Lutris. And most of the games I play aren't steam so it does me little good personally, and many of the steam games I have tried don't work on Linux in spite of steam being installed.
proton has support for quite a few kernel level anti cheat now, although it has to be explicitly allowed by the dev. needs to be run via steam I think, but you can add non steam games if you got them elsewhere
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.
@shapis It's complicated to setup but once done works wonderfully, you can share one GPU between OS's in real time, even have one windows window up along with Linux at the same time. So I'm temporarily fuxored but I already have a plan for a fix and that is simply to steal the UEFI vm bios from Manjaro which does work and use it on Ubuntu.
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.
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.@blobjim@shapis
This is all addressed by the Linux kernel and xml code specifying it for the VM.
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.
Again handled by the kernel and qemu, just requires a bit of XML code in the vm description. Not a big deal.