Solve the Problem of failed installation of VirtualBox 4.1

Source: Internet
Author: User


Solve the Problem of VirtualBox 4.1 installation failure. The installation environment and the installation package used are as follows: [root @ gtlionsdev ~] # Cat/etc/issueOracle Linux Server release 5.8 Kernel \ r on an \ m www.2cto.com [root @ gtlionsdev ~] # Uname-aLinux gtlionsdev 2.6.39-200.29.2.el5uek #1 SMP Sat Jul 14 10:42:52 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux [root @ gtlionsdev ~] # Ll soft/app/VirtualBox-4.1-4.1.18_78361_rhel5-1.x86_64.rpm-rw-r-r-1 root 80801380 06-20 soft/app/VirtualBox-4.1-4.1.18_78361_rhel5-1.x86_64.rpm
Install and configure yum directly using the installation package downloaded from the official website. The installation errors are as follows: stopping VirtualBox kernel modules [OK] Uninstalling old VirtualBox DKMS kernel modules [OK] Trying to register the VirtualBox kernel modules using DKMSError! EchoYour kernel headers for kernel 2.6.39-200.29.2.el5uek cannot be found at/lib/modules/2.6.39-200.29.2.el5uek/build or/lib/modules/2.6.39-example/source. [Failed] www.2cto.com (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [Failed] (Look at/var/log/vbox-install.log to find out what wrong)
Installed: VirtualBox-4.1.x86_64 0: 4. 1.18 _ 78361_rhel5-1google: run the following command: root @ gtlionsdev yum. repos. d] #/etc/init. d/vboxdrv setupStopping VirtualBox kernel modules [OK] Uninstalling old VirtualBox DKMS kernel modules [OK] Trying to register the VirtualBox kernel modules using DKMSError! EchoYour kernel headers for kernel 2.6.39-200.29.2.el5uek cannot be found at/lib/modules/2.6.39-200.29.2.el5uek/build or/lib/modules/2.6.39-example/source. [Failed] (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [Failed] (Look at/var/log/vbox-install.log to find out what went wrong) or Failed
The following message is displayed: [root @ gtlionsdev yum. repos. d] # cat/var/log/vbox-install.logUninstalling modules from DKMSAttempting to install using DKMSCreating symlink/var/lib/dkms/vboxhost/4.1.18/source->/usr/src/vboxhost-4.1.18DKMS: add completed. www.2cto.com Failed to install using DKMS, attempting to install withoutMakefile: 172: *** Error: unable to find the sources of your current Linux kernel. specify KERN_D IR = <directory> and run Make again. Stop.
Later, the group prompts and helps solve the problem. The reason is that the corresponding kernel package is missing. Although I have run the kernel-devel installation command before, the kernel-devel corresponding to the uek kernel is not installed, the correct method is kernel-uek-devel. After executing the preceding command, run the/etc/init. d/vboxdrv setup command again: [root @ gtlionsdev ~] #/Etc/init. d/vboxdrv setupStopping VirtualBox kernel modules [OK] Uninstalling old VirtualBox DKMS kernel modules [OK] Trying to register the VirtualBox kernel modules using DKMS [OK] Starting VirtualBox kernel modules [OK] Thanks again group friends, the power of the masses is great, haha! -The End-by gtlions

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.