

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. VirtualBox guest additions is a great way to enhance the performance and improve your experience using VirtualBox, there were two easy ways to install guest addition, follow what you are comfortable with.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. Now reboot your virtual machine because there were some changes in the kernel. sudo mkdir /mnt/my_cdīe sure to cd into the / mnt/my_cd directory, and execute guest additions installation script using as root. Open a terminal, create a new directory to be a mount point for the CD image we just attached, and mount /dev/cdrom in that directory. Update your apt package list and upgrade all of your software (run these commands in a terminal): sudo apt updateĪttach Guest additions CD image from the Devices menu. Install VirtualBox Guest Additions Using the Command-Line Now reboot your machine again for changes to take effect. Wait for installation to complete and hit enter. You just need to open devices menu within VirtualBox, and then select insert guest addition CD image.Īfter that Ubuntu will automatically mount the CD, and it will ask you whether you want to execute an automatic software, select run. If you installed VirtualBox the standard way, then you have an empty virtual optical drive. Sudo apt install build-essential dkms linux-headers-$(uname -r) Then install some packages that are necessary for installing guest additions. You need to update your apt package list and upgrade all the software installed on your machine: sudo apt update Open a terminal either graphically or by pressing t while holding both Ctrl and Alt keys. Install VirtualBox Guest Additions Using the GUI Install VirtualBox Guest Additions Using the Command-Line.Install VirtualBox Guest Additions Using the GUI.
