關於VirtualBox4.3.0下CentOS7安裝VboxAdditions不成功的問題

dbasdk發表於2014-07-24

在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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章