Straightforward installation of virtualbox on CentOs 7


#1

Hi,

I am struggling to install virtualbox on my CentOs 7 machine but I didn’t find a straightforward solution to do it.

Any solution please?


#2

Hi Fisher,

This is few steps you can follow to install it.

Add virtualbox repository

wget -c http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
cp virtualbox.repo /etc/yum.repos.d/

Install virtualbox

yum update
yum install VirtualBox-5.2

Install dependencies for kernel compilation

yum install gcc
yum install kernel-uek-devel kernel-uek-devel-4.1.12-61.1.18.el7uek.x86_64

For the kernel installation you may face some challenges to identify the correct kernel version. In this case kindly run the command below to identify the correct version:

sudo /sbin/vboxconfig