1. First, we need to download the CENTOS7 version of Virtual box on the Oracle website:
is: http://download.virtualbox.org/virtualbox/5.0.12/VirtualBox-5.0-5.0.12_104815_el7-1.x86_64.rpm
2. Install VirtualBox using RPM:
RPM-IVH virtualbox-5.0-5.0.12_104815_el7-1.x86_64.rpm
An error appears, displaying the following information:
Warning: virtualbox-5.0-5.0.12_104815_el7-1.x86_64.rpm: header V4 dsa/SHA1 Signature, key ID 98ab5139:nokey Error: Dependency detection failed: Libqtgui.so. 4 () (64bit) is virtualbox-5.0-5.0.12_104815_el7-1. x86_64 needs libqtopengl.so. 4 () (64bit) required by virtualbox-5.0-5.0.12_104815_el7-1.x86_64
This is because there are two dependent packages that are not installed and we need to install the following, using an online installation, to execute two commands:
Yum install Qtyum install qt-x11
An error appears, displaying the following information:
recompiling VirtualBox kernel modules [Failed] /var/log/vbox-Install.log to find out what went wrong) ln: target "setup" is not a directory
To view the error log:
Cat /var/log/vbox-install.logmakefile: and run make again. Stop it.
It is learned from the Internet that some dependent software is not updated to the latest and needs to be updated:
" Development Tools "
Perform the installation again:
RPM-IVH virtualbox-5.0-5.0.12_104815_el7-1.x86_64.rpm
You're done, check out the VirtualBox on the graphical interface!
Virtual box installation on CentOS 7