How to Fix Failed to Start systemd modules load service in Ubuntu

The systemd-modules-load.service unit in Ubuntu parses configuration files situated in /etc/modules-load.d/, /run/modules-load.d/, and /usr/lib/modules-load.d/ to load static kernel modules into memory during early boot. Following a kernel package update, custom driver installation, or virtualization upgrade, the boot console may halt and report: [FAILED] Failed to start systemd-modules-load.service - Load Kernel Modules. This failure indicates that systemd was instructed to load a module that does not exist in the current kernel tree, has unresolved dependencies, or was blocked by secure boot policies.

Identify Failing Kernel Modules via systemctl and journalctl

Querying the systemd journal reveals the exact kernel module causing the service to abort:

  1. Open a terminal shell session or log in via SSH.
  2. Check the operational state of the service:
    systemctl status systemd-modules-load.service
  3. Query the detailed journal output:
    journalctl -u systemd-modules-load.service -b --no-pager
  4. Look for log entries stating: Failed to insert module 'module_name': No such file or directory or Operation not permitted.

Inspect and Clean Module Configuration Files in /etc/modules-load.d/

Obsolete driver packages frequently leave deprecated module names in configuration directories:

  1. Inspect the contents of the primary module loading file:
    cat /etc/modules
  2. Inspect all supplementary module files:
    cat /etc/modules-load.d/*.conf
  3. Locate the specific failing module identified in the journal logs (e.g. legacy VirtualBox guest modules, obsolete RAID drivers, or removed Wi-Fi adapters).
  4. Open the file with an editor (e.g. sudo nano /etc/modules) and comment out the failing line by prefixing it with a hash symbol (#), or delete the obsolete .conf file.
  5. Restart the service:
    sudo systemctl restart systemd-modules-load.service

Recompile Out-of-Tree Kernel Modules via DKMS

Third-party kernel modules (such as NVIDIA drivers, ZFS, or WireGuard) require recompilation following kernel upgrades:

  1. Check the operational status of all Dynamic Kernel Module Support (DKMS) modules:
    dkms status
  2. If any module reports broken or lacks build status for your active kernel:
    sudo dkms autoinstall
  3. Update your initial ramdisk environment to incorporate rebuilt modules:
    sudo update-initramfs -u

Verify UEFI Secure Boot Module Signing

If UEFI Secure Boot is active, the Linux kernel refuses to insert unsigned third-party modules:

  1. Check if Secure Boot is enforcing restrictions:
    mokutil --sb-state
  2. If Secure Boot is enabled and blocking custom modules, enroll a Machine Owner Key (MOK) or temporarily disable Secure Boot in the computer’s UEFI/BIOS settings.

Executing these module configurations and DKMS updates resolves systemd-modules-load.service failures, ensuring clean, error-free system boots in Ubuntu.

Get the best tech tips delivered straight to your inbox.

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