你好,游客 登录 注册 搜索
背景:
阅读新闻

Fedora 18 -- 安装VirtualBox的Guest Additions 问题及解决方法

[日期:2013-01-22] 来源:Linux社区  作者:bluethink [字体:大 中 小]

在Fedora 18 desktop虚拟机上安装VirtualBox的Guest Additions

[root@localhost media]# mount /dev/cdrom /mnt/cdrom/

[root@localhost ~]# cd /mnt/cdrom/

[root@localhost cdrom]# ls

32Bit  AUTORUN.INF  cert  runasroot.sh            VBoxSolarisAdditions.pkg        VBoxWindowsAdditions.exe

64Bit  autorun.sh  OS2  VBoxLinuxAdditions.run  VBoxWindowsAdditions-amd64.exe  VBoxWindowsAdditions-x86.exe

[root@localhost cdrom]# ./VBoxLinuxAdditions.run

Verifying archive integrity... All good.

Uncompressing VirtualBox 4.2.6 Guest Additions for Linux..........

VirtualBox Guest Additions installer

Removing existing VirtualBox non-DKMS kernel modules      [  OK  ]

Building the VirtualBox Guest Additions kernel modules

The gcc utility was not found. If the following module compilation fails then

this could be the reason and you should try installing it.

The headers for the current running kernel were not found. If the following

module compilation fails then this could be the reason.

The missing package can be probably installed with

yum install kernel-devel-3.6.10-4.fc18.i686

Building the main Guest Additions module                  [FAILED]

(Look at /var/log/vboxadd-install.log to find out what went wrong)

Doing non-kernel setup of the Guest Additions              [  OK  ]

Installing the Window System drivers

Installing X.Org Server 1.13 modules                      [  OK  ]

Setting up the Window System to use the Guest Additions    [  OK  ]

You may need to restart the hal service and the Window System (or just restart

the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[  OK  ]

[root@localhost cdrom]#

注意上面的出错信息:

Building the main Guest Additions module                  [FAILED]

解决办法是安装依赖的kernel source, gcc (我顺便也安装了gcc-c++)

yum install kernel-devel.i686 gcc.i686 gcc-c++.i686

然后再次运行Additions的安装程序即可

[root@localhost cdrom]# ./VBoxLinuxAdditions.run

linux
相关资讯       Fedora 18  Guest Additions 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款