Saturday, June 05, 2021

Failed To install Oracle VirtualBox Guest Additions on AlmaLinux 8

 After the installation of AlmaLinux 8 is completed, I failed to install Guest Additions from Oracle VirtualBox version 6.1, the error is shown as below in the red box:


These are the steps to resolve this error:

$ sudo dnf install epel-release
$ sudo dnf install gcc make perl kernel-devel kernel-headers bzip2 dkms

Reference: TechMint

For the error in the orange box, you can cleanup before the installation using the following commands and then rerun the installation of Guest Additions:

# semanage fcontext -d /opt/VBoxGuestAdditions-6.1.22/other/mount.vboxsf
# restorecon /opt/VBoxGuestAdditions-6.1.22/other/mount.vboxsf

Reference: VirtualBox