virtualBox 安裝CentOS 全屏

來源:互聯網
上載者:User

標籤:

在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 全屏

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.