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