VirtualBox CentOS Installation Enhancement function Error Resolution

Source: Internet
Author: User
Tags centos

The first thing to do after installing the operating system in a virtual machine is to install the tools that communicate the physical and virtual machines, and each virtual machine should have its own, like a small series that used to have VMware tools, and the Recently used virtual box has its own tools. If the operating system of the virtual machine is windows, basically no installation difficulty, follow its steps to go, but to the Linux operating system, you will encounter such a problem, below we look at the installation of enhancements in the Linux environment may encounter problems.

Operating system Environment: New Installation version centos6.5

Problem: Building The main Guest additions module [failed]

Cause:

1. Kernel-devel is not installed.


Linux most of the package installed is the system default package, the source package is generally not installed, if a software use source installation, then it depends on the package also need to provide source package, so we need to download and install kernel source package Kernel-devel. If the attentive friend may find, before encountering the failed has given us the prompt, tells us to need installs the kernel-devel, we only need to follow the prompt to do.

2.kernel and Kernel-devel versions are inconsistent

Some children's shoes may be depressed, obviously has installed the kernel-devel, why also reported the above diagram error. In fact, the reason is particularly simple, is the version of kernel and kernel-devel inconsistent, under normal circumstances kernel is installed in the installation of CentOS by default, if the CentOS version is earlier, and Kernel-devel appeared a new version, Will cause inconsistency between the two, if careful friends observe the above yum install Kernel-devel will find that it comes with a string, the string contains the version number, we can go through the Yum list *kernel*, To observe whether the installation of kernel and Kernel-devel is a version, if not a version, there are two solutions, one is to remove the newly installed Kernel-devel, install the kernel version of the same kernel-devel, and secondly, update kernel, In general, we choose to update the kernel.

Note : do not forget to restart CentOS after updating kernel, otherwise the updated kernel will not take effect and will still report the above error.

3. GCC is not installed

    

If both of the above steps have been completed, running the installation enhancements again may encounter GCC errors. At this point we only need to install GCC as prompted.

After doing several of the above, install the enhancements again, the building the OpenGL support module [failed] error may appear halfway through, without it, do not affect our use, so far, the enhancement function is installed, and the effect has come out, For example, our mouse is not exclusive to the virtual machine, and can be in and out of the virtual machine and physical machine at any time.

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.