Error/etc/init. d/vboxdrv setup

Source: Internet
Author: User

Installation Steps

 

1. Download The VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm on the virtualbox Homepage

2. Double-click to install

3. After the installation is complete, select the image and install the system. An error dialog box appears, prompting you to run

/Etc/init. d/vboxdrv setup

To solve the problem

4. Run/Etc/init. d/vboxdrv setupAnd the standard output prompts you to view/var/log/vbox-install.log to find the error

5. RunVI/var/log/vbox-install.logThe following error is found:

Error: unable to find the sources of your current Linux kernel. Specify kern_dir = <directory> and run make again

6. A large amount of time is wasted on this error. The problem can be solved by installing dkms and kernel components. The detailed process is as follows:

 

Install dkms

Visit http://linux.dell.com/dkms/and download dkms-2.2.0.3-1.noarch.rpm, then install with rpm-IVH dkms-2.2.0.3-1.noarch.rpm

 

Install some kernel components

Yum install kernel-devel kernel-headers

 

Run/etc/init. d/vboxdrv setup again. If the following information appears:

 

[[Email protected] HH] #/etc/init. d/vboxdrv setup
Stopping virtualbox kernel modules [OK]
Uninstalling old virtualbox dkms kernel modules [OK]
Trying to register the virtualbox kernel modules using dkmserror! Echo
Your kernel headers for Kernel 2.6.32-431. el6.x86 _ 64 cannot be found
/Lib/modules/2.6.32-431. el6.x86 _ 64/build or/lib/modules/2.6.32-431. el6.x86 _ 64/source.
[Failed]
(Failed, trying without dkms)
Recompiling virtualbox kernel modules [failed]
(Look at/var/log/vbox-install.log to find out what went wrong)

 

Then execute the yum install kernel-devel-2.6.32-431.el6.x86_64 again to download the matching version

This part of content can refer to the article http://www.cnblogs.com/xia520pi/p/3545666.html

Run/etc/init. d/vboxdrv setup again after installing the corresponding kernel-devel.

 

 

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.