Install the Linux system in the VirtualBox virtual machine and install the enhanced error resolution in the virtual system __linux

Source: Internet
Author: User

Transferred from

Http://www.cnblogs.com/MoShin/archive/2012/04/25/2469156.html

When we install the LIXUNX system in the virtual machine, we can not avoid to install the enhancement function, whether the visual effect or the physical machine and the virtual machine share the file need to install the enhancement function. The following States may appear when we enter the virtual system installation Enhancement Program:
[Root@localhost vboxadditions_4.1.12_77245]# Sh./vboxlinuxadditions.run (Enhanced program) VirtualBox Guest Additions Installer Removing installed version 4.1.10 of VirtualBox Guest additions ... Removing existing VirtualBox dkms kernel modules           [OK] removing existing-VirtualBox non- DKMS kernel modules       [OK] building the VirtualBox Guest Additions kernel modules The headers for the C Urrent running kernel were not found. If The following module compilation fails then this could to be the reason. The missing package can is probably installed with Yum install Kernel-devel-2.6.18-238.el5 not building the VirtualBox adv anced graphics driver as this Linux version are too old to use it. Building the main Guest Additions module                   [failed] (look At/var /log/vboxadd-install.log to find out what went wrong) doing Non-kernel setup of the Guest additions       & nbsp      [Determination] Installing the Window System drivers installing x.org 7.1 modules               &NBSP ;               [OK] Setting up the Windows System to use the Guest additions   &nbsp ; Determine You could need to restart the HAL service and the Windows system (or just restart the guest System) to enable the guest Addit ions. Installing graphics libraries and desktop Services componen[OK]/tmp/vbox.0/makefile.include.header:97: * * * Error: Unable to find the sources of your current Linux kernel. Specify kern_dir=<directory> and run make again. Stop it. Creating user for the Guest additions. Creating Udev rule for the Guest Additions kernel module. From the above results we can clearly see that there is an error, according to the prompts to view the/var/log/vboxadd-install.log file will have the following error: [Root@localhost vboxadditions_4.1.12_77245 ]#&NBSP;CAT/VAR/LOG/VBOXADD-INSTALL.LOG/TMP/VBOX.0/MAKEFILE.INCLUDE.HEADER:97: * * * error:unable to find the sources of your current Linux kernel. Specify kern_dir=<directory&Gt and run make again. Stop it. Creating user for the Guest additions. Creating Udev rule for the Guest Additions kernel module. Through the above prompts we can know the reason for the error is not the kernel of the original file solution is as follows: (the following operations are in the virtual computer do not understand into the physical machine) first; Install the following program; GCC   kernel   kernel-devel Program description gcc.i686: All kinds of compilers (c, C + +, objective-c, Java, ...) Kernel.i686:Linux Kernel (core of Linux OS) kernel-devel.i686: A development package that is used to build kernel modules that match the kernel. program installation [root@localhost vboxadditions_4.1.12_77245] #yum instal gcc.i686 kernel.i686 kernel-devel.i686 (preferably when installing with Yum Yum Search searches for the corresponding program, different versions may have dissimilar suffixes, as some may be. i386 two; Restart the computer, start the system automatically from the new kernel file option to start do not change back to the original option default is good (back to the original option will also appear above the error). A new installation of the enhanced program problem can be resolved.

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.