VirtualBox installation enhancements and error resolution under CentOS

Source: Internet
Author: User
Tags centos
The installation steps are as follows: 1. Perform installation enhancements:

The error "Building the main Guest addtional module [Failed]" appears, and the following illustration shows that the installation failed ...


To view the installation log information:


2, according to the picture of the hint information and error message "Yum install kernel-devel-2.6.32-431.el6.x86_64" to install.

The message "No package ..." may be prompted, where "2.6.32-431.el6.x86_64" is the version number of the current kernel and can be obtained by the "uname-r" command.

Indicates that the current latest version number is no longer "2.6.32-431.el6.x86_64". There are two ways to resolve this error:

First:

(1) Locate the "kernel-devel-2.6.32-431.el6.x86_64.rpm" installation package (see attached) from the image file of the installation CentOS, and put it under "/usr/src/kernels" and Execute "RPM-IVH kernel-devel-2.6.32-431.el6.x86_64.rpm "Install Kernel-devel.

(2) Install the Kernel-devel after installing the enhanced function is done ...


attached: Read the "kernel-devel-2.6.32-431.el6.x86_64.rpm" in the mirror file in the virtual machine

Add directly to the following icon, added in the CentOS desktop will appear mirror fast (if not appear in the computer), point in the Can


After opening the mirrored file, include a bunch of files in the Packages folder, find "kernel-devel-2.6.32-431.el6.x86_64.rpm", and put it under "/usr/src/kernels".

Second:
In step 2nd, perform "Yum install Kernel-devel" Do not add the version number, the latest version will be installed. Install enhancements or errors due to kernel and kernel-devel version numbers.

Therefore, step 2nd executes the Yum install kernel and yum install Kernel-devel to install the latest version.

Re-install enhancements will succeed ... But there will still be a mistake "building the OpenGL support module [FAILED]".

However, this error does not affect enhancements.

Both of the above methods are completely correct. The first kind of trouble but there will be no error, the second will be a no impact error, look strange

This error can be resolved by following.

# CD/USR/SRC/KERNELS/2.6.32-431.3.1.EL6.X86_64/INCLUDE/DRM

# ln-s/usr/include/drm/drm.h drm.h

# ln-s/usr/include/drm/drm_sarea.h drm_sarea.h

# ln-s/usr/include/drm/drm_mode.h drm_mode.h

# ln-s/usr/include/drm/drm_fourcc.h drm_fourcc.h

Or

cd/media/vboxadditions_4.1.8_75467/
Export make= '/usr/bin/gmake-i '
./vboxlinuxadditions.run

When installing, use "make-i",-I,--ignore-errors ignore errors from commands. Ignore the error.







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.