Radeon HD5450 Passthrough

GLaDOSDan

Active Member
Apr 23, 2017
1
0
41
79
Hey guys,

It's currently 9:30am and started my first foray into KVM PCI passthrough around 8 hours ago. I've made a little bit of progress, but still can't figure it out. Figured I'd post here before I finally get to bed (woops!).

I'm running the following version of Proxmox:

Code:
proxmox-ve: 4.4-86 (running kernel: 4.4.49-1-pve)
pve-manager: 4.4-13 (running version: 4.4-13/7ea56165)
pve-kernel-4.4.35-1-pve: 4.4.35-77
pve-kernel-4.4.49-1-pve: 4.4.49-86
lvm2: 2.02.116-pve3
corosync-pve: 2.4.2-2~pve4+1
libqb0: 1.0.1-1
pve-cluster: 4.0-49
qemu-server: 4.0-110
pve-firmware: 1.1-11
libpve-common-perl: 4.0-94
libpve-access-control: 4.0-23
libpve-storage-perl: 4.0-76
pve-libspice-server1: 0.12.8-2
vncterm: 1.3-2
pve-docs: 4.4-4
pve-qemu-kvm: 2.7.1-4
pve-container: 1.0-97
pve-firewall: 2.0-33
pve-ha-manager: 1.0-40
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u3
lxc-pve: 2.0.7-4
lxcfs: 2.0.6-pve1
criu: 1.6.0-1
novnc-pve: 0.5-9
smartmontools: 6.5+svn4324-1~pve80
zfsutils: 0.6.5.9-pve15~bpo80

I'm trying to pass through an AMD Radeon HD5450 through to an Ubuntu 16.04 guest. This is the contents of the configuration file for this VM:

Code:
bios: seabios
bootdisk: scsi0
cores: 12
hostpci0: 02:00,pcie=1,x-vga=on
ide2: isos:iso/ubuntu-16.04-desktop-amd64.iso,media=cdrom,size=1451056K
machine: q35
memory: 8192
name: tv.dan-uni
net0: e1000=D2:B9:4A:E5:C3:91,bridge=vmbr1
numa: 0
ostype: l26
scsi0: local-lvm:vm-107-disk-1,size=30G
scsihw: virtio-scsi-pci
smbios1: uuid=48531164-0607-4137-8f51-61f479201584
sockets: 1

Here is /etc/modprobe.d/blacklist.conf:
Code:
blacklist radeon
blacklist nouveau

and /etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=1002:68f9,1002:aa68

/etc/modules:
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

I have enabled intel_iommu in my grub configuration and have confirmed with dmesg that IOMMU is functioning as expected.

Relevant lspci:
Code:
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series]
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]

lspci -n -s 02:00:
Code:
02:00.0 0300: 1002:68f9
02:00.1 0403: 1002:aa68

At the moment I have a display connected to the GPU via a HDMI cable. I am experiencing the following problem:

- Power on Proxmox physical host
- Proxmox starts booting, displaying video output, then suddenly stops updating the video on the screen (as if it has hung), though the web UI and SSH etc all boot up fine, as expected
- Power on the virtual machine
- Ubuntu's purple loading screen appears on the display connected to the GPU - yay!
- Display suddeny goes to 'No signal', no way to interact with the Ubuntu VM
- Opening the VNC console displays nothing
- Force 'Stop' the VM
- Power on the VM again
- Entire Proxmox host crashes, unresponsive to ping, everything. Have to do a hard reset.

Nothing in /var/log/kern.log, syslog or messages says anything about the crash. The logs simply just end as if the entire system just dies.

Any ideas? I've been tearing my hair out over this for hours now!

Thank you!
 

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!