VirtualBox is a popular, open-source, and powerful virtualization solution that allows you to run multiple operating systems on a single host machine. In this article, we will guide you through the process of installing VirtualBox on a Rocky Linux 9.4 system with BlueOnyx.
Prerequisites
Before we begin, ensure your Rocky Linux 9.4 system meets the following requirements:
- A stable internet connection
- A minimum of 2 GB RAM and 2 CPU cores
- The system must be updated with the latest packages
Installing VirtualBox Repository
To install VirtualBox on Rocky Linux, we need to add the VirtualBox repository. Run the following commands:
su root
echo "rpm --import https://download.virtualbox.org/rpm/debian/sunrpm.asc" | sudo sh
sudo tee /etc/yum.repos.d/virtualbox.repo <<- EOM
[virtualbox]
name = VirtualBox - $releasever
baseurl=https://download.virtualbox.org/virtualbox/rpm/9.4/rhel/x86_64/
enabled=1
gpgcheck=1
gpgkey=https://download.virtualbox.org/rpm/debian/sunrpm.asc
EOM
Installing VirtualBox
Now, we can install VirtualBox using the following command:
sudo yum install VirtualBox-6.1
Adding the VirtualBox User to the vboxusers Group
After installation, add the user to the vboxusers group to allow them to run VirtualBox:
su root
usermod -aG vboxusers
Configuring VirtualBox
Once installed, you can start the VirtualBox Manager by running:
VirtualBox
Creating a New Virtual Machine
To create a new virtual machine, click on "New" in the VirtualBox Manager interface. Follow the on-screen instructions to configure the settings for your new virtual machine, such as the operating system type, memory size, and hard disk size.
Installing the Guest Additions
To improve the performance and functionality of your virtual machine, install the Guest Additions. Once the virtual machine is running, go to "Devices" > "Insert Guest Additions CD image." Follow the on-screen instructions to complete the installation.
In this article, we have covered the process of installing VirtualBox on a Rocky Linux 9.4 system with BlueOnyx. We added the VirtualBox repository, installed VirtualBox, added the user to the vboxusers group, and configured VirtualBox to create a new virtual machine and install the Guest Additions.