Archlinux升级系统内核Virtualbox启动报错

10次阅读

共计 858 个字符,预计需要花费 3 分钟才能阅读完成。

Archlinux 是滚动升级的,相对而言比较稳定但是偶然会出现滚挂或个别应用无法使用。(所以我一般都在放假前升级,有 Bug 也好在假期时修改)。
出错场景:
Archlinux 系统升级内核从 4.14 升级到 4.19
错误描述:
Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

‘/sbin/vboxconfig’

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) – The support driver is not installed. On linux, open returned ENOENT.
问题排查:
根据错误信息可以看到是内核加载问题。检查升级后的系统内核:
uname -r
查看已经安装的 virtualbox 对应的系统内核:
pacman -Qe |grep linux
结果为:
archlinuxcn-keyring 20190315-2
linux-firmware 20190313.efd2c1c-1
linux414 4.14.109-1
linux414-bbswitch 0.8-87
linux414-headers 4.14.109-1
linux414-nvidia 1:418.43-6
发现用的是之前 414 的 linux 内核, 所以升级到 419 内核模块:
sudo pacman -S linux419-headers
sudo pacman -S linux419-virtualbox-host-modules
安装后重新加载 vbox 内核:
modprobe vboxdrv
我发现在重载内核后启动依旧是报错。于是重启系统尝试,重启后恢复正常。
参考链接
VirtualBox – ArchWiki

正文完
 0