Objective
The objective is to install VirtualBox Guest Additions on CentOS 7 Linux
Operating System and Software Versions
- Operating System: – CentOS Linux release 7.5.1804 (Core)
Requirements
Privileged access to your Ubuntu System as root or via sudo
command is required.
Difficulty
EASY
Conventions
- # – requires given linux commands to be executed with root privileges either directly as a root user or by use of
sudo
command - $ – given linux commands to be executed as a regular non-privileged user
Instructions
Install Prerequsites
First step is to install all prerequisites. Let’s start by enabling the EPEL repository:
$ sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Next, execute the bellow linux command to install all prerequsites:
$ sudo yum install perl gcc dkms kernel-devel kernel-headers make bzip2
Confirm that kernel-headers installed are matching your currently running kernel:
$ ls -l /usr/src/kernels/$(uname -r)
The above command should produce a list of kernel header files.
Install VirtualBox Guest Additions
All done. Reboot your system.