红联Linux门户
Linux帮助

解决了Fedora Core 6安装VirtualBox遇到的问题

发布时间:2007-05-21 16:23:04来源:红联作者:source
下载VirtualBox_1.3.6_Linux_x86.run

运行./VirtualBox_1.3.6_Linux_x86.run install /opt/VirtualBox 出错

./VirtualBox_1.3.6_Linux_x86.run install /opt/VirtualBox
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation........
VirtualBox Version 1.3.6 (Tue Feb 20 13:26:32 CET 2007) installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.18-1.2798.fc6
Problems were found which would prevent VirtualBox from installing.
Please correct these problems and try again.

查看VirtualBox手册
解开VirtualBox.run文件
./VirtualBox.run --keep --noexec

将会解压缩至 install 目录
mkdir /opt/VirtualBox
tar jxf ./install/VirtualBox.tar.bz2 -C /opt/VirtualBox

源码将被存放在 /opt/VirtualBox/src
cd /opt/VirtualBox/src

make ,还是没有找到kernel-devel相关文件

打开 Makefile文件,看到KERL_DIR 为 /lib/modules/xxxx.xxx.xx,发现由rpm默认安装的build目录链接有错误,将链接改为 /../../usr/src/kernels/2.6.18-1.2798.fc6-i686

make 正常,直接运行 VirtualBox.run install 也正常了

运行VirtualBox 出错

/dev/vboxdrv not writable for some reason. If you recently added the current
user to the vboxusers group then you have to logout and re-login to take the
change effect.

找了一下,在/dev下面没有vboxdrv这个文件,可见内核模块未载入

modprobe vboxdrv 出错: 无效个的格式

modprobe -f vboxdrv 强行载入后运行VirtualBox 一切正常了,但不知是会存在隐患.

[ 本帖最后由 Subbo 于 2007-5-21 21:40 编辑 ]
文章评论

共有 0 条评论