Introduction
VirtualBox Guest Additions are a set of drivers and applications that are designed to improve the functionality of virtual machines running on the VirtualBox platform. By installing Guest Additions on a Red Hat Enterprise Linux (RHEL) 9.5 Server, you can enhance the user experience by enabling features such as shared folders, improved video support, and copy and paste between the host and guest operating systems. This article will guide you through the process of enabling Guest Additions on RHEL 9.5 Server using the command line interface (CLI).
Before You Begin
Before you begin, make sure that you have the following prerequisites:
- A host operating system that supports VirtualBox (in this case, Windows 11 Home 23H2)
- A guest operating system that is RHEL Server 9.5 (CLI)
- VirtualBox installed on the host operating system
Upgrading RHEL Server 9.4 to RHEL Server 9.5
If you are upgrading from RHEL Server 9.4 to RHEL Server 9.5, follow these steps:
- Start the RHEL Server 9.4 virtual machine
- Open a terminal window and run the following command to upgrade to RHEL Server 9.5:
sudo yum upgrade - Reboot the virtual machine after the upgrade is complete
Enabling Guest Additions on RHEL Server 9.5
Follow these steps to enable Guest Additions on RHEL Server 9.5:
- Start the RHEL Server 9.5 virtual machine
- Select the Devices menu in VirtualBox, then select Insert Guest Additions CD image
- Enter the following command in the terminal window to mount the CD image:
sudo mount /dev/cdrom /mnt - Enter the following command to run the installer script:
sudo /mnt/VBoxLinuxAdditions.run - Restart the virtual machine after the installation is complete
Troubleshooting
If you encounter errors during the installation process, try the following troubleshooting steps:
- Make sure that the CD image is mounted correctly
- Check that the dependencies are installed
- Try rebuilding the kernel modules
Enabling VirtualBox Guest Additions on RHEL Server 9.5 can significantly improve the user experience and provide additional functionality. By following the steps in this article, you can enable Guest Additions on RHEL Server 9.5 using the command line interface.
References
-
Red Hat Enterprise Linux 9.5 Documentation
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.5_release_notes/index -
VirtualBox Documentation
https://www.virtualbox.org/manual/ch04.html#idp18826640