this post was submitted on 13 Nov 2024
26 points (100.0% liked)

Linux

1258 readers
120 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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)

top 17 comments
sorted by: hot top controversial new old
[–] nanook@friendica.eskimo.com 1 points 1 day ago

Single GPU isn't substantially harder than 2GPU pass through, that is what I have done, but it does require support by the UEFI bios and the GPU and not all support it.

[–] variants@possumpat.io 16 points 3 days ago (1 children)

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

[–] nanook@friendica.eskimo.com 5 points 3 days ago (1 children)

@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.

[–] lord_ryvan@ttrpg.network 4 points 3 days ago (1 children)

At least MiHoyo's anti cheat detects and blocks VirtualBox VMs as well as Waydroid.

[–] nanook@friendica.eskimo.com 2 points 3 days ago

@lord_ryvan Interesting, haven't played that game so no experience with it. VirtualBox does do some things a bit differently, I was not able to get flyff to run it well, it runs but at about 3fps, where as it runs normally in kvm/qemu.

[–] antsu@lemmy.wtf 6 points 3 days ago

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@discuss.tchncs.de 6 points 3 days ago (1 children)

Does it have to be a VM? Is Steam or Lutris not an option?

[–] nanook@friendica.eskimo.com 3 points 3 days ago (2 children)

@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.

[–] Thorry84@feddit.nl 8 points 3 days ago

Most anti-cheat doesn't take kindly to running in a VM as well, so if that's the reason it won't work.

[–] brian@programming.dev 2 points 2 days ago

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

[–] nanook@friendica.eskimo.com 6 points 3 days ago (1 children)

I used the Arch instructions on Ubuntu 22.04 wiki.archlinux.org/title/PCI_p… and it worked, but broke on 24.04 owing to broken UEFI bios on 24.04.

[–] shapis@lemmy.ml 5 points 3 days ago (2 children)

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@friendica.eskimo.com 4 points 3 days ago

@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.

[–] walthervonstolzing@lemmy.ml 3 points 3 days ago (1 children)

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@friendica.eskimo.com 4 points 3 days ago

@walthervonstolzing @shapis I personally use kvm/qemu but whatever works for you.

[–] JoMiran@lemmy.ml 2 points 3 days ago (1 children)

VMWare Workstation Pro is now free and I believe that it had GPU passthrough. Don't take my word on that though. I haven't used it in a few versions.

[–] nanook@friendica.eskimo.com 3 points 3 days ago* (last edited 3 days ago)

@JoMiran @shapis CPU pass through isn't JUST the function of the hypervisor, the host os, guest os, gpu drivers, and uefi bios ALL play a role.