Skip to content

Instantly share code, notes, and snippets.

@luw2007
Created January 29, 2013 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luw2007/4662284 to your computer and use it in GitHub Desktop.
Save luw2007/4662284 to your computer and use it in GitHub Desktop.
fedora 18 更新内核后, 重新VirtualBox 模块

更新fc18 内核后, 启动VirtualBox 报错, 需要重新编译VirtualBox 的模块. 但是最近VirtualBox 更新编译方法, 以前都是执行sudo /etc/init.d/vboxdrv setup .

按照提示执行, 报错如下:

○ → sudo /etc/sysconfig/modules/VirtualBox.modules
[sudo] password for lw:
ERROR: Module vboxdrv not found.
ERROR: Module vboxnetflt not found.
ERROR: Module vboxnetadp not found

看报错应该是模块丢失或者没有安装, 多方查找没有发现解决办法.

解决

yum search virtualbox 后发现kmod-VirtualBox和akmod-VirtualBox. akmod 是好东西.如果新内核不存在匹配的kmod版本,akmods会自动从源重建rpm,并立即安装更多介绍.

于是装上akmod-ViBox

○ → sudo yum install akmod-VirtualBox

, 然后运行

/etc/sysconfig/modules/VirtualBox.modules

无报错. 问题解决.

错误的解决方法

  1. yum reinstall VirtualBox 2. service vboxdrv setup 3. sudo /etc/init.d/vboxdrv setup (适用于老版本)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment