[十分好用] virtualbox centos安裝增強工具失敗解決方法


在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。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM