fedora 安装VBoxGuestAdditions失败问题

VirtualBox 3.1.4 Guest Additions installation
Building the VirtualBox Guest Additions kernel module ...
Building the shared folder support kernel module ...
Unable to build the kernel module.  See the log file /var/log/vboxadd-install.log for more details.

vboxadd-install.log下面要是Error: unable to find the sources of your current Linux kernel 这种样子的
就说明你要下一个kernel-devel,下的时候要下对应你的版本的,最好用下面命令下载

yum install kernel-devel-$(uname -r)  然后回车,接下来等就行了。

稍微解释下上面的命令,yum install 就是yum包管理器的安装 , uname -r 命令会打印出你的系统版本,如:

[shubangjun@shubangjun ~]$ uname -r
2.6.31.5-127.fc12.i686

所以该内核文件名就是kernel-devel-2.6.31.5-127.fc12.i686 ,有兴趣的可以Google下 $() 用法。

下载完之后你再运行 VBoxLinuxAdditions-x86.run  就行了。

上面描述的比较乱,大家将就下。

猜你喜欢

转载自shubangjun.iteye.com/blog/999318