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
 
With NVidia cards, enable Primary GPU (x-vga=1) in the web GUI. Then you have only the passthrough GPU in the VM and it should show the boot screen of the VM.

EDIT: More recent Proxmox versions don't disable the virtual graphics when using Primary GPU: set Display to None (vga: none) yourself.
 
Last edited:
  • Like
Reactions: xmox-rocks
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:


I use this in GRUB config:


/etc/modprobe.d/iommu_unsafe_interrupts.conf :


/etc/modprobe.d/pve-blacklist.conf :


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)


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
I have exactly the same problem. EXACTLY. Can anyone help here?

@leesteken i have done what you’ve said and nothing changes
 
Last edited:
  • Like
Reactions: carminefox
I also have this problem. I have an old PC with an i7-2600S CPU and an NVIDIA Quadro NVS290 GPU. I have configured passthrough for Windows 10.

When I start the VM, the display turns on, but all I see on the screen are some artifacts from the Proxmox boot. I can use Windows on virtio VGA, but there is no change on the display connected to the GPU. It only turns on and off with the VM and shows something that looks like Proxmox boot leftovers. I have attached a screen.

In Windows, the drivers installed without any problems, and I can see my GPU in GPU-Z.

Solved,
For me it was BIOS option in host "Use Multiple Display".
 

Attachments

  • 20240720_213701.jpg
    20240720_213701.jpg
    671.9 KB · Views: 13
Last edited:
Ciao a tutti,

Ho cercato e provato tantissime cose diverse, ma non riesco proprio a far sì che la VM utilizzi la GPU.

Sono riuscito a far "funzionare" il passthrough GPU, la GPU viene visualizzata nella mia VM Windows 10, riesco a installare il driver Nvidia e Gestione dispositivi afferma che il dispositivo funziona.
Tuttavia la VM non la usa affatto. Nessuna app usa la GPU, solo la "Standard vga" che viene fornita con proxmox/qemu.

Ogni volta che avvio un'applicazione che richiede una GPU appropriata, non la rileva né la usa. Se mi connetto con NoMachine la GPU non viene usata e non posso nemmeno cambiare la risoluzione.

Ho provato a disattivare il display QEMU e a usare solo la GPU come display, ma senza successo.
Ho provato a usare la GPU con il flag "usa come GPU primaria", ma senza successo.

Ecco il file di configurazione della VM:


Io lo uso nella configurazione di GRUB:


/etc/modprobe.d/iommu_unsafe_interrupts.conf:


/etc/modprobe.d/pve-blacklist.conf :


Non sono sicuro di questo, ho seguito una guida per il passthrough GPU e mi ha detto di aggiungere questo in /etc/modprobe.d/vfio.conf: (ho cambiato gli ID per farli corrispondere ai miei)


Sono in perdita, ho intenzione di usare la VM per fare un po' di codifica e transcodifica video, quindi la GPU è necessaria. Ogni aiuto è molto apprezzato!


Nvidia 1060 viene visualizzato in Gestione dispositivi
e2ee8458c6a0ff1b48012fc9bac2668b.png


Nessun errore, il dispositivo funziona correttamente
964cfb0c796d35dd812bc826606e074d.png


dxdiag non mostra il 1060 come in uso
a685b17b4ab764ad1975a3e5ff07633f.png


GPU-Z trova la GPU senza problemi
ee88e960fe44882544002c45f4be8ce7.png
Same problem
 
set the Display to none in VM hardware tab.
i have 3 passthrough working correctly. 2 nvidia and 1 intel igpu.

1724925574110.png
 
Not sure what to do here, as I told you I am new to passthrough vms and QEMU in general.

PS: Booted the OS with the passthrough on using the Virtual Machine Manager display as output, the GPU does not do anything and appears as Microsoft Basic Adaptor in Device Manager.
 

Attachments

  • 1724957378416.png
    1724957378416.png
    32.9 KB · Views: 11
Last edited:

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!