Archlinux升级系统内核Virtualbox启动报错
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
我发现在重载内核后启动依旧是报错。于是重启系统尝试,重启后恢复正常。