VirtualboxIs SunCompanyDevelopmentVirtual System software can be installed on a variety of system platforms, virtual machines also support a variety of operating systemsSimulation. WhileCentosYes
The abbreviation of the community enterprise operating system,ChineseYesCommunityEnterpriseOperating System. It is a Redhat Enterprise Linux (RHEL) re-release, and providesFreeYum upgradeService. The version follows RHEL, which is no different from RHEL in terms of usage. The latest version is 5.2.
WhenVirtualboxModerate InstallationCentosOkay. If you install it directlyVirtualboxWill prompt "Please install the build and header files
For your current Linux kernel .". You need to install the kernel development kit and GCC package.
InCentosRun the following command to install the kernel development kit and GCC package:
Yum install kernel-devel
Yum install gcc
In this way, the kernel development kit has been installed. However, when you install guest additions again, you will still be prompted to install the kernel development kit. Installation can be successful only after a link is created for the current KernelVirtualbox.
Ln-S/usr/src/kernels/2.6.18-92.1.18.el5-i686/usr/src/Linux
Switch to the root account
Run the bash command to install the SDK.
Note: 2.6.18-92.1.18.e15 indicates the centos version. Set this parameter based on your installed version.
Another method:
$ Su-
# Yum install gcc-y
#Yum install kernel sources-y
#Yum install kernel-devel-y
# Shutdown-R now
Reboot first and then install
#Sh vboxlinuxadditions. Run