In previous post, I shared how to install VirtualBox on Windows 10. To continue the tutorial series about VirtualBox, I ‘d like to share how to install VirtualBox on CentOS 7.

You will need to be root or can be executed by root right (Using sudo)

1. Setup VirtualBox Repository

Execute below command to change from https to http in the gpgkey url which points to Vitualbox site.
VirtualBox installation will require building the kernel module. We will install DKMS (Dynamic Kernel Module Suport) from the EPEL repository.

2. Install required package

3. Install VirtualBox on CentOS 7

Firstly, we can check what versions of VirtualBox are available.

There are 2 versions of VirtualBox are available currently. We will install version 5.0

4. Rebuild kernel modules.

After installing VirtualBox, we have to rebuild the kernel modules.

Firstly, we need to check current kernel version.

Then we will set the environment KERN_DIR to the source of current kernel so that during the rebuilding, the source can be used/referenced

Note that the path is combined by: [/usr/src/kernels/] and kernel version: [3.10.0-327.10.1.el7.x86_64]

The next is rebuild the kernel module:

5. Start VirtualBox

We have just finished to install VirtualBox on CentOS 7 and now we can start VirtualBox by using command:

Or simply open Applications –> System Tools –> Oracle VM VirtualBox

Install VirtualBox On CentOS 7 - Start VirtualBox

Start VirtualBox on CentOS 7

The VirtualBox after started can be seen as below:

Install VirtualBox On CentOS 7 - VirtualBox Lauch

VirtualBox on CentOS 7

6. Conclusions.

We have tried to install VirtualBox on CentOS 7. On next post, I’d like to share how to install VirtualBox on other Linux distros like Ubuntu, Debian, etc.

0 0 vote
Article Rating