Hey!
I followed this guide to set up a windows 10 guest and everything worked fine (finally):
https://forum.level1techs.com/t/ryzen-gpu-passthrough-setup-guide-fedora-26-windows-gaming-on-linux-level-one-techs?source_topic_id=118737
Next I wanted to get a Xubuntu 17.04 guest also working with GPU passthrough and everything seems to work fine too, but if I shutdown the VM, the guest and the host freezes. It looks like it can’t release the GPU on shutdown but I don’t know why. Similar results for a Ubuntu 16.04 LTS and Fedora 26 Workstation guest.
Anyone here with a working linux guest using GPU passthrough with a similar system?
Maybe someone can tell me how I have to configure everything?
Is Q35 and UEFI fine for GPU passthrough on Linux guests?
System:
Asus Prime x370-Pro (Bios 0810 with AGESA update 1.0.0.6a)
AMD Ryzen 7 1700
GPU 1: AMD 6450 in Slot 1
GPU 2: AMD RX 460 in Slot 2 (Passthrough GPU)
What I did so far:
I activated SVM and IOMMU in the UEFI, then I have installed Fedora 26 Workstation.
Next I did the following:
sudo dnf update
sudo dnf install @virtualization
sudo dnf install nano
sudo nano /etc/default/grub
added “iommu=1 amd_iommu=on rd.driver.pre=vfio-pci” to GRUB_CMDLINE_LINUX
sudo nano /etc/modprobe.d/kvm.conf
checked if kvm_amd nested=1 and kvm_intel nested=1 are not activated
sudo nano /etc/modprobe.d/vfio.conf
set the ids (got them by using the bash script) of the GPU to passthrough (GPU 1)
options vfio-pci ids=1002:67ef,1002:aae0
sudo nano /etc/dracut.conf.d/vfio.conf
add_drivers+=“vfio vfio_iommu_type1 vfio_pci”
sudo dracut -f --kver `uname -r`
sudo grub2-mkconfig -o /etc/grub2-efi.cfg
There is no error for the two commands above, so I restarted as the guide says, but I get the following two errors:
[0.205289] ACPI Error: Needed [Integer/String/Buffer], found [Region] ffff98bb6e16e000 (20170303/exresop-424)
[0.205296] ACPI Exception: AE_AML_OPERAND_TYPE, Could not execute arguments for [IOB2] (Region) (20170303/nsinit-412)
Changes on default configuration:
Overview:
- Firmware: UEFI x86_64
- Chipset: Q35
CPUs:
- Configuration: Copy host CPU configuration
Boot Options:
- Boot device order: Enable boot menu and select VirtIO Disk 1 and SATA CDROM 1
VirtIO Disk 1:
- Performance options: Cache mode writeback
IDE CDROM 1:
- Disk Bus: SATA
Controller USB:
- Model: Usb 3
Removed:
- Tablet
- Display Spice
- Console
- Channel spice
- Video QXL
- USB Redirector 1
- USB Redirector 2
Added:
- 2nd Mouse and Keyboard as USB Host Device
- Passthrough GPU (and its audio) as PCI Host Device