Archlinux升級系統內核Virtualbox啓動報錯

Archlinux是滾動升級的,相對而言比較穩定可是偶然會出現滾掛或個別應用沒法使用。(因此我通常都在放假前升級,有Bug也好在假期時修改)。php

出錯場景:

  • 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.

問題排查:

根據錯誤信息能夠看到是內核加載問題。檢查升級後的系統內核:linux

uname -r

查看已經安裝的virtualbox對應的系統內核:code

pacman -Qe |grep linux

結果爲:get

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內核模塊:it

sudo pacman -S linux419-headers
sudo pacman -S linux419-virtualbox-host-modules

安裝後從新加載vbox內核:io

modprobe vboxdrv

我發如今重載內核後啓動依舊是報錯。因而重啓系統嘗試,重啓後恢復正常。class

參考連接

VirtualBox - ArchWikimodule

相關文章
相關標籤/搜索