TUF AMD 7800XT OC Cannot GPU passthru properly

bitnotbytes

New Member
Oct 3, 2024
6
1
3
Hello

I have maybe tried for a year now (on and off) to GPU Passthru my amd card via proxmox, arch and ubuntu. And are giving it the last try now before i sell this and buy another card.

I have two cards:
1. NVIDIA 3060 GPU
2. TUF AMD 7800XT OC GPU

Nvidia card has been a smooth sail and no problems, the amd in regards have been a shitty road.

I am not going to describe in details everything i have done, because its so much.
But i will quickly summaries where i am now:
I have disabled ROM, added for a primary GPU, adding pcie and giving it a spin (Just passthru the video, not the sound). When i do this i dont get the screen entirely: https://imgur.com/a/PQ5xlZR

BTW the gpu passthru is right because i can passthru my NVIDIA card.

for more information about the config of the vm:
Code:
agent: 1
args: -cpu Cooperlake,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,+vmx
balloon: 0
bios: ovmf
boot: order=sata0
cores: 16
cpu: x86-64-v2-AES
efidisk0: vmdisk1:vm-102-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:03:00.0,pcie=1,rombar=0,x-vga=1
machine: pc-q35-9.0
memory: 32000
meta: creation-qemu=9.0.2,ctime=1725720208
name: gaming
net0: e1000=xxxxx,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
parent: test
sata0: vmdisk1:vm-102-disk-1,size=250G
scsihw: virtio-scsi-single
smbios1: uuid=xxxx
sockets: 1
tags: personal;windows;gaming
tpmstate0: vmdisk1:vm-102-disk-2,size=4M,version=v2.0
usb0: host=1-2,usb3=1
usb1: host=1-7,usb3=1
usb2: host=1-9,usb3=1
usb3: host=1-8,usb3=1
usb4: host=1-5.1,usb3=1
vga: none
vmgenid: xxx


Also here are my lspci -nnk info

Code:
01:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch [1002:1478] (rev 11)
        Kernel driver in use: pcieport
02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch [1002:1479] (rev 11)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch [1002:1479]
        Kernel driver in use: pcieport
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 32 [Radeon RX 7700 XT / 7800 XT] [1002:747e] (rev c8)
        Subsystem: ASUSTeK Computer Inc. Navi 32 [Radeon RX 7700 XT / 7800 XT] [1043:05fd]
        Kernel driver in use: vfio-pci
        Kernel modules: amdgpu
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 HDMI/DP Audio [1002:ab30]
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 HDMI/DP Audio [1002:ab30]
        Kernel driver in use: vfio-pci
        Kernel modules: snd_hda_intel

Recently just passthru the 03:00.0. And everything is in different IOMMU groups.

EDIT:
Also forgot to mention when i just use VNC plus this config, i can perfectly install drivers etc and its detected in WIndows 11 with no errors, just cant view it on the screen...
 
Last edited:
Hey,

begin from the beginning.
Good guide from Proxmox user :
https://forum.proxmox.com/threads/p...x-ve-8-installation-and-configuration.130218/

Before retrying your blacklisting options ( try the another solution that you can found on the post of the guy tutorial), here 's my cpu tags that working fine for me:
1728039090847.png

Another think. With AMD stuff, you need to regularly check Host Bios updates. They include regurlarly debug from hardware compatibility, that's can explain why all of yours tested OS have the same problm.

I've no amd gpu card, but no reason that does'nt work. :)
(gaming VM ? you WANT to enable numa)
 
Hey, thanks for the answer @Pifouney !

I tried to follow the guide you linked and checking everything was alright for my part (good guide btw, very clear).

Still getting the screen problem from the img i linked...
I followed the guide to the brim.

Sorry i forgot to mention i have intel CPU Intel I9 13900K, also used your CPU tags (ofc not the amd ones).

Its a weird issue, and i know its not broken. Because i tried earlier to download windows bare metal, and it worked like a charm.

EDIT:
Also this is my /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt nomodeset initcall_blacklist=sysfb_init"

i know i already have the right iommus, but i just added it to test (really just need "intel_iommu=on iommu=pt").
 
Last edited:
ahahah ! We maybe found the issue:
""EDIT:
Also this is my /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt nomodeset initcall_blacklist=sysfb_init"

i know i already have the right iommus, but i just added it to test (really just need "intel_iommu=on iommu=pt").""

Are you sure you're not in systemd managed boot that is the default installation process of proxmox ? :D
 
Too be honest, i really never checked that. Just standard thought it was always grub as a bootloader hahaha, but i can confirmed i use grub yeah. Just restarted the proxmox and grub its popping up...
 
Too be honest, i really never checked that. Just standard thought it was always grub as a bootloader hahaha, but i can confirmed i use grub yeah. Just restarted the proxmox and grub its popping up...
real grub ? or black and white choice ?
 
sorry for your situation, i've only passtrough nvidia gpu, no real idea more for AMD :/
 
I am going for the last try with trying to boot win11 with legacy bios and see if uefi is doing something, and try again with taking out the rom, found this articale:
https://forums.unraid.net/topic/132895-radeon-rx-7900-xt-passthrough/

Its the 7900xt but worth a try. @Pifouney

Maybe i did it wrong, i will update when i do it and how i goes:)

If not i prob will just sell it.
Hey OP, did you figure it out? I aslo have a quadro p4000 that is passed without issue. But the rx 7800 xt is not properly recognized by the windows VM. I do have display out, but the drivers dont want to install because the VM js not fully recognizing the gpu.
 
Hey OP, did you figure it out? I aslo have a quadro p4000 that is passed without issue. But the rx 7800 xt is not properly recognized by the windows VM. I do have display out, but the drivers dont want to install because the VM js not fully recognizing the gpu.
Hey, sorry for the late answer. No i havent tried it yet (so much shits going on rn). I recently asked some expertes with gpu passthru of the gpu (they are hosting gaming vms) and waiting answers for them, hope they will answer.

If you tried it out, please update too (trying when i have time, maybe next weekend).
 

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!