Nvidia GPU Passthrough with Prime on Debian 12 (GUIDE) revisions

Go back to topic: Nvidia GPU Passthrough with Prime on Debian 12 (GUIDE)

  1. v9 anchor; v9 full version
  2. v8 anchor; v8 full version
  3. v7 anchor; v7 full version
  4. v6 anchor; v6 full version
  5. v5 anchor; v5 full version
  6. v4 anchor; v4 full version
  7. v3 anchor; v3 full version
  8. v2 anchor; v2 full version

Revision #9

Edited on
2025-02-06
Edited by user
crispy_levitator
2. What distros have you all SUCCESSFULLY achieved this on? I tried a bunch but this is the first I had success with. Was not able to get bazzite, majaro, or nobara working. I think fedora may be a better fit for this, so I will work on that 3. This uses the proprietary nvidia-driver package. I'm curious about if nvidia-open is worth using, if anyone has insight on the pros and cons, or has a suggestion for which distro to test this with please let me know. 4. If anyone wants pictures or maybe a video of these steps I can try to do that 2. What distros have you all successfully achieved this on? I tried a bunch but this is the first I had success with. Was not able to get bazzite, majaro, or nobara working. I am realizing this is probably due to driver/kernel mismatches, and wayland. I'd be very curious to hear if anyone has gotten this functional with wayland, a fresh nobara install displays on wayland but it was not accelerated. Up to date nobara no longer includes xorg, which is unfortunate because I think it would work flawlessly with x11. I tried manually installing x11 but it still did not appear as an option at the lock screen. If anyone more knowledgeable has an idea how to fix this I'd love to hear. Same goes for Fedora workstation, which I'm working to figure out as I think it would be a good fit for this. 3. Has anyone gotten a gpu passthrough qube working well on wayland? If so I'd love to hear about it! 4. This uses the proprietary nvidia-driver package. I'm curious about if nvidia-open is worth using, if anyone has insight on the pros and cons, or has a suggestion for which distro to test this with please let me know. 5. If anyone wants pictures or maybe a video of these steps I can try to do that

Revision #8

Edited on
2025-02-06
Edited by user
crispy_levitator

Revision #7

Edited on
2025-02-06
Edited by user
crispy_levitator
I recorded all the steps to get an nvidia card passed through (using second screen/input plugged into the video card). I recorded all the steps to get an RTX nvidia card passed through (using second screen/input plugged into the video card).

Revision #6

Edited on
2025-02-05
Edited by user
crispy_levitator
3. If anyone wants pictures or maybe a video of these steps I can try to do that 3. This uses the proprietary nvidia-driver package. I'm curious about if nvidia-open is worth using, if anyone has insight on the pros and cons, or has a suggestion for which distro to test this with please let me know. 4. If anyone wants pictures or maybe a video of these steps I can try to do that

Revision #5

Edited on
2025-02-04
Edited by user
crispy_levitator
Now you should be able to switch to your GPU output and have a fully accelerated VM. Now you should be able to switch to your GPU output and have a fully accelerated VM. I got over 100 fps on cyberpunk ultra settings in the benchmark!

Revision #4

Edited on
2025-02-04
Edited by user
crispy_levitator
select debian .iso (I used debian 12 live) select debian .iso (I used debian 12 KDE live)

Revision #3

Edited on
2025-02-04
Edited by user
crispy_levitator
create standalone qube (not based on a template*) create standalone HVM qube (not based on a template*)
sudo apt install nvidia-xconfig sudo nvidia-xconfig --prime **sudo apt install nvidia-xconfig** **sudo nvidia-xconfig --prime** (these were the missing sauce for me)
2. What distros have you all SUCCESSFULLY achieved this on? I tried a bunch but this is the first I had success with. Was not able to get bazzite or nobara working. I think fedora may be a better fit for this, so I will work on that 2. What distros have you all SUCCESSFULLY achieved this on? I tried a bunch but this is the first I had success with. Was not able to get bazzite, majaro, or nobara working. I think fedora may be a better fit for this, so I will work on that

Revision #2

Edited on
2025-02-04
Edited by user
crispy_levitator
**First follow this guide up until "preparing the guest".** **https://forum.qubes-os.org/t/create-a-gaming-hvm/19000/1**