PCIE passthrough - VM lockup

I’m trying to install Windows on a Ryzen 2700x with a Vega 64 using PCIE passthrough running Ubuntu 20.04. (I ended up having to delete my old VM while trying to fix stuttering issues after somehow making the existing virtual disk unusable.)

I can boot the VM without problems if I don’t pass through the graphics card, but if I add a host device in virt-manager for either the graphics card, the sound device on the graphics card, or both, then the virtual machine locks up on boot.

I’m sure I am doing something wrong with the PCIE passthrough configuration, but I don’t know where to look. Can anyone help?

This is the configuration of the VM: https://pastebin.com/aYHk0aAx
The GRUB config: https://pastebin.com/ruFnXZ6T
Contents of /etc/modprobe.d/amdgpu.conf:

softdep amdgpu pre: vfio vfio-pci
softdep radeon pre: vfio vfio-pci
softdep radeon* pre: vfio vfio-pci

This is a bit of a shot in the dark, but try building OVMF from source. I’ve noticed that some distributions of it (looking at you Fedora), tend to be broken. I’ve encountered this issue for multiple years on Fedora, and on 19.10 Ubuntu.

If you’re able to retain control over the host but the VM is locked, I’d give that a try.

Well, I managed to fix it with this…

Now that I have control of the VM again, the question is, are the lockups gone…

1 Like