• BigDaddySlim@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    3 months ago

    Me this past weekend trying to setup GPU passthrough to a VM. Bought an AMD card just to passthrough my existing Nvidia one and have had nothing but issues with multiple distros 😔

    • EP51L0N@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      edit-2
      3 months ago

      oh yeah gpu passthrough is very shitty with nvidia cards (typical), try passing your amd card through instead

      • drathvedro@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        That might be a questionable choice given that this would leave the nvidia driver running on host machine and it’s usually the most fucky part of this whole operation.

    • drathvedro@lemm.ee
      link
      fedilink
      arrow-up
      7
      ·
      3 months ago

      Any specific issues? Pretty sure there’s lots of people in this sub who could help you out with that, myself included.

      • BigDaddySlim@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        3 months ago

        Passthrough not actually working, VM not detecting the GPU or not loading qemu properly even with everything loaded properly. Tried on 3 different distros (Ubuntu and arch based) and none worked. Might try the other suggestion to swap the cards. Just means I’ll have to redo my water loop for the 2nd time this week 🙃

        • drathvedro@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          3 months ago

          This is, indeed, uncommon. Typically the GPU either gets detected(abeit, often with errors), or the VM doesn’t start at all. Do you use libvirt by and chance?

            • drathvedro@lemm.ee
              link
              fedilink
              arrow-up
              1
              ·
              3 months ago

              But are you launching VM via virsh/virt-manager or directly using qemu-system-x86_64? Could you provide the XML or the command line you’re using? What does lspci -k say in regards to your GPU’s?

    • PolarisFx@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      Good to know, I was just thinking of doing this exact thing. I haven’t pulled the trigger on the AMD card though. I wanted it for wayland, but I still want to do CUDA things with my Nvidia card.