How do I add a module to Linode's custom kernel?
I am trying to install wireguard, but I am receiving the following message when installing it, and I also receive errors from depmod
and modprobe
when trying to check the module:
DKMS: install completed.
Module build for kernel 5.1.2-x86_64-linode124 was skipped since the
kernel headers for this kernel does not seem to be installed.
depmod: WARNING: could not open /lib/modules/5.1.2-x86_64-linode124/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/5.1.2-x86_64-linode124/modules.builtin: No such file or directory
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/5.1.2-x86_64-linode124/modules.builtin.bin'
Would I be able to add this kernel module at all? If not, could Linode add it to their kernel so that I can use it?
3 Replies
You would not be able to add any modules to Linode's custom kernel, as it is supplied at boot, and the headers are not present on your disk. If you need to add modules to your kernel, It's recommended that you use a distribution-supplied or custom-compiled kernel.
If you would like to see a module added to Linode's custom kernel, you can open a support ticket requesting this. You'll want to keep in mind that they may decide not to add it, and if they do decide to add it, it will not be present until they have been able to add it to a new kernel release.
At least historically, Linode’s kernel was based on the upstream kernel.org vanilla sources, so it would be possible to fetch those headers and build the module from the equivalent version.
Is that no longer the case?
I'd also like to see this module added! WireGuard is a great utility and would only add value to the Linode kernels, imho.