前前后后差不多一天的時間,終于搞好了.
virtualbox 的無縫模式那真是一個cool, 帥呆了.
還是總結一下吧,免得下次又忘了.
----------------------------------------------------------
virtualbox 上安裝64位操作系統,要滿足三個條件 1 cpu是64位 2 cpu支持虛擬化(支持的話,可在bios里設置開啟) 3:安裝的系統為64位
vmware 也要注意這個問題
----------------------------------------------------------
centos 圖形安裝界面需 628M以上內存,
----------------------------------------------------------
我的 CentOS6.3 裝在虛擬機里,在線升級后,突然不能進入桌面了,現象是進度條變成灰白,而啟動的服務過程則在 Starting certmonger: [OK] 這里停止。
解決辦法很簡單,使用 SSH 連入系統,或使用 Ctrl + Alt + Fx 進入虛擬終端,然后執行下面的命令:
# mv /etc/X11/xorg.conf /etc/X11/old_xorg.conf
接著重啟系統,桌面回來了。
----------------------------------------------------------
在安裝VBoxAddition 失敗的情況, 用下面方法可以解決。 但正解安裝后菜單上的無縫模式還是灰的,重裝重啟了N次還是灰的,后來資料上看到要通過 /etc/X11/xorg.conf來設置分辯率, 就照著設置了一下,結果重啟后又卡在Starting certmonger那里,于是用上面的方法 mv了一下。然后重啟。我去!!!!!無縫模式就不灰了.....
ps: 后來我又重新裝了個centos6.2的, 安裝好VBoxAddition 后重啟就可以無縫模式了,不需要設置xorg.conf
----------------------------------------------------------
VBoxAddition 安裝失敗的解決方法
http://blog.csdn.net/lidongtang/article/details/8479900
CentOS6.3是安裝在VirtualBox虛擬機上,安裝好以后最好再將VBoxAdditions增強功能裝上,主要目的是能夠在虛擬機和宿主機之間能夠共享文件。
1. 更新內核。CentOS 6.3對應的kernel默認為2.6.32-279.el6.i686:
# uname -r 安裝增強功能需要kernel-devel包,必須保證kernel-devel和kernel版本的一致。查看軟件源中kernel-devel的版本:
# yum info kernel-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Available Packages
Name : kernel-devel
Arch : i686
Version : 2.6.32
Release : 279.19.1.el6
Size : 7.6 M
Repo : updates
Summary : Development package for building kernel modules to match the
: kernel
URL : http://www.kernel.org/
License : GPLv2
Description : This package provides kernel headers and makefiles sufficient to
: build modules against the kernel package.
當前的kernel-devel版本是2.6.32-279.19.1.e16。因此,必須升級kernel:
升級完后必須重啟系統,新的kernel才能被使用。
2. 安裝kernel-devel和gcc。
# yum install kernel-devel gcc gcc-c++
3. 安裝增強功能。進入增強功能光盤根目錄,執行Linux下的安裝命令:
# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.4 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.4 of VirtualBox Guest Additions...
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.10 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 components[確定]