首页 > 代码库 > 修复:"Failed to start Load Kernel Modules"
修复:"Failed to start Load Kernel Modules"
使用非默认内核而出现的错误。
[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