I’m trying to do GPU passthrough, but can’t find a way to add the necessary kernel modules.
On Arch, this is done with mkinitcpio.conf. I don’t know how dracut works.
Here’s the step: https://github.com/vanities/GPU-Passthrough-Arch-Linux-to-Windows10
edit
/etc/mkinitcpio.conf
. At the very top of your file you should see a section titled MODULES. Towards the bottom of this section you should see the uncommented line: MODULES= . Add the in the following order before any other drivers (nouveau, radeon, nvidia, etc) which may be listed: vfio vfio_iommu_type1 vfio_pci vfio_virqfd. The line should look like the following:
There’s a dracut.conf file but all it says is to put the config in separate files in dracut.conf.d with name.conf.
Reading the man pages, it says this:
add_dracutmodules+=" <dracut modules> "
Meaning, adding the libvirt kernel modules would look like this in a file named libvirt.conf
:
add_dracutmodules+=" vfio vfio_iommu_type1 vfio_pci vfio_virqfdvfio vfio_iommu_type1 vfio_pci vfio_virqfd "
Is this correct? Then just rebuild with dracut? And this persists after the kernel is updated, right?
Also, i’m using the zen kernel because of the ACS override patch, do i need to add those specific modules to that kernel, or are all kernels affected by this?