Install VirtualBox Guest Additions on CentOS 8

|
Last Updated:
|
|

In our previous guide, we learnt how to Install CentOS 8 on VirtualBox. However, it doesn’t display in full-screen view by default. This guide will take you through how to install VirtualBox guest additions on CentOS 8 to enable you have a full-screen view.

Installing VirtualBox Guest Additions on CentOS 8

The Guest Additions offer the following features:

  • Mouse pointer integration
  • Shared folders for easy sharing of files between the host and the guest
  • Ensures better and accelerated video performance.
  • Seamless windows integration
  • Generic host/guest communication channels that enables you to control and manage guest execution.
  • Provides Host-Guest time synchronization.
  • Shared clipboard between host and guest vm.
  • Automated logins.

Read more on VirtualBox Guest addition features on the VirtualBox User Manual.

Install Kernel Headers and Required Build Tools

After mounting ISO file, be sure to install the kernel headers and required build tools. Some of the required tools are available on the EPEL repos, hence begin by installing the EPEL repos on CentOS 8

dnf install epel-release

Next, install the kernel headers and build tools by executing the command below;

dnf install dkms kernel-devel kernel-headers gcc make bzip2 perl elfutils-libelf-devel

Before you can proceed, ensure that the version of kernel-devel installed does match the version of your running kernel. You can verify by running the commands below.

rpm -q kernel-devel
uname -r

If they do not match, update your kernel by running;

dnf update kernel-*

Next, reboot the system and verify the kernel versions again.

Install Guest Additions

Now, proceed to install guest additions on CentOS 8.

VirtualBox guest additions can be installed via the command line or via GUI

Install Guest Additions via the Terminal

To install VirtualBox guest additions via the terminal, you need to mount the guest additions image file by executing the command;

sudo mount /dev/cdrom /run/media/

This will mount the guest addition installers under the /run/media/ directory.

Hence, navigate to the mount directory and execute the Linux guest addition installer

cd /run/media/
./VBoxLinuxAdditions.run

Once the installation completes, reboot the system to effect the changes.

Install Guest Additions via the GUI

Click Devices > Insert Guest Additions CD image on the Menu bar to mount the VirtualBox guest addition iso file on a CentOS 8 VM.

While mounting the guest additions image, you are prompted whether to automatically run the installation.

Install VirtualBox Guest Additions on CentOS 8

Click run and authenticate so as to run the installer with administrative privileges (If you are logged in as non-root user).

authenticate

Once the installation completes, reboot the system to effect the changes.

When the system boots, you should be on full-screen view.

VirtualBox CentOS 8 full screen view

Congratulations. You have successfully set the CentOS 8 full-screen display on VirtualBox.

Related Tutorials

AutoStart VirtualBox VMs on System Boot on Linux

Install VirtualBox Guest Additions on Debian 10 Buster

Install and Configure Endian Firewall on VirtualBox

Install VirtualBox Extension Pack on VirtualBox 6.0

Install Fedora 30 Workstation on VirtualBox

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

7 thoughts on “Install VirtualBox Guest Additions on CentOS 8”

  1. hi @koromicha. i tried the instructions above upto the isntallation via CLI. all worked. (except shared clipboard{wont copy-pate from guest to host[vice versa]}already enable bi-directional) on centos8.

    can you advise? thanks

    Reply

Leave a Comment