Install the Linux System in the virtualbox virtual machine.

Source: Internet
Author: User

when we install the lixunx system on a virtual machine, we cannot avoid the need to install enhancements. Both visual effects and files shared between the physical machine and Virtual Machine require the installation of enhancements. When we install the Program In the virtual system, the following status may appear:

[Root @ localhost vboxadditions_4.1.12_77245] # Sh. /vboxlinuxadditions. run (Enhancement Program) virtualbox guest additions installerremoving 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 modulesthe headers for the current running kernel were not found. If the followingmodule compilation fails then this cocould be the reason. the missing package can be probably installed withyum install kernel-devel-2.6.18-238.el5Not building the virtualbox advanced graphics driver as this Linux version istoo 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 gu Est additions [OK] installing the window system driversinstalling X. org 7.1 modules [OK] setting up the window system to use the guest additions [OK] You may need to restart the Hal service and the window system (or just restartthe Guest System) to enable the guest additions. installing graphics libraries and desktop services componen [OK]/tmp/vbox.0/makefile. include. header: 97: *** error: Unable to fin D The sources of your current Linux kernel. Specify kern_dir = <directory> and run make again. Stop. 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 prompt to view/var/log/vboxadd-install.log file there will be the following error: [root @ localhost vboxadditions_4.1.12_77245] # 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> and run make again. Stop. Creating user for the guest additions. creating udev rule for the guest additions kernel module. through the above prompt, we can know that the cause of the error is that there is no original kernel file. The solution is as follows: (the following operations are all performed on a virtual computer and should not be understood as a physical machine.) 1; first install the following program. GCC kernel-devel describes GCC. i686: Various compilers (C, C ++, objective-C, Java ,...) kernel. i686: Linux kernel (the core of the Linux operating system) kernel-devel.i686: a development package used to build kernel modules that match the kernel. Install the program [root @ localhost vboxadditions_4.1.12_77245] # Yum instal GCC. i686 kernel. i686 kernel-devel.i686 (it is best to search the corresponding program with Yum search when installing with Yum, different versions may have different suffixes, such as some may be. i386) 2. restart the computer, during startup, the system will automatically start from the new Kernel File option. Do not change it back to the default option (the above error will occur when you return to the original option ). You can solve the problem by installing the enhancement program again.

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.