vboxdrv.sh: failed: modprobe vboxdrv failed.

OSのアップデートと最新版VirtualBoxのインストールを試みた後に現れたメッセージ。

ホスト:fedora 33

 VirtualBox:VirtualBox-6.1-6.1.26

 

VirtualBoxのゲストOSを起動しようとした時に出たエラー

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or nor set up correctly.

(確かにインストール時になんか出てた気がする)

Please try setting it up again by executing

'/sbin/vboxconfig'

as root.


/sbin/vboxconfig 実行後に出たエラー


vboxdrv.sh: failed: modprobe vboxdrv failed.

Please use 'dmesg' to find out why.

modprobe vboxdrvに失敗したらしい。

詳しくは'dmesg'を見ろとのこと。
(以前のバージョンでは/var/log/vbox-setupを見ろって言われてた気がする。)

 

dmesg(詳細ログ的なやつ)

 


vboxdrv: module verification failed: signature and/or required key missing - tainting kernel

(よくわからんけど、なんかkeyがないみたい。)

 

解決法


$ sudo -i
# mkdir /root/vboxdrv
# cd /root/vboxdrv
# openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=name/"
# chmod 600 MOK.priv
# mokutil --import /root/vboxdrv/MOK.der 
input password:
input password again: 

nameは任意の名前


再起動する

 ↓

# modprobe vboxdrv

 

/sbin/vboxconfig

 もっかいやったらうまくいったよ。

わーい。


コメント

このブログの人気の投稿

TypeError: ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

overleafで画像が表示されない!

エラー: ""C:\U" で始まる文字列の中で 8 進文字なしに '\U' が使われています