关于VirtualBox4.3.0下CentOS7安装VboxAdditions不成功的问题

在VirtualBox4.3.0下安装了最新的CentOS7,选择的是带GUI的服务器,安装VBOXADDITIONS报错,不能实现与物理机的无缝切换:

[root@CentOS7x64 ~]# ls

anaconda-ks.cfg  initial-setup-ks.cfg  VboxAdditions  公共  模板  视频  图片  文档  下载  音乐  桌面

[root@CentOS7x64 ~]# cd Vbox*

[root@CentOS7x64 VboxAdditions]# ll

总用量 56556

drwxr-xr-x. 2 root root       23 10 15 2013 32Bit

drwxr-xr-x. 2 root root       23 10 15 2013 64Bit

-rw-r--r--. 1 root root      647 10  9 2013 AUTORUN.INF

-rw-r--r--. 1 root root     6966 10 15 2013 autorun.sh

drwxr-xr-x. 2 root root       51 10 15 2013 cert

drwxr-xr-x. 2 root root     4096 10 15 2013 OS2

-rw-r--r--. 1 root root     5523 1015 2013 runasroot.sh

-rw-r--r--. 1 root root  9655755 10 15 2013 VBoxLinuxAdditions.run

-rw-r--r--. 1 root root 20726272 10 15 2013 VBoxSolarisAdditions.pkg

-rw-r--r--. 1 root root 16790544 10 15 2013 VBoxWindowsAdditions-amd64.exe

-rw-r--r--. 1 root root   311568 10 15 2013 VBoxWindowsAdditions.exe

-rw-r--r--. 1 root root 10391152 10 15 2013 VBoxWindowsAdditions-x86.exe

[root@CentOS7x64 VboxAdditions]# VBoxLinuxAdditions.run

bash: VBoxLinuxAdditions.run: 未找到命令...

[root@CentOS7x64 VboxAdditions]# ./VBoxLinuxAdditions.run

-bash: ./VBoxLinuxAdditions.run: 权限不够

[root@CentOS7x64 VboxAdditions]# chmod u+x *.run

[root@CentOS7x64 VboxAdditions]# ll

总用量 56556

drwxr-xr-x. 2 root root       23 10 15 2013 32Bit

drwxr-xr-x. 2 root root       23 10 15 2013 64Bit

-rw-r--r--. 1 root root      647 10  9 2013 AUTORUN.INF

-rw-r--r--. 1 root root     6966 10 15 2013 autorun.sh

drwxr-xr-x. 2 root root       51 10 15 2013 cert

drwxr-xr-x. 2 root root     4096 10 15 2013 OS2

-rw-r--r--. 1 root root     5523 10 15 2013 runasroot.sh

-rwxr--r--. 1 root root  9655755 10 15 2013 VBoxLinuxAdditions.run

-rw-r--r--. 1 root root 20726272 10 15 2013 VBoxSolarisAdditions.pkg

-rw-r--r--. 1 root root 16790544 10 15 2013 VBoxWindowsAdditions-amd64.exe

-rw-r--r--. 1 root root   311568 10 15 2013 VBoxWindowsAdditions.exe

-rw-r--r--. 1 root root 10391152 10 15 2013 VBoxWindowsAdditions-x86.exe

[root@CentOS7x64 VboxAdditions]# ./VBoxLinuxAdditions.run

Verifying archive integrity... All good.

Uncompressing VirtualBox 4.3.0 Guest Additions for Linux............

VirtualBox Guest Additions installer

Removing installed version 4.3.0 of VirtualBox Guest Additions...

Copying additional installer modules ...

Installing additional modules ...

Removing existing VirtualBox non-DKMS kernel modules       [  确定  ]

Building the VirtualBox Guest Additions kernel modules

Building the main Guest Additions module                   [失败]

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

Doing non-kernel setup of the Guest Additions              [  确定  ]

Installing the Window System drivers

Warning: unknown version of the X Window System installed.  Not installing

X Window System drivers.

                                                           [  确定  ]

Installing graphics libraries and desktop services componen[  确定  ]

[root@CentOS7x64 VboxAdditions]#

应该是该VirtualBox版本不支持CentOS7的X Windows System

 

安装从最新VirtualBox版本(CentOS7.0发布之后的20140715更新的4.3.14版)中提取的VBoxGuestAdditions(记为VBoxGuestAdditions-4.3.14)则没有提示任何问题,系统重启后可以无缝切换,功能正常。

(之所以不把VirtualBox4.3.0直接升级到4.3.14,是因为升级后发现以前的虚拟机都打不开。)

[root@CentOS7x64 VBOXADDITIONS_4.3.14_95030]# ll

总用量 58243

dr-xr-xr-x. 2 root root     2048 7  15 23:59 32Bit

dr-xr-xr-x. 2 root root     2048 7  15 23:59 64Bit

-r-xr-xr-x. 1 root root      647 10  9 2013 AUTORUN.INF

-r-xr-xr-x. 1 root root     6966 7  15 23:50 autorun.sh

dr-xr-xr-x. 2 root root     2048 7  15 23:59 cert

dr-xr-xr-x. 2 root root     2048 7  15 23:59 OS2

-r-xr-xr-x. 1 root root     5523 7  15 23:50 runasroot.sh

-r-xr-xr-x. 1 root root 10239439 7  15 23:54 VBoxLinuxAdditions.run

-r-xr-xr-x. 1 root root 20977664 7  16 00:30 VBoxSolarisAdditions.pkg

-r-xr-xr-x. 1 root root 17338560 7  15 23:48 VBoxWindowsAdditions-amd64.exe

-r-xr-xr-x. 1 root root   313472 7  15 23:39 VBoxWindowsAdditions.exe

-r-xr-xr-x. 1 root root 10748464 7  15 23:40 VBoxWindowsAdditions-x86.exe

[root@CentOS7x64 VBOXADDITIONS_4.3.14_95030]# ./VBoxLinuxAdditions.run

Verifying archive integrity... All good.

Uncompressing VirtualBox 4.3.14 Guest Additions for Linux............

VirtualBox Guest Additions installer

Removing installed version 4.3.0 of VirtualBox Guest Additions...

Copying additional installer modules ...

Installing additional modules ...

Removing existing VirtualBox non-DKMS kernel modules       [  确定  ]

Building the VirtualBox Guest Additions kernel modules

Building the main Guest Additions module                   [  确定  ]

Building the shared folder support module                  [  确定  ]

Building the OpenGL support module                         [  确定  ]

Doing non-kernel setup of the Guest Additions              [  确定  ]

Starting the VirtualBox Guest Additions                    [  确定  ]

Installing the Window System drivers

Installing X.Org Server 1.15 modules                       [  确定  ]

Setting up the Window System to use the Guest Additions    [  确定  ]

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[  确定  ]

[root@CentOS7x64 VBOXADDITIONS_4.3.14_95030]# reboot

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29734436/viewspace-1226198/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29734436/viewspace-1226198/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值