How to Fix Failed to Start Load Kernel Modules in Ubuntu

During system boot or reviewing failed services with systemctl --failed, encountering systemd-modules-load.service: Failed with result 'exit-code' or Failed to start Load Kernel Modules causes concern for Ubuntu desktop and server administrators. While Ubuntu often boots into a functional shell, failing to load hardware modules can leave Wi-Fi, audio, VirtualBox, or proprietary graphics cards completely disabled.

Why Does systemd-modules-load.service Fail in Ubuntu?

The systemd-modules-load service parses configuration directories to pre-load specified Linux kernel modules at boot. Key failure points include:

  • Orphaned Outdated Module Directives: Outdated entries inside /etc/modules or /etc/modules-load.d/ referencing kernel modules that were renamed or removed in newer Linux kernel releases.
  • Unsigned Third-Party Modules Under Secure Boot: Proprietary drivers (such as NVIDIA or VirtualBox guest additions) compiled without machine owner key (MOK) cryptographic signatures rejected by UEFI Secure Boot.
  • Broken DKMS Compilation: Dynamic Kernel Module Support (DKMS) failing to recompile external modules following an automated kernel package upgrade.
  • Typographical Errors in Module Configuration: Misspelled module names or extraneous formatting characters inside configuration text files.

1. Inspect Journal Logs to Identify the Offending Module

The systemd journal records the exact kernel module that failed to load.

sudo systemctl status systemd-modules-load.service

To inspect the detailed log messages showing which specific module triggered the exit failure:

sudo journalctl -u systemd-modules-load.service -b --no-pager

Look for lines indicating: Failed to insert module 'modulename': No such device or Module 'modulename' not found.

2. Clean Stale Directives in /etc/modules and modules-load.d

Once you identify the failing module name from the journal, remove or comment out its entry.

  1. Open /etc/modules in an editor:
    sudo nano /etc/modules
  2. Locate the line containing the failing module name (e.g. vboxdrv or legacy hardware drivers). Comment it out by adding a # at the start of the line, or delete it entirely.
  3. Save the file by pressing Ctrl + O, then Enter, and exit with Ctrl + X.
  4. Inspect custom configurations inside the drop-in folder:
    ls /etc/modules-load.d/
  5. Check any .conf files inside and comment out obsolete module references.

3. Rebuild Broken DKMS Modules (NVIDIA / VirtualBox)

If the failed module belongs to NVIDIA graphics or VirtualBox, rebuilding DKMS packages synchronises them with your current running kernel.

  1. Reinstall current kernel headers:
    sudo apt update
    sudo apt install --reinstall linux-headers-$(uname -r)
  2. Reconfigure DKMS modules:
    sudo dkms autoinstall
  3. Update your initramfs boot image:
    sudo update-initramfs -u -k all

4. Restart systemd-modules-load and Verify Clean Status

Test the service directly to confirm that all configured modules now load smoothly.

sudo systemctl restart systemd-modules-load.service
sudo systemctl status systemd-modules-load.service

Verify that the status indicates Active: active (exited) and Result: success. Finally, confirm that systemctl --failed no longer reports any degraded units.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.