安装了VirtualBox-5.2-5.2.6_120293版本在fedora27上,本来在原来的老X1上是一点问题也没有,新X1出现问题了,提示如下:
[cnangel@localhost ~]$sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
开始以为是新电脑CPU主频过高、长时间使用睿频缘故(dmesg):
[ 3.889232] CPU0: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 3.889233] CPU2: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 3.889233] CPU1: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 3.889234] CPU3: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 3.889236] CPU2: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 3.889327] CPU0: Package temperature above threshold, cpu clock throttled (total events = 1)
然后导致硬件错误,后来在BIOS中关闭Secure Boot设置即可。
当然这是暴力解法,最恰当的方法是在关闭Secure Boot后,安装mokutil库:
sudo dnf install mokutil -y
然后执行:
[cnangel@localhost ~]$sudo mokutil --disable-validation
password length: 8~16
input password:
input password again:
[cnangel@localhost ~]$sudo mokutil --sb-state
SecureBoot disabled
[cnangel@localhost ~]$sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
然后再开启Secure Boot模式即可。
感谢: