Why does /var/log/messages log the error “Failed to start Load Kernel Modules” for the nf_conntrack and ip_vs modules?
Issue
- When creating a configuration file
/etc/modules-load.d/ipvs.conf(this file may be required by certain third-party applications) to load some ip modules automatically across reboot, but the/var/log/messageslogs the following error:
Nov 19 03:43:30 localhost systemd: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Nov 19 03:43:30 localhost systemd: systemd-modules-load.service: Failed with result 'exit-code'.
Nov 19 03:43:30 localhost systemd: Failed to start Load Kernel Modules. <=========
Nov 19 03:43:30 localhost systemd: Starting Apply Kernel Variables...
Nov 19 03:43:30 localhost systemd: Finished Apply Kernel Variables.
Nov 19 03:43:30 localhost systemd: Finished Setup Virtual Console.
Nov 19 03:43:30 localhost systemd: dracut ask for additional cmdline parameters was skipped because no trigger condition checks were met.
Nov 19 03:43:30 localhost systemd: Starting dracut cmdline hook...
Nov 19 03:43:30 localhost systemd-journald[254]: Journal started
Nov 19 03:43:30 localhost systemd-journald[254]: Runtime Journal (/run/log/journal/870d843960884db3a08c40e6395b554f) is 4.3M, max 34.8M, 30.5M free.
Nov 19 03:43:30 localhost systemd: Started Journal Service.
Nov 19 03:43:30 localhost systemd-modules-load[255]: Module 'msr' is built in
Nov 19 03:43:30 localhost systemd-sysusers[256]: Creating group 'nobody' with GID 65534.
Nov 19 03:43:30 localhost systemd-sysusers[256]: Creating group 'users' with GID 100.
Nov 19 03:43:30 localhost systemd-modules-load[261]: sh: line 1: /sbin/sysctl: No such file or directory
Nov 19 03:43:30 localhost systemd-sysusers[256]: Creating group 'dbus' with GID 81.
Nov 19 03:43:30 localhost systemd-sysusers[256]: Creating user 'dbus' (System Message Bus) with UID 81 and GID 81.
Nov 19 03:43:30 localhost systemd-modules-load[255]: Error running install command '/sbin/modprobe --ignore-install nf_conntrack && /sbin/sysctl --quiet --pattern 'net[.]netfilter[.]nf_conntrack.*' --system' for module nf_conntrack: retcode 127
Nov 19 03:43:30 localhost systemd-modules-load[255]: Failed to insert module 'ip_vs': Invalid argument
Environment
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.