How to install Guest Additions on Rocky Linux 9/Alma Linux 9 /Red hat 9 ?

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

Hello, friends. We recently explained how to install VirtualBox 7 on Rocky Linux 9 / Alma Linux 9 / Red Hat 9. Now you will learn how to install Guest Additions on these systems. You’ll see that it’s simple.

Why do it?

One of the main reasons for installing Guest Additions is that it increases the capacity of the guest system. In the case of Linux, one of the main changes is the fact that you can use the full native screen resolution.

But this is not the only thing, you will also be able to share folders and clipboard, use USB devices and many other things.

In short, to get the best experience with Virtualbox, it is best to install Guest Additions.

Let’s get started.

Installing Guest Additions on Rocky Linux 9 / Alma Linux 9 / Red Hat 9

Note: To avoid confusion, it is necessary to clarify that the steps you will be instructed to follow will have to be done on the guest system.

Once you have installed Rocky Linux or some of the distributions listed above, it is necessary to update the system

sudo dnf update

Then, install all these packages so that it can work perfectly

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

With this done, you can then continue

Now in the VirtualBox window, click on the Devices menu and then on Insert Guest Additions CD image.

Install GuestAdditions  on  Rocky Linux 9/Alma Linux 9 /Red hat 9
Install GuestAdditions on Rocky Linux 9/Alma Linux 9 /Red hat 9

This will “insert” a CD into the system.

To mount it in a folder and be able to use it, run

sudo mkdir -p /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom

Now the next step is to simply access the folder and run the Guest Additions installer.

cd /mnt/cdrom
sudo ./VBoxLinuxAdditions.run

It will take a few minutes to do all the configurations and when finished, you should reboot the system to complete all the necessary changes.

Now you can use your system without any problems.

Conclusion

In this simple post, you learned how to install Guest Additions on a system like Red Hat and its derivatives. I hope you liked it and I hope you find it useful.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Angelo
Angelo
I am Angelo. A systems engineer passionate about Linux and all open-source software. Although here I'm just another member of the family.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook