1> Download the VirtualBox rhel repositories configuration file:
CD/ETC/YUM.REPOS.Dwget Http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
2> install Rpmforge.
First download the corresponding RPM file from http://pkgs.repoforge.org/rpmforge-release/, I downloaded the rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm, the specific version
For information, please refer to: Http://wiki.centos.org/zh/AdditionalResources/Repositories/RPMForge.
RPM-IVH rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
3> Installing dkms (Dynamic Kernel Module)
Yum Install dkms
4> Install the development environment and kernel:
Yum Groupinstall "Development Tools"
Yum Install Kernel-devel
5> installation VirtualBox
I was first downloaded on the official website, the version is virtualbox-4.3-4.3.26_98988_el7-1.x86_64.rpm, https://www.virtualbox.org/wiki/Downloads
Yum Install virtualbox-4.3-4.3.26_98988_el7-1.x86_64.rpm
Transferred from: http://www.th7.cn/system/lin/201507/121713.shtml
CENTOS7 installation VirtualBox