GPU Passthrough Radeon not working

jackydany

Member
Jul 20, 2016
26
1
23
44
Hi,

i am new to this Forum, but i use Proxmox since Version 2 once in a while for testing and playing around.
Not much, but i know how to set up a VM etc :D
I am also famillia with Linux.

My problem:
I have a Xeon Server, 2 CPUs a 4 Cores, 24gb Ram.
Inside working 3 Graphiccards:
1 NVidia for Display output for the Server itself, PCIe Slot2 selected to primary output in Bios at Bootup.
2x Radeon Cards, different ones. These are for the VMs.

I want to build a Windows VM (Win7 + 10) with each one of these cards as a gaming VM to use Steam over network to play Windows-Games on my Linux-Wokstation.
Also i want to use these cards in a Linux VM to use the calculating Power with Kali Linux for example.

But i cant get one of the cards get to work in a normal Windows 7 VM.

If i use vga_disable=1 in vfio.conf , nothing appears in the VM, no card visible.
If i remove it, the card shows up, but no Audio Device AND the card is failing because of resource issues.
I cant remove the default vga.

Here is what i have tried so far:
https://pve.proxmox.com/wiki/Pci_passthrough

<code>
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
</code>


cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd



find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
.......


lsci:

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series]
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series]
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X]
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]


/etc/pve/qemu-server# cat 100.conf
bootdisk: virtio0
cores: 2
hostpci0: 06:00,pcie=1
ide2: local:iso/windows_7_professional_with_sp1_x64_original.iso,media=cdrom
machine: q35
memory: 4096
name: win7test
net0: bridge=vmbr0,e1000=32:65:61:33:63:62
numa: 0
ostype: win7
sata0: local:iso/virtio-win-0.1.118.iso,media=cdrom,size=55632K
smbios1: uuid=831f9517-189e-4b14-b97b-48d9a3a4c60f
sockets: 2
vga: std
virtio0: local-zfs:vm-100-disk-1,size=32G


Because blacklisting the radeon module didnt work really good, i did something different:

http://superuser.com/questions/503697/prevent-radeon-driver-from-attaching-to-specific-pci-devices


lspci -nn | grep ATI
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] [1002:68f9]
05:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series] [1002:aa68]
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X] [1002:683d]
06:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] [1002:aab0]


cat /etc/initramfs-tools/modules
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod

pci_stub ids=1002:68f9,1002:aa68,1002:683d,1002:aab0


update-initramfs -u

dmesg | egrep "pci-stub"
[ 4.196544] pci-stub: add 1002:68F9 sub=FFFFFFFF:FFFFFFFF cls=00000000/00000000
[ 4.196640] pci-stub 0000:05:00.0: claimed by stub
[ 4.196651] pci-stub: add 1002:AA68 sub=FFFFFFFF:FFFFFFFF cls=00000000/00000000
[ 4.196684] pci-stub 0000:05:00.1: claimed by stub
[ 4.196691] pci-stub: add 1002:683D sub=FFFFFFFF:FFFFFFFF cls=00000000/00000000
[ 4.196722] pci-stub 0000:06:00.0: claimed by stub
[ 4.196730] pci-stub: add 1002:AAB0 sub=FFFFFFFF:FFFFFFFF cls=00000000/00000000
[ 4.196764] pci-stub 0000:06:00.1: claimed by stub


vfio.conf

cat /etc/modprobe.d/vfio.conf
options vfio-pci ids=1002:683d,1002:aab0,1002:68f9,1002:aa68




The card wont show up in the VM.
When i delete the
x-vga=on
in the config file of the VM, the card shows up.
But resource issues like i wrote before.
No Audio Hardware visible.



Does some one know where my problem is?

I read a lot, i tried a lot... but i am stuck.

Its just a test-VM on a test-Proxmox installation, i its usefull i can just set all up fresh.

Thanks a lot in advance.

If you need any more output, config files etc please ask for it.

Thank you!
 
I had the same issues with Radeon Cards and the only solution for me was to buy an NVIDIA :/

Would be interesting if the new RX470/RX480 have the similiar problems with passthrough?!

For the new NVIDIA there are some driver issues since NVIDIA is detecting if the card is running in a VM (to push there professional cards). That's something for me to avoid NVIDIA right now.

:/
 
But everywhere it says Radeon is working properly and NVIDIA is difficult.
There are a lot of how to's about radeon cards.
Cant be that i am the only one (or the both of us).
Also my card is not the newest one around. AND i have two cards, both are not working properly....
 
Last edited:
As I already said... I had a Radeon HD 7770 too and it doesn't worked for me as well!

You can just try a newer Radeon (RX470/480) or a NVIDIA