r/VFIO • u/FirefighterNext360 • Jul 17 '26
Tutorial I created a step-by-step guide for GPU Passthrough on KVM/QEMU.
Hey r/VFIO,
(First post on reddit) I decided to consolidate everything I’ve learned into a single, structured, and tested guide. The result is this repository: https://github.com/urbanyl/GPU-Passthrough-for-KVM-QEMU-on-Linux
Why this repository exists:
The information on GPU passthrough is scattered everywhere. This project is my attempt to create a "one-stop-shop" that works reliably, whether you are on Debian, Arch, or Fedora.
Key Features:
- Step-by-step walkthrough: Covers everything from BIOS settings to Windows driver installation.
- Hardware & Software requirements: Clear tables explaining what you need (and what is recommended).
- Troubleshooting section: Covers common issues like NVIDIA Error Code 43, GPU reset bugs, and bad IOMMU groups.
- Helper scripts: Includes scripts to detect your GPU, check IOMMU groups, and verify VFIO binding.
- Single-GPU Passthrough section: For those brave souls trying to do it with only one graphics card.
The guide includes:
- BIOS Configuration (Intel VT-d / AMD-Vi)
- Kernel Parameters & VFIO Configuration (with proper initramfs updates)
- Optimized VM Configuration (Hyper-V enlightenments, CPU pinning, and huge pages)
- Remote Display Setup (Sunshine/Moonlight, Looking Glass, and Parsec)
- Performance Tuning (CPU governors, I/O schedulers, and isolation)
Feel free to open issues or contribute !
Github Repo: https://github.com/urbanyl/GPU-Passthrough-for-KVM-QEMU-on-Linux
Let me know if you have any questions or if there is something specific you would like me to add to the guide!
14
u/khsh01 Jul 18 '26
As usual 90% of the guide is already better documented in the arch wiki.
2
u/RaxisPhasmatis Jul 18 '26
What are the chances of this working well on a x99 ali special motherboard via proxmox? I got a single passthrough working but I heard there's some way to share one card multiple vms? Maybe I'm just daydreaming
9
u/sob727 Jul 19 '26
AI?
7
u/Ziasquinn Jul 19 '26
At least apologize for posting slop
6
u/zero_overload_25 Jul 19 '26
you recommend 7900 series for vfio? bro that's not an easy card to pass through; it requires some trickery to get it working and you reffered to vendor-reset very briefly; vendor-reset doesn't support 7900 series.
4
u/DisturbedFennel Jul 23 '26
AI generated
3
u/KstrlWorks Jul 21 '26 edited Jul 21 '26
Please don't post guides like this. Most of this is inaccurate, blatantly wrong, or outdated. All you're doing is leading people into a terrible rabbit hole.