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
There is no error for the two commands above, so I restarted as the guide says, but I am not able to boot again. I get the following two errors:
[0.211157] ACPI Error: Needed [Integer/String/Buffer], found [Region] ffff91e37e8e73a8 (20170119/exresop-424)
[0.211163] ACPI Exception: AE_AML_OPERAND_TYPE, Could not execute arguments for [IOB2] (Region) (20170119/nsinit-412)
I can boot with acpi=off as boot option, but if I check the driver of GPU 1 by using lspci -vnn it still says radeon or amdgpu and not vfio-pci.
Iâd be interested to see if a modded bios would work. I know it works for unlocking 560âs without flashing, but I donât have a vega GPU on hand to test with.
I appreciate the lengths you guys go to. Good content.
I tried that before but its still the same result for me.
I did another kernel update and I am now using 4.12.5 and the only thing that changes seems to be the error code and date.
[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)
I also tried everything I mentioned in my post before, but without doing the update, since I read somewhere that a newer kernel could be a problem.
I guess if everything works Fedora should boot on the monitor of my host gpu and not using the guest gpu?
OK, I still have the same error but now I have âvfio-pciâ as driver for my passthrough GPU.
I changed the slots of both GPUs to get this result.
Now I am running the following configuration:
PCIx16_1: HD6450 - 8 Lanes
PCIx16_2: RX460 (passthrough) - 8 Lanes
PCIx16_3: empty
I read somewhere that the following configuration should also work (tried that all the time):
PCIx16_1: RX460 (passthrough) - 16 Lanes
PCIx16_2: empty
PCIx16_3: HD6450 - 2 or 4 Lanes
so one can use all 16 lanes for the passthrough GPU. Unfortunately this does not seem to work for me with the Asus Prime x370-Pro. Is this configuration working with the mentioned AsRock or Gigabyte board from the guide?
I donât have an answer for you, but I can tell you that unless you have a 1080Ti, you wonât come close to saturating 8 lanes, so worrying about this isnât really necessary.
As I understand the GPU in the first slot is always initialised first, so it is always the host GPU. There is supposedly a way around this if you have a card that supports being re-initialised, because then you can uninitialise it after the boot and use it for passthrough that way.
But if I deactivate CSM I get âThe VGA card is not supported by UEFI driverâ. So at the moment I search for a BIOS update to try this.
I plan to buy a Vega 64 or 56 if there are some affordable custom models and as far as I understand my motherboard manual, if I use slot 1 and 2 it runs PCIE 2.0 @ 8 lanes each and slot 1 alone PCIE 3.0 @ 16 lanes.
EDIT:
Successfully updated the BIOS according to this thread:
Turning off CSM works, but still no success to use the 3rd slot as primary GPU.
I would love it if someone who managed to get nvidia cards working in windows 10 on a fedora host, could reply with a copy of their xml for comparison.
my last vm attempted to use a copy of my cards rom as per this thread on stack overflow THIS SOLOUTION , However virt-manager threw up a ton of âfeature not supportedâ errors and failed to boot.
I managed to run win10 as guest, but in the Cinebench I have just arround 32 fps.
Running win10 bare metal I get arround 75 fps.
If I add âkvm_amd npt=0â to the kvm.conf I get arround 50 fps in the benchmark but in games performance seems to be worse. (As far as I read the GPU performance with ryzen is not the best).
Anyone here with better performance?
Also I have a strange problemâŚ
I also installed a xubuntu 17.04 guest with GPU passthrough.
Everything seems to work fine, but if I shutdown the guest, it freezes and also my host,
so I have to force off the host, after that my whole host system seems to be broken.
It shows me the emergency console and before the following error (additionally to the 2 ACPI errors):
EDIT: I configured it like my win10 guest.
I tried exactly the same configuration of the xubuntu guest with and without GPU passthrough.
The first case freezes and the latter one works fine.
Any ideas?
My current GPU passthrough config for xubuntu 17.04 (not sure if hyperv is a windows only setting):