Virtualbox - Install guest additions on RHEL 8 or CentOS 8

1. First install the following packages required for compilation of guest addition modules

# dnf install tar bzip2 kernel-devel-$(uname -r) kernel-headers 
perl gcc make elfutils-libelf-devel
 
 

 
2. Install Guest Addition  by running the installation script after mounting guest addition iso

# ./VBoxLinuxAdditions.run



3. Check if the guest addition modules has been installed

# lsmod | grep vbox
 
 
 

Reference:

https://linuxconfig.org/virtualbox-install-guest-additions-on-redhat-8