VirtualBOX 增強工具在CentOS中的安裝

來源:互聯網
上載者:User

VirtualBox是SUN公司開發的虛擬系統軟體,可安裝於各種系統平台上,虛擬機器也支援多種作業系統的類比。而CentOS是
The Community ENTerprise Operating System 的縮寫,中文是社區企業作業系統。它是Redhat Enterprise Linux(下稱RHEL)的重發行版,並且提供免費的yum升級服務。版本跟隨RHEL,在使用上跟RHEL沒有大區別。最新版本是5.2。

當在VirtualBox中安裝好CentOS好,如果直接安裝VirtualBox的Guest Additions時,會提示“Please install the build and header files
for your current Linux kernel.”。需要安裝核心開發包和gcc包。

在CentOS下安裝核心開發包和gcc包的方法如下,在終端中輸入

yum install kernel-devel

yum install gcc

這樣就已安裝好核心開發包。但當再次安裝Guest Additions時,還是會提示需要安裝核心開發包。只有給當前核心建立個連結後才能正常安裝VirtualBox的Guest Additions。

ln -s /usr/src/kernels/2.6.18-92.1.18.el5-i686 /usr/src/linux      

切換到root帳戶

運行 bash 命令進行安裝即可.

注釋:2.6.18-92.1.18.e15 此處為CentOS版本號碼.根據自己安裝的版本號碼來定.

另一種方法:

$su -
#yum install gcc –y
#yum install kernel sources –y
#yum install kernel-devel –y
#shutdown –r now
先reboot一次再安裝

#sh VBoxLinuxAdditions.run

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.