In this tutorial we’ll learn how to install VirtualBox on CentOS 7. We will also install and configure its prerequisites. Virtualbox is an advanced virtualization platform. It runs on Windows, Linux, Macintosh, and Solaris hosts and supports a great number of guest operating systems. It is available as Open Source Software (GPL2). It’s lightweight and actively developed, so it is acceptable for use in workstations.
I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install VirtualBox on CentOS 7
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
yum -y install epel-release yum -y update
Step 2. Installing VirtualBox.
First, Install all Virtualbox dependencies:
yum install gcc make patch dkms qt libgomp kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
Now install VirtualBox Latest Version 5.2:
yum install VirtualBox-5.2
Once VirtualBox package is installed then rebuild the kernel modules using the following command:
Add your user name in to vboxuser group:
usermod -a -G vboxusers rezkia
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.