Proxmox GPU Passthrough

TommySK

New Member
Nov 22, 2024
3
0
1
Hi, Im trying to configure gpu passthru in my pve machine, Ive tried a few ways already, but none seem to be working. This one (https://github.com/JamesTurland/JimsGarage/tree/main/GPU_passthrough) got me the furthest, the vm is working on the pve console, windows (11) even recognizes the gpu, but doesnt output anything thru it. Ive dont everything in the guides, checked it everything should be working. Just the vm for some reason doesnt want to output thru the gpu (connected thru dvi port on the gpu). Clueless what else it could be now. Ive also tried installing some drivers on the windows VM, but those dont work either, tried the geforce experience app and also the standalone drivers (Yes its an nvidia gpu).
 
Same issue here. I did read a post on here the other day that a recent update broke GPU passthrough for some versions but I am having trouble relocating the exact post. The workaround was to pin PVE to the previous version.

My test is for an old PC game VM. So Windows 7, intel UHD 630. Every guide I try gets a graphics adapter in windows but it never appears as the correct one (just standard VGA). I am going to try a windows 10 machine today to see what happens.
 
Well good luck, let me know how it goes mby could help me too. BTW for context I’m using windows 11 i5 6700 (I think) and NVIDIA 1060, in case it might help, I dunno. Thanks
 
So Ive got it working with windows 10. new VM created with standard VGA display so I could VNC the install and PCI CPU attached as below, installed Win 10, set static IP so I could RDP to it. Turned on RDP connections. Appeared as Basic adapter until I installed the GPU drivers then it came alive. windows was showing 2 displays but VNC still worked right up until I told windows to make the GPU the main display. Then VNC would no longer work so i removed that display and rebooted the machine and RDP works fine and can see the proper adapter. Still doesnt help me with windows 7 though as the same process isnt working :-(

1732353730146.png

Heres the machine setup

1732353849100.png

I should add that I had previously followed the guides to add the relevant lines of text to load the correct modules and as i understand it not all of these items in grub are needed but dont hurt either.

this line in /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=vesafb:off,video=efifb:off"

this line in /etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=8086:3e92 disable_vga=1

these lines in /etc/modprobe.d/blacklist.conf
Code:
blacklist radeon
blacklist nouveau
blacklist nvidia
blacklist nvidiafb
blacklist i915

/etc/modprobe.d/kvm.conf
Code:
options kvm ignore_msrs=1

/etc/modprobe.d/iommu_unsafe_interrupts.conf
Code:
options vfio_iommu_type1 allow_unsafe_interrupts=1
 
Last edited:
I just tried the same thing on windows 11, it didn't work. I did: 1. Set up the VM, 2. installed win11 on it, 3. installed NVidia drivers for the gpu, 4. set the gpu connected to the VM as primary, 5. proxmox console (the vnc thing in the Gui) stopped working, 6. attached a monitor to the gpu output, 7. realized theres no ouput ... I tried rebooting the pve, on the monitor it displayed the boot screen (the screen that says press del to enter bios etc.), then just went black, cuz you have to blacklist it to give it to a VM, started the VM, but still no output, pve says the VM was running for like 5 mins so it cant be it didnt have enough time to boot. The VM also has the same settings as yours, no idea whats causing the problem. Btw when i go to device manager on the win11 VM it says the gpus showing error 43 (didnt start correctly) even with the drivers installed, perchance you used drivers from virtio or somewhere else? I used the original NVidia drivers from their website. Gonna also try win10 VM too later.
And also, yeah, I got the same lines of code in the machine as you posted, I didn't post it yesterday because I was already annoyed by this thing.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!