You are not logged in.

#1 2022-05-30 07:43:22

vlatkoB
Member
Registered: 2015-03-24
Posts: 6

[Solved] System works, but "Failed to start Load Kernel Modules"

Hi, my system boots and works, but not always. I noticed something is wrong via VirtualBox, it stopped working few days ago due to missing kernel modules. When I reload modules, VB app worked, but not the images. Like reloading modules did something and system wouldn't shutdown. I uninstalled VB, but the issue remains.

I searched many new and old posts on various places, but nothing helped. Mostly doesn't apply to my problem, or at least I was not able to recognise that. I tried:
- mkinitcpio -p linux
- pacman -S linux
- reinstalled linux-firmware


This is my system info:

$ uname -a
Linux F17 5.18.0-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 May 2022 22:00:36 +0000 x86_64 GNU/Linux
$ pacman -Q linux
linux 5.18.arch1-1
$ systemctl status systemd-modules-load.service
× systemd-modules-load.service - Load Kernel Modules
     Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
     Active: failed (Result: signal) since Mon 2022-05-30 08:48:54 CEST; 37min ago
       Docs: man:systemd-modules-load.service(8)
             man:modules-load.d(5)
    Process: 339 ExecStart=/usr/lib/systemd/systemd-modules-load (code=killed, signal=SEGV)
   Main PID: 339 (code=killed, signal=SEGV)
        CPU: 812ms

svi 30 08:48:53 F17 systemd-modules-load[339]: Inserted module 'crypto_user'
svi 30 08:48:53 F17 systemd-modules-load[339]: Inserted module 'sg'
svi 30 08:48:53 F17 systemd-modules-load[339]: Inserted module 'ipmi_devintf'
svi 30 08:48:54 F17 systemd[1]: systemd-modules-load.service: Main process exited, code=killed, status=11/SEGV
svi 30 08:48:54 F17 systemd[1]: systemd-modules-load.service: Failed with result 'signal'.
svi 30 08:48:54 F17 systemd[1]: Failed to start Load Kernel Modules.
# systemctl restart systemd-modules-load.service

  doesn't end, i.e. get's stuck.

$ cat /etc/fstab 
# /dev/nvme0n1p2 UUID=d3092cad-3bf9-4431-9966-d0c89e6c718b
/dev/nvme0n1p2      	/         	ext4      	rw,relatime	0 1

# /dev/nvme0n1p1 UUID=81C9-A392
/dev/nvme0n1p1      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro0 2

# /dev/nvme0n1p3 UUID=d1c0de40-c0de-4484-b772-cd8d2d1e3d37
/dev/nvme0n1p3      	/home     	ext4      	rw,relatime	0 2

# SWAP is not on partition, but in a file - 16G
/home/swapfile none swap defaults 0 0
$ cat /boot/grub/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root d3092cad-3bf9-4431-9966-d0c89e6c718b
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=3
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=3
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d3092cad-3bf9-4431-9966-d0c89e6c718b' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root 81C9-A392
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=d3092cad-3bf9-4431-9966-d0c89e6c718b rw  loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/intel-ucode.img /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-d3092cad-3bf9-4431-9966-d0c89e6c718b' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-d3092cad-3bf9-4431-9966-d0c89e6c718b' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 81C9-A392
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=d3092cad-3bf9-4431-9966-d0c89e6c718b rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-d3092cad-3bf9-4431-9966-d0c89e6c718b' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 81C9-A392
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=d3092cad-3bf9-4431-9966-d0c89e6c718b rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

Tried changing

linux	/vmlinuz-linux root=UUID=d3092cad-3bf9-4431-9966-d0c89e6c718b rw  loglevel=3 quiet

to

linux	/boot/vmlinuz-linux root=UUID=d3092cad-3bf9-4431-9966-d0c89e6c718b rw  loglevel=3 quiet

in grub prompt, but that didn't succeed.

