修复:"Failed to start Load Kernel Modules"

在这里可以讨论服务器管理相关技术

版主: jvip_chen

回复
头像
jvip_chen
社区版主
社区版主
帖子: 116
注册时间: 2019年 1月 5日 13:36 星期六

修复:"Failed to start Load Kernel Modules"

帖子 jvip_chen » 2019年 3月 31日 08:10 星期天

使用非默认内核而出现的错误。

代码: 全选

[zsj@arch ~]$ systemctl --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-modules-load.service loaded failed failed Load Kernel Modules
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

代码: 全选

[zsj@arch ~]$ sudo 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: exit-code) since Wed 2014-04-30 21:01:58 UTC; 3min 23s ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 117 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 117 (code=exited, status=1/FAILURE)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

代码: 全选

[zsj@arch ~]$ sudo journalctl -b _PID=117
-- Logs begin at Sat 2014-04-26 00:27:27 UTC, end at Wed 2014-04-30 21:05:42 UTC. --
Apr 30 21:01:58 arch systemd-modules-load[117]: Failed to find module 'vboxdrv'

代码: 全选

[zsj@arch musics]$ sudo pacman -S virtualbox-host-dkms
==> To build and install your modules run: dkms install vboxhost/4.3.10
==> To do this automatically at startup run: systemctl enable dkms.service
Optional dependencies for virtualbox-host-dkms
linux-headers
linux-lts-headers

代码: 全选

[zsj@arch musics]$ sudo dkms install vboxhost/4.3.10
[zsj@arch musics]$ sudo systemctl enable dkms.service
[zsj@arch musics]$ sudo vim /etc/modules-load.d/virtualbox.conf
写入:vboxdrv
参考:
https:://wiki.archlinux.org/index.php/Systemd

回复

回到 “服务器管理”