歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 18 -- 安裝VirtualBox的Guest Additions 問題及解決方法

Fedora 18 -- 安裝VirtualBox的Guest Additions 問題及解決方法

日期:2017/2/28 14:53:15   编辑:Linux教程

在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

Copyright © Linux教程網 All Rights Reserved