GPU passthrough working but VM not using the GPU

helixu4

New Member
Mar 26, 2022
1
0
1
Hello everyone,

I have been searching and trying so many different things and I just can't seem to get the VM to use the GPU.

I have gotten the GPU passthrough to "work", the GPU shows up in my Windows 10 VM, I can install the Nvidia driver and the Device Manager says the device is working.
However the VM does not use it at all. No apps uses the GPU only the "Standard vga" that comes with proxmox/qemu.

Whenever I launch any application that requires a proper GPU, it does not detect it or use it. If I connect with NoMachine the GPU is not used and I cannot change the resolution either.

I have tried to disable the qemu display and only using the GPU as display without any luck.
I have tried to use the GPU with "use as primary GPU" flag without any luck.

Here is the VM conf file:
agent: 1
bios: ovmf
boot: order=ide0;ide2;net0
cores: 6
cpu: SandyBridge
efidisk0: local-storage:117/vm-117-disk-1.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
hostpci0: 0000:03:00,pcie=1
ide0: local-storage:117/vm-117-disk-0.qcow2,size=50G
ide2: local:iso/virtio-win.iso,media=cdrom,size=528322K
machine: pc-q35-6.1
memory: 8192
meta: creation-qemu=6.1.1,ctime=1648309423
name: tvcontroller
net0: e1000=0A:8A:57:10:A2:A1,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsihw: virtio-scsi-pci
smbios1: uuid=93145399-827d-451a-aec4-a3408cb9dbdd
sockets: 2
vga: std
vmgenid: 27e80229-fbd1-4b64-942e-31c4d655ec3d

I use this in GRUB config:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=efifb:eek:ff video=vesafb:eek:ff"

/etc/modprobe.d/iommu_unsafe_interrupts.conf :
options vfio_iommu_type1 allow_unsafe_interrupts=1

/etc/modprobe.d/pve-blacklist.conf :
blacklist nvidiafb
blacklist nvidia
blacklist radeon
blacklist nouveau

I bit unsure about this one, followed a guide for GPU passthrough and it told me to add this tho in /etc/modprobe.d/vfio.conf: (changed the ids to match mine)
options vfio-pci ids=10de:1c03 disable_vga=1

I am at a loss, I plan on using the VM to do some video encoding and transcoding so the GPU is needed. Any help is much appreciated!


Nvidia 1060 shows up in Device Manager
e2ee8458c6a0ff1b48012fc9bac2668b.png


No errors, device is working fine
964cfb0c796d35dd812bc826606e074d.png


dxdiag does not show the 1060 as in use
a685b17b4ab764ad1975a3e5ff07633f.png


GPU-Z find the GPU no problem
ee88e960fe44882544002c45f4be8ce7.png
 

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!