because of the super fancy UI I am currently giving Pop_OS a try.
I now need to setup GPU passthrough but was not able to find specific instructions what to do in regards to the systemd-boot setup. Wendels 2019 Guide is not very specific what to do in a simple setup with two different GPUs, also I am not understanding parts of it.
What I have done so far is I added amd_iommu=on to the ‘options’-line in /boot/efi/loader/entries/Pop_OS-current.conf. Also I added ‘vfio-pci’ to the end of /etc/initramfs-tools/modules.
Next I figure I somehow need to regenerate the image that is loaded during the boot process that includes the new options line, how do I do that in systemd-boot?
Also I think I need to specify somewhere that vfio-pci is actually loaded as well I need to bind my PCI device to vfio-pci!
Hope some of you PopOS guys can point me in the right direction!
Thanks in advance!
Disclamer: I have not successfully gotten GPU passthrough to work yet so this may not be correct, but I think I’m doing this part right. I have succeeded with a couple guest OSs so I know this part is correct.
I never had to edit the conf file, with systemd you can add kernel parameters with kernelstub.
for info:
kernelstub --help
Show Kernel Parameters:
sudo kernelstub -p
Add kernel parameter:
sudo kernelstub -a "amd_iommu=on vfio.pci-ids=1002:731f,1002:ab38"
To remove kernel parameter (if you need to do this later to change a parameter):
Thanks for your reply. While I understand that using the kernelstub command is the preferred way here, it should not differ from editing the file directly.
The weird thing is while vfio-pci was bound to my graphic cards audio device successfully it was unable to bind the card itself. The card always was in use by amdgpu while the sound device was vfio-pci. Since I was unable to resolve this, found no resources mentioning this problem online and am out of time to tinker I am back to Manjaro for now.
P.S. I also switched the two cards around in the different PCIe slots.
P.P.S. I might give this a try again if I have a few days with nothing to do.