NI Drivers Not Loading in My Linux-Based System

Updated Sep 30, 2024

Reported In

Driver

  • NI Linux Device Drivers

Operating System

  • Linux

Issue Details

  • NI Linux Device Drivers were installed successfully, but they do not load correctly:
image.png
 
  • Loading the module with modprobe results in:
modprobe: ERROR: could not insert '<module>': Key was rejected by service

Solution

This error is caused when Secure Boot is unable to validate a kernel module.

NI drivers on Linux are installed by [External] Dynamic Kernel Module System (DKMS), a standard for supporting third-party kernel modules on Linux.  DKMS signs each kernel module during installation. For Secure Boot to validate the module signature, the signing key must be enrolled with the system firmware.

Typically, the signing key is /var/lib/dkms/mok.pub. On Ubuntu, the key is /var/lib/shim-signed/mok/MOK.der.  To enroll this key with the firmware, follow the instructions provided by DKMS on [External] Secure Boot. Key enrollment is a one-time event, after which Secure Boot will permit existing and newly-added signed third-party modules.