# journalctl -b | grep -i module
svi 30 08:48:53 F17 kernel: ACPI: Added _OSI(Module Device)
svi 30 08:48:53 F17 systemd[1]: Starting Load Kernel Module configfs...
svi 30 08:48:53 F17 systemd[1]: Starting Load Kernel Module drm...
svi 30 08:48:53 F17 systemd[1]: Starting Load Kernel Module fuse...
svi 30 08:48:53 F17 systemd[1]: Starting Load Kernel Modules...
svi 30 08:48:53 F17 systemd[1]: Finished Load Kernel Module configfs.
svi 30 08:48:53 F17 systemd[1]: Finished Load Kernel Module drm.
svi 30 08:48:53 F17 systemd[1]: Finished Load Kernel Module fuse.
svi 30 08:48:53 F17 systemd-modules-load[339]: Inserted module 'crypto_user'
svi 30 08:48:53 F17 systemd-modules-load[339]: Inserted module 'sg'
svi 30 08:48:53 F17 systemd-modules-load[339]: Inserted module 'ipmi_devintf'
svi 30 08:48:54 F17 kernel: nvidia: loading out-of-tree module taints kernel.
svi 30 08:48:54 F17 kernel: nvidia: module license 'NVIDIA' taints kernel.
svi 30 08:48:54 F17 kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
svi 30 08:48:54 F17 kernel: CPU: 8 PID: 339 Comm: systemd-modules Tainted: P           OE     5.18.0-arch1-1 #1 b71a70fe104889aac2f32556bc52f649da2881d2
svi 30 08:48:54 F17 kernel:  nvidia_init_module+0x22e/0x5b0 [nvidia 41a8e80d4727066c67f87d1723f6a7740a16e698]
svi 30 08:48:54 F17 kernel:  ? nvidia_init_module+0x5b0/0x5b0 [nvidia 41a8e80d4727066c67f87d1723f6a7740a16e698]
svi 30 08:48:54 F17 kernel:  nvidia_frontend_init_module+0x50/0x91 [nvidia 41a8e80d4727066c67f87d1723f6a7740a16e698]
svi 30 08:48:54 F17 kernel:  ? nvidia_init_module+0x5b0/0x5b0 [nvidia 41a8e80d4727066c67f87d1723f6a7740a16e698]
svi 30 08:48:54 F17 kernel:  do_init_module+0x4a/0x240
svi 30 08:48:54 F17 kernel:  __do_sys_init_module+0x138/0x1b0
svi 30 08:48:54 F17 kernel: Modules linked in: mtd iTCO_vendor_support hid_multitouch(+) acpi_cpufreq(-) coretemp(+) fjes(+) snd_pcm_dmaengine mei_hdcp(+) mei_pxp(+) mt76 kvm_intel asus_nb_wmi pmt_telemetry snd_hda_codec_hdmi(+) asus_wmi intel_rapl_msr pmt_class snd_hda_intel nvidia(POE+) wmi_bmof platform_profile snd_intel_dspcfg kvm mac80211 snd_intel_sdw_acpi r8169 snd_hda_codec irqbypass realtek crct10dif_pclmul spi_intel_pci snd_hda_core i2c_i801 mdio_devres libarc4 crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd cryptd intel_cstate intel_uncore i915 pcspkr cfg80211 snd_hwdep i2c_smbus spi_intel libphy snd_pcm processor_thermal_device_pci_legacy processor_thermal_device rfkill snd_timer drm_buddy ucsi_acpi processor_thermal_rfim mei_me vfat intel_lpss_pci fat processor_thermal_mbox ttm snd typec_ucsi intel_lpss mei processor_thermal_rapl thunderbolt drm_dp_helper typec idma64 intel_rapl_common tpm_crb soundcore intel_vsec roles intel_soc_dts_iosf intel_gtt tpm_tis mac_hid i2c_hid_acpi wmi
svi 30 08:48:54 F17 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
svi 30 08:48:54 F17 systemd[1]: systemd-modules-load.service: Main process exited, code=killed, status=11/SEGV
svi 30 08:48:54 F17 systemd[1]: systemd-modules-load.service: Failed with result 'signal'.
svi 30 08:48:54 F17 systemd[1]: Failed to start Load Kernel Modules.
# journalctl -b | grep -i fail
svi 30 08:48:53 F17 kernel: ACPI BIOS Error (bug): Failure creating named object [\_TZ.ETMD], AE_ALREADY_EXISTS (20211217/dswload2-326)
svi 30 08:48:53 F17 kernel: pci 10000:e0:06.0: BAR 13: failed to assign [io  size 0x1000]
svi 30 08:48:53 F17 systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
svi 30 08:48:53 F17 systemd[1]: Repartition Root Disk was skipped because all trigger condition checks failed.
svi 30 08:48:53 F17 systemd[1]: First Boot Wizard was skipped because of a failed condition check (ConditionFirstBoot=yes).
svi 30 08:48:53 F17 systemd[1]: Rebuild Hardware Database was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
svi 30 08:48:53 F17 systemd[1]: Create System Users was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
svi 30 08:48:53 F17 systemd[1]: First Boot Complete was skipped because of a failed condition check (ConditionFirstBoot=yes).
svi 30 08:48:54 F17 systemd[1]: Virtual Machine and Container Storage (Compatibility) was skipped because of a failed condition check (ConditionPathExists=/var/lib/machines.raw).
svi 30 08:48:54 F17 kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
svi 30 08:48:54 F17 kernel: cfg80211: failed to load regulatory.db
svi 30 08:48:54 F17 kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
svi 30 08:48:54 F17 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
svi 30 08:48:54 F17 systemd[1]: systemd-modules-load.service: Failed with result 'signal'.
svi 30 08:48:54 F17 systemd[1]: Failed to start Load Kernel Modules.
svi 30 08:48:54 F17 kernel: spi-nor: probe of spi0.0 failed with error -2
svi 30 08:48:54 F17 systemd[1]: Rebuild Dynamic Linker Cache was skipped because all trigger condition checks failed.
svi 30 08:48:54 F17 systemd[1]: Store a System Token in an EFI Variable was skipped because of a failed condition check (ConditionPathExists=/sys/firmware/efi/efivars/LoaderFeatures-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f).
svi 30 08:48:54 F17 systemd[1]: Commit a transient machine-id on disk was skipped because of a failed condition check (ConditionPathIsMountPoint=/etc/machine-id).
svi 30 08:48:55 F17 systemd[1]: Rebuild Journal Catalog was skipped because of a failed condition check (ConditionNeedsUpdate=/var).
svi 30 08:48:55 F17 systemd[1]: Update is Completed was skipped because all trigger condition checks failed.
svi 30 08:48:55 F17 kernel: ucsi_acpi USBC000:00: PPM init failed (-110)
svi 30 08:48:55 F17 systemd[1]: SSH Key Generation was skipped because all trigger condition checks failed.
svi 30 08:48:55 F17 systemd[1]: Manage Sound Card State (restore and store) was skipped because of a failed condition check (ConditionPathExists=/etc/alsa/state-daemon.conf).
svi 30 08:48:55 F17 redis-server[699]: 699:M 30 May 2022 08:48:55.918 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
svi 30 08:48:56 F17 dbus-daemon[672]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
svi 30 08:48:56 F17 audit[885]: CRED_ACQ pid=885 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=? acct="lightdm" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
svi 30 08:48:58 F17 kernel: scsi 1:0:0:1: Failed to get diagnostic page 0x1
svi 30 08:48:58 F17 kernel: scsi 1:0:0:1: Failed to bind enclosure -19
svi 30 08:49:00 F17 audit[1016]: USER_AUTH pid=1016 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_ecryptfs,pam_permit,pam_faillock,pam_gnome_keyring acct="vlatko" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
svi 30 08:49:00 F17 dbus-daemon[672]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
svi 30 08:49:00 F17 kernel: audit: type=1100 audit(1653893340.933:62): pid=1016 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_ecryptfs,pam_permit,pam_faillock,pam_gnome_keyring acct="vlatko" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
svi 30 08:49:00 F17 audit[1016]: CRED_ACQ pid=1016 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_ecryptfs,pam_permit,pam_faillock,pam_gnome_keyring acct="vlatko" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
svi 30 08:49:00 F17 kernel: audit: type=1103 audit(1653893340.966:66): pid=1016 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_ecryptfs,pam_permit,pam_faillock,pam_gnome_keyring acct="vlatko" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
svi 30 08:49:01 F17 dbus-daemon[672]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
svi 30 08:49:01 F17 audit[1279]: CRED_ACQ pid=1279 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=? acct="vlatko" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
svi 30 08:49:01 F17 dbus-daemon[672]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
svi 30 08:49:01 F17 dbus-daemon[672]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
# mount | grep boot
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
# lsblk -f
NAME        FSTYPE FSVER LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                  
├─sda1      ext4   1.0   BU      015279d4-a4c0-4ce9-910e-c64d98e1a527    102G    85% /run/media/vlatko/BU
└─sda2      exfat  1.0   DT      E7EE-AF81                              73,7G    92% /run/media/vlatko/DT
sdb                                                                                  
└─sdb1      ntfs         IV_Main 363AEABB506A865E                      143,8G    69% /run/media/vlatko/IV_Main
nvme0n1                                                                              
├─nvme0n1p1 vfat   FAT16         81C9-A392                             416,3M    15% /boot
├─nvme0n1p2 ext4   1.0           d3092cad-3bf9-4431-9966-d0c89e6c718b   35,4G    56% /
└─nvme0n1p3 ext4   1.0           d1c0de40-c0de-4484-b772-cd8d2d1e3d37  310,6G    58% /home

