Debian9 modprobe.d/Arch modconf hooks (PCI passthrough)

Kernels & Hardware, configuring network, installing services

Debian9 modprobe.d/Arch modconf hooks (PCI passthrough)

Postby Diogenes2025 » 2018-02-08 22:43

I am in the process of doing a PCI passthrough for Debian 9 (Stretch)

I've been relying heavily on Arch Linux PCI Passthrough via OVMF, as it provides more technical details than many other tutorials. Of course, I've been doing my best to alter the instructions when there is a difference between Arch Linux and Debian 9.

Unfortunately, there is one difference I can't work out:

In the Arch PCI passthrough instructions, under Isolating the GPU it says:
Also, ensure that the modconf hook is included in the HOOKS list of mkinitcpio.conf:

From what I can tell based on this, this, and this, it looks like what the Arch Linux modconf hook is doing, in Debian terms, is making sure the /etc/modprobe.d/vfio.conf file is being loaded at boot.

STRIKETHROUGH After reading this page in the Debian Kernel Handbook, it looks like I can force vfio to be loaded at boot by adding "vfio" to the /etc/modules file.

Is this correct?
END STRIKETHROUGH

EDIT: (Wasn't sure how to do a strikethrough on the text above...)

After looking things over again, it looks like the Arch Linux modconf hook is installing configuration files from /etc/modprobe.d at boot.

Am I understanding this correctly? In Debian 9, is it a good idea force the /etc/modprobe.d/vfio.conf file to load at boot?

If yes, can you give me a hint as to how to do it.
Diogenes2025
 
Posts: 4
Joined: 2016-10-03 15:48

Re: Debian9 modprobe.d/Arch modconf hooks (PCI passthrough)

Postby Head_on_a_Stick » 2018-02-09 07:09

/etc/mkinitcpio.conf controls the initramfs so force-loading the module will not be enough.

Try /etc/initramfs-tools/initramfs.conf instead.
User avatar
Head_on_a_Stick
 
Posts: 8005
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to System configuration

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable