CentOS6.3鏄畨瑁呭湪VirtualBox铏氭嫙鏈轟笂錛屽畨瑁呭ソ浠ュ悗鏈濂藉啀灝哣BoxAdditions澧炲己鍔熻兘瑁呬笂錛屼富瑕佺洰鐨勬槸鑳藉鍦ㄨ櫄鎷熸満鍜屽涓繪満涔嬮棿鑳藉鍏變韓鏂囦歡銆?/p>
1. 鏇存柊鍐呮牳銆侰entOS 6.3瀵瑰簲鐨刱ernel榛樿涓?.6.32-279.el6.i686錛?/p>
# uname -r2.6.32-279.el6.i686瀹夎澧炲己鍔熻兘闇瑕乲ernel-devel鍖咃紝蹇呴』淇濊瘉kernel-devel鍜宬ernel鐗堟湰鐨勪竴鑷淬傛煡鐪嬭蔣浠舵簮涓璳ernel-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.褰撳墠鐨刱ernel-devel鐗堟湰鏄?.6.32-279.19.1.e16銆傚洜姝わ紝蹇呴』鍗囩駭kernel錛?/p>
# yum update kernel鍗囩駭瀹屽悗蹇呴』閲嶅惎緋葷粺錛屾柊鐨刱ernel鎵嶈兘琚嬌鐢ㄣ?/p>
2. 瀹夎kernel-devel鍜実cc銆?/p>
# yum install kernel-devel gcc gcc-c++
3. 瀹夎澧炲己鍔熻兘銆傝繘鍏ュ寮哄姛鑳藉厜鐩樻牴鐩綍錛屾墽琛孡inux涓嬬殑瀹夎鍛戒護錛?/p>
# ./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[紜畾]