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.