关于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 10月 15 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

6

本文转自ICT时空dbasdk的博客,原文链接: 关于VirtualBox4.3.0下CentOS7安装VboxAdditions不成功的问题 ,如需转载请自行联系原博主。

相关文章
|
1月前
|
Linux 网络安全 数据安全/隐私保护
如何在 VM 虚拟机中安装 CentOS Linux 9 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 CentOS Linux 9 操作系统保姆级教程(附链接)
161 0
|
2月前
|
关系型数据库 MySQL Linux
centos7.0环境下安装MySql_8.0.12
centos7.0环境下安装MySql_8.0.12
|
1月前
|
存储 JavaScript Linux
Linux环境下安装nmp(Centos环境)保姆级教学 一步到位
Linux环境下安装nmp(Centos环境)保姆级教学 一步到位
|
1天前
|
Linux
centos 6.5安装yum
centos 6.5安装yum
10 0
|
1天前
|
运维 网络协议 Linux
【运维系列】Centos7安装并配置PXE服务
PXE是Intel开发的预启动执行环境,允许工作站通过网络从远程服务器启动操作系统。它依赖DHCP分配IP,DNS服务分配主机名,TFTP提供引导程序,HTTP/FTP/NFS提供安装源。要部署PXE服务器,需关闭selinux和防火墙,安装dhcpd、httpd、tftp、xinetd及相关服务,配置引导文件和Centos7安装源。最后,通过syslinux安装引导文件,并创建pxelinux.cfg/default配置文件来定义启动参数。
5 0
|
1天前
|
运维 网络协议 Linux
【运维系列】Centos7安装并配置postfix服务
安装CentOS7的Postfix和Dovecot,配置Postfix的`main.cf`文件,包括修改完全域名、允许所有IP、启用邮箱等。然后,配置Dovecot的多个配置文件以启用auth服务和调整相关设置。重启Postfix和Dovecot,设置开机自启,并关闭防火墙进行测试。最后,创建邮箱账户并在Windows邮箱客户端中添加账户设置。
9 0
|
1天前
|
Linux 网络安全
Centos6.5安装并配置NFS服务
该内容描述了在Linux系统中设置NFS服务的步骤。首先挂载yum源,然后安装NFS服务,并编辑配置文件。接着,重启rpcbind和NFS服务,可能需要重复此过程以解决初始可能出现的问题。此外,关闭防火墙策略,并再次重启服务。最终,根目录被共享,特定IP网段被允许访问。
7 0
|
2天前
|
存储 Linux 网络安全
centos7使用yum网络安装
这些是使用Yum进行网络安装的基本步骤。根据你的需求,你可以重复步骤3和4来安装其他软件包。请注意,执行Yum操作需要root或具有sudo权限的用户。
14 1
|
8天前
|
关系型数据库 MySQL Linux
centos7安装mysql-带网盘安装包
centos7安装mysql-带网盘安装包
53 2
|
15天前
|
存储 Linux Shell
centos 部署docker容器 安装 、基本使用方法(一)
centos 部署docker容器 安装 、基本使用方法(一)
27 0