Linux更新内核后VirtualBox虚拟机经常报错,以前的没有记载,这次开始记录吧
环境:Fedora 23
VirtualBox-5.0-5.0.12_104815_fedora22-1.x86_64
一次更新内核后dnf update 后出现1908提示 如下
[root@test-os yonghu]# /sbin/rcvboxdrv setup
Stopping VirtualBox kernel modules [ 确定 ]
Uninstalling old VirtualBox DKMS kernel modules [ 确定 ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 4.3.3-300.fc23.x86_64+debug cannot be found at
/lib/modules/4.3.3-300.fc23.x86_64+debug/build or /lib/modules/4.3.3-300.fc23.x86_64+debug/source.
[失败]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [失败]
(Look at /var/log/vbox-install.log to find out what went wrong)
rpmfind.net 上查看kernel 4.3.3-300.fc23.x86_64+debug 之后安装
[root@test-os yonghu]#rpm -ivh ftp://rpmfind.net/linux/fedora/linux/updates/23/x86_64/k/kernel-debug-devel-4.3.3-300.fc23.x86_64.rpm
获取ftp://rpmfind.net/linux/fedora/linux/updates/23/x86_64/k/kernel-debug-devel-4.3.3-300.fc23.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:kernel-debug-devel-4.3.3-300.fc23 ( ################################# [100%]
安装完成后输入:/sbin/rcvboxdrv setup
[root@test-os yonghu]# /sbin/rcvboxdrv setup
Stopping VirtualBox kernel modules [ 确定 ]
Uninstalling old VirtualBox DKMS kernel modules [ 确定 ]
Trying to register the VirtualBox kernel modules using DKMS[ 确定 ]
Starting VirtualBox kernel modules [ 确定 ]
OK 搞定 完毕 运行VBOX虚拟机 可以正常打开了。