Installation of virtualbox Enhancement Tool in centos

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.