【エラー】UbuntuでVirtualBOXの仮想マシンを起動したら「virtualbox Kernel driver not installed」と言って仮想マシンが起動しない

スポンサーリンク

ホストOSはUbuntu14.04です。

こんなメッセージが出て怒られました(´・ω・`)
Screenshot from 2016-02-07 21:01:07

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. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) – The support driver is not installed. On linux, open returned ENOENT.

対策

とりあえずエラーメッセージで検索すると

  sudo /etc/init.d/vboxdrv setup

を実行しろとあったので、コピペでやってみました( ・`ω・´)

$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.

すると治りました(∩´∀`)∩

たぶんですが、セキュリティアップデートしたときにlinuxカーネルが更新?されたけどVirtualBOX用のドライバ(DKMS?)が古いままだったので本体とドライバの整合性が取れないためにエラーになったんじゃないでしょうか。
それが上のコマンドを実行すると更新されてなおった、気がします。

とりあえずなおったので、φ(..)メモメモ