
Install VirtualBox Guest Additions Using GUI There are two options available, you can mount and run VirtualBox Guest Additions through GUI or mount and run it using the terminal. Once you are done, now you can proceed to install VirtualBox Guest Additions. Note: uname -r command result is the kernel current version.

sudo dnf install kernel-headers-$(uname -r) kernel-devel-$(uname -r) elfutils-libelf-devel gcc make tar bzip2 Use the following nested command to resolve dependencies. You need to make sure that the version of dependencies packages of the kernel like kernel-devel and kernel-headers are the same as the core kernel package version. sudo dnf -y install kernelĪfter kernel Installation, reboot your system using the sudo reboot or sudo systemctl reboot command to ensure changes take effect. Install the kernel using the following command. To update your system in CentOS, use the following command. Update your system as recommended to ensure that packages are of the latest version. As AlmaLinux is a successor of CentOS, the steps in this tutorial are also valid for the AlmaLinux operating system.

Note: The commands in this tutorial are executed on the Rocky Linux system. In this article, You will learn to install VirtualBox Guest Additions in your CentOS 8, Rocky Linux, or AlmaLinux system.

Unfortunately, installing VirtualBox Guest Additions in CentOS/RockyLinux/AlmaLinux has become more problematic due to missing dependencies and version inconsistencies. VirtualBox Guest Additions is a piece of software that enables you to use the guest operating system in its true form and it also lets you communicate with the host operating system which makes the use of the guest operating system a lot smoother. If you have used VirtualBox, You might have noticed that display, performance, and communication between host and guest operating system leave a lot to be desired.
