{"id":8925,"date":"2021-05-27T22:12:15","date_gmt":"2021-05-27T19:12:15","guid":{"rendered":"https:\/\/kifarunix.com\/?p=8925"},"modified":"2024-03-18T22:19:40","modified_gmt":"2024-03-18T19:19:40","slug":"install-virtualbox-guest-additions-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-rocky-linux-8\/","title":{"rendered":"Install VirtualBox Guest Additions on Rocky Linux 8"},"content":{"rendered":"\n
In this tutorial, you will learn how to install VirtualBox guest additions on Rocky Linux 8. In our previous guide, we learnt how to\u00a0<\/a>Install Rocky Linux 8 on VirtualBox<\/a>. However, it doesn\u2019t display in full-screen view by default.<\/p>\n\n\n\n The Guest Additions offer the following features:<\/p>\n\n\n\n Read more on VirtualBox Guest addition features on the VirtualBox User Manual<\/a>.<\/p>\n\n\n\n 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 Rocky Linux 8<\/p>\n\n\n\n Next, install the kernel headers and build tools by executing the command below;<\/p>\n\n\n\n Next, ensure that the version of kernel-devel<\/strong> installed does match the version of your running kernel. You can verify by running the commands below.<\/p>\n\n\n\n Sample output;<\/p>\n\n\n\n Sample output;<\/p>\n\n\n\n If they do not match, update your kernel by running;<\/p>\n\n\n\n Next, reboot the system and verify the kernel versions again.<\/p>\n\n\n\n VirtualBox guest additions can be installed via the command line or via GUI.<\/p>\n\n\n\n We will only discuss how to install VirtualBox guest additions via command line interface for now.<\/p>\n\n\n\n Check the current version of your VirtualBox on your host;<\/p>\n\n\n\n Sample output;<\/p>\n\n\n\n Download VirtualBox Guest Additions ISO file<\/a> of the same version as your installed VirtualBox.<\/p>\n\n\n\n Mount the guest addition iso under the Next, navigate to the mount directory and execute the Linux guest addition installer<\/p>\n\n\n\n Or simply run;<\/p>\n\n\n\n Once the installation completes, reboot the system to effect the changes.<\/p>\n\n\n\n When the system boots, you should be on full-screen view.<\/p>\n\n\n\n If the system do not auto-resize the screen, toggle it on the VM menu by clicking View<\/strong> > Auto-resize Guest Display<\/strong>.<\/p>\n\n\n\n And there you go.<\/p>\n\n\n\n Congratulations. You have successfully set the Rocky Linux 8 full-screen display on VirtualBox.<\/p>\n\n\n\n You can now enable other features such as shared clipboard, drag and drop between the host and virtual machine.<\/p>\n\n\n\n Install VirtualBox Guest Additions on Ubuntu 21.04<\/a><\/p>\n\n\n\n Install VirtualBox Guest Additions on Kali Linux 2020.3<\/a><\/p>\n\n\n\nInstalling VirtualBox Guest Additions on Rocky Linux<\/h2>\n\n\n\n
\n
Install Kernel Headers and Required Build Tools<\/h3>\n\n\n\n
dnf install epel-release -y<\/code><\/pre>\n\n\n\n
dnf install dkms kernel-devel kernel-headers gcc make bzip2 perl elfutils-libelf-devel<\/code><\/pre>\n\n\n\n
rpm -q kernel-devel<\/code><\/pre>\n\n\n\n
kernel-devel-4.18.0-240.22.1.el8.x86_64<\/code><\/pre>\n\n\n\n
uname -r<\/code><\/pre>\n\n\n\n
4.18.0-240.22.1.el8.x86_64<\/code><\/pre>\n\n\n\n
dnf update kernel-*<\/code><\/pre>\n\n\n\n
Install VirtualBox Guest Additions<\/h3>\n\n\n\n
VirtualBox guest additions via Command Line<\/h4>\n\n\n\n
VBoxManage --version<\/code><\/pre>\n\n\n\n
6.1.22r144080<\/code><\/pre>\n\n\n\n
wget http:\/\/download.virtualbox.org\/virtualbox\/6.1.22\/VBoxGuestAdditions_6.1.22.iso -P \/tmp<\/code><\/pre>\n\n\n\n
\/run\/media\/<\/code> directory.<\/p>\n\n\n\n
mount \/tmp\/VBoxGuestAdditions_6.1.22.iso \/run\/media\/<\/code><\/pre>\n\n\n\n
cd \/run\/media\/<\/code><\/pre>\n\n\n\n
.\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n
\/run\/media\/VBoxLinuxAdditions.run<\/code><\/pre>\n\n\n\n
Reboot Rocky Linux 8<\/h4>\n\n\n\n
<\/figure>\n\n\n\n
Other Tutorials<\/h3>\n\n\n\n