Failed to load some kernel modules

Hello!

I’m using the latest Fedora Workstation - 5.14.18-300.fc35.x86_64.
Whenever I boot my laptop, I get a black screen with Failed to start Load Kernel Modules. However, it still manages to start successfully and everything seems to be working fine.

I found the following logs in the journal.

Nov 23 19:54:50 fedora systemd-modules-load[285]: Inserted module 'ipmi_devintf'
Nov 23 19:54:50 fedora systemd-modules-load[293]: sh: line 1: /sbin/sysctl: No such file or directory
Nov 23 19:54:50 fedora systemd-modules-load[285]: Inserted module 'ip6_tables'
Nov 23 19:54:50 fedora systemd-modules-load[285]: 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 23 19:54:50 fedora kernel: audit: type=1325 audit(1637690090.932:5): table=nat family=2 entries=0 op=xt_register pid=285 subj=kernel comm="systemd-modules"
Nov 23 19:54:50 fedora systemd-modules-load[285]: Failed to insert module 'ip6table_nat': Invalid argument
Nov 23 19:54:50 fedora systemd-modules-load[285]: Inserted module 'iptable_nat'
Nov 23 19:54:50 fedora systemd[1]: Starting Create Volatile Files and Directories...
Nov 23 19:54:50 fedora systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Nov 23 19:54:50 fedora systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Nov 23 19:54:50 fedora systemd[1]: Failed to start Load Kernel Modules.
Nov 23 19:54:50 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 23 19:54:50 fedora kernel: fbcon: Taking over console
Nov 23 19:54:50 fedora kernel: audit: type=1130 audit(1637690090.934:6): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

To me, it looks like nf_conntrack and ip6table_nat cannot be loaded because of some weird error. What’s even more strange is that these modules are actually loaded without issues a few seconds later:

Nov 23 19:54:53 fedora systemd[1]: systemd-journald.service: Deactivated successfully.
Nov 23 19:54:53 fedora systemd-modules-load[661]: Module 'msr' is built in
Nov 23 19:54:53 fedora systemd-modules-load[661]: Module 'ipmi_si' is deny-listed
Nov 23 19:54:53 fedora systemd-modules-load[661]: Inserted module 'ip6table_nat'
Nov 23 19:54:53 fedora systemd[1]: Finished Load Kernel Modules.
Nov 23 19:54:53 fedora systemd[1]: Mounted FUSE Control File System.
Nov 23 19:54:53 fedora systemd[1]: Mounted Kernel Configuration File System.
$ lsmod | grep -e nf_conntrack -e ip6table_nat
nf_conntrack_netbios_ns    16384  1
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
ip6table_nat           16384  0
nf_nat                 53248  3 ip6table_nat,nft_chain_nat,iptable_nat
nf_conntrack          163840  5 xt_conntrack,nf_nat,nf_conntrack_netbios_ns,nf_conntrack_broadcast,xt_CT
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
ip6_tables             36864  7 ip6table_nat

Do you guys have any suggestions on how to resolve this? I don’t this it’s causing any serious issues but it annoying and it makes the boot a bit slower.

Hello @kloyan ,
Systemd will produce messages while it is starting up the system services you are seeing. During boot services get started and produce a message, if a service gets started that has a prerequisite that hasn’t started yet, systemd will produce an error message that will disappear once the prerequisite is satisfied.

1 Like