Custom kernel module-loading problem

I’m making my first attempt at creating a custom VyOS ISO with a custom kernel, using the Docker method described in the documentation. The ISO boots successfully in a VM managed by incus, and the Mellanox ConnectX-5 network interface I have passed through to the VyOS VM is listed in lspci, but the mlx5_core kernel module does not load. The journal mentions Loading of unsigned module is rejected a few times.

Manually trying to load the module fails:

# modprobe --verbose mlx5_core
insmod /lib/modules/6.6.54-vyos/updates/dkms/mlxfw.ko
modprobe: ERROR: could not insert 'mlx5_core': Key was rejected by service

Using the 1.5-rolling ISO built by the VyOS developers works great—my ConnectX-5 interface functions normally with that ISO.

What step am I missing?

The problem was that module signing was enabled with my custom kernel. Adding CONFIG_MODULE_SIG=n to my kernel config allowed my kernel to load the mlx5_core module.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.