From the github instructions...
Make sure you've performed steps 1 through 4 first to ensure the kernel loads the
vfio
modules.
5. Load the
vfio-pci
driver before the original one. This prevents the host from using the GPU and allows for virtualization. These are the default AMD + Sound drivers, but you can find the ones your system is using by running
lspci -nnk
and checking the "Kernel driver in Use" section.
Code:
echo "softdep radeon pre: vfio-pci" >> /etc/modprobe.d/vfio.conf
echo "softdep amdgpu pre: vfio-pci" >> /etc/modprobe.d/vfio.conf
echo "softdep snd_hda_intel pre: vfio-pci" >> /etc/modprobe.d/vfio.conf
6. Refresh the kernel modules and restart:
Code:
update-initramfs -u -k all
shutdown -r now
7. After the restart, validate that the Kernel driver in Use for these PCI devices is
vfio-pci
now, with:
This is an example of what my /etc/modprobe.d/vfio.conf looks like. The first line of your
vfio.conf
will probably be different based on how your computer detects hardware devices.
Code:
options vfio-pci ids=1002:1681,1002:1640
softdep radeon pre: vfio-pci
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci