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@friendica.eskimo.com
    link
    fedilink
    arrow-up
    1
    ·
    7 hours 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.

  • Ptsf@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    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.

      • Ptsf@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        1 day ago

        Depends on the game. Apex, Riot, ubisoft, and EA all ban vm players. A list of other companies do as well.

          • brian@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            machine id isn’t necessarily the important part. anticheat and vm detection check a lot of different heuristics incl hard to defend against things like timing attacks on particular cpu instructions. there’s a handful of open source versions if you’re curious

            • nanook@friendica.eskimo.com
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              1 day ago

              @brian To be honest, until and unless it becomes a problem for me, not really. KVM has the host CPU executing the VM instructions so timing on CPU instructions should product identical results. I have the VM setup as CPU and GPU pass through.

              • brian@programming.dev
                link
                fedilink
                arrow-up
                2
                ·
                1 day ago

                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.

  • antsu@lemmy.wtf
    link
    fedilink
    arrow-up
    7
    ·
    2 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.

  • variants@possumpat.io
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    2 days ago

    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
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      2 days ago

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

      • brian@programming.dev
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 day 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

      • Thorry84@feddit.nl
        link
        fedilink
        arrow-up
        8
        ·
        2 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.

    • shapis@lemmy.mlOP
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      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.

      • wvstolzing@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        2 days ago

        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
        link
        fedilink
        arrow-up
        4
        ·
        2 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.

  • Jo Miran@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    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.