Any ideas what could I do to solve this? Need any more info?

Last edited by vlatkoB (2022-05-30 10:29:09)

Offline

#2 2022-05-30 08:42:15

seth
Member
Registered: 2012-09-03
Posts: 48,803

Offline

#3 2022-05-30 10:26:08

vlatkoB
Member
Registered: 2015-03-24
Posts: 6

Re: [Solved] System works, but "Failed to start Load Kernel Modules"

I feel stupid now. The only one I didn't try as thought it is related to a critical issue with nvidia. :-(
Thanks

Offline

#4 2022-05-30 10:29:18

seth
Member
Registered: 2012-09-03
Posts: 48,803

Re: [Solved] System works, but "Failed to start Load Kernel Modules"

Does adding "ibt=off" to the kernel parameters work for you?

Last edited by seth (2022-05-30 10:29:30)

Offline

#5 2022-05-30 13:37:35

vlatkoB
Member
Registered: 2015-03-24
Posts: 6

Re: [Solved] System works, but "Failed to start Load Kernel Modules"

Yes, it solved it. I tried first by editing grub, and now made it permanent.

linux	/vmlinuz-linux root=UUID=d3092cad-3bf9-4431-9966-d0c89e6c718b rw  loglevel=3 quiet ibt=off

Offline

Board footer

Powered by FluxBB