標籤:
在VirtualBox裡安裝CentOS系統,會遇到“增強工具”無法正常安裝,主要的原因是出在Kernel 庫找不到。
錯誤提示如下:
通過查看記錄檔:
cat /var/log/vboxadd-install.log
從日誌顯示,我們就可以找到問題的所在了。
第1步:安裝 gcc-c++ 編譯器
(注意:如果你的CentOS是全部安裝的話,那麼預設已經安裝好了)
yum -y install gcc-c++
注意:安裝前確保你的網路是通暢的,因為yum是網路安裝。
總計大概40M左右,我下載大約花了4分鐘左右。
第2步:安裝核心Kernal庫
yum -y install kernel kernel-devel
第3步:重啟系統
init 6
第4步:再次安裝增強工具,稍微等個幾分鐘就成功了
以上引用自:http://www.php-note.com/article/detail/401
安裝成功後
一般Virtualbox安裝CentOS安裝完成後預設是800x600的解析度。
安裝Guest additions。安裝完成後,解析度可以修改為1024x768,還有一些更高的解析度,但是沒有1366x768。
修改/etc/X11/xorg.config
安裝完Guest additions後,檔案預設內容為(或者類似)
# VirtualBox generated configuration file
# based on /etc/X11/xorg.conf.
Section "Monitor"
Identifier "Monitor[0]"
ModelName "VirtualBox Virtual Output"
VendorName "Oracle Corporation"
EndSection
Section "Device"
BoardName "VirtualBox Graphics"
Driver "vboxvideo"
Identifier "Device[0]"
VendorName "Oracle Corporation"
EndSection
Section "Screen"
SubSection "Display"
Depth 24
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
EndSection
修改Section "Screen",添加欄位Modes "800x600" "1366x768"
Section "Screen"
SubSection "Display"
Depth 24
Modes "1366x768" "800x600" #在前面的解析度是預設解析度
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
EndSection
注意:Modes要添加在SubSection之間,而且不能只添加1366x768,要同時添加800x600。
以上引用自:http://www.linuxidc.com/Linux/2012-12/75447.htm
virtualBox 安裝CentOS 全屏