美文网首页
VirtualBox 5.0 cannot start on F

VirtualBox 5.0 cannot start on F

作者: 代码厨子 | 来源:发表于2015-10-24 16:15 被阅读0次

新安装了最新版本的Fedora 22版本。然后在上面安装了VirtualBox 5.0.8版本,却发现运行虚拟机的时候报错误。

Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again.

google后发现,原来是由于安装的内核模块与当前系统的内核版本不匹配导致的。这种情况通常发现在更新过系统后,系统的内核版本升级。

解决的办法也比较简单。就是使用virtualbox带的工具,重新构建一下virtualbox的内核模块即可。

# dnf install kernel-devel-$(uname -r)

# dnf install gcc

# /sbin/rcvboxdrv setup

# /sbin/vboxconfig

然后再试就OK了。

相关文章

网友评论

      本文标题:VirtualBox 5.0 cannot start on F

      本文链接:https://www.haomeiwen.com/subject/hvhixttx.html