This article will show you how to Install VirtualBox 7.0 on Rocky Linux 9|AlmaLinux 9. Although virtualization is one of the more established technologies, it is still in high demand today.
It is just the division and local sharing of a computer’s resources. This facilitates the development of virtual/software versions of system resources including storage, networks, programs, etc.
To divide a single machine into many, autonomous virtual machines (VMs), many individuals and companies employ virtualization in various ways. A Hypervisor is necessary for virtualization to take place.
VirtualBox is an open-source hosted/type 2 hypervisor for business and home use.
It can be used to build and operate virtual machines running Windows, Linux, OS/2, Solaris, macOS, and more. This device was originally made available in 2007. It has a wealth of features in addition to strong performance.
Features of the Latest VirtualBox 7.0
VirtualBox 7.0 have the following cool features:
- VM configuration logs and saved states can now be completely encrypted (CLI only for now).
- All platforms now have better support for GUI themes; on Linux and macOS, this is done through a separate implementation on the Windows host.
- Initial support for automated upgrading of Linux guests’ guest additions was implemented.
- Added a new GUI tool that displays information about the running guests’ performance (such as their CPU and RAM use and disk I/O rates).
- When updating Guest Additions through VBoxManage, the possibility to wait for and/or reboot the guest has been implemented.
- Virtual Guest Additions: Guest screen resizing functionality has been reworked, and basic integration with some of the guest Desktop Environments has been added.
- New 3D support based on DirectX 11 has been added (and DXVK on non-Windows hosts).
- TPM 1.2 and 2.0 virtual devices have been added.
- The open-source base package now includes the USB controllers EHCI and XHCI.
- The addition of extremely experimental support for guest debugging via KD/WinDb and experimental support for guest debugging via GDB.
- Virtual Machine Manager allows for the addition of cloud virtual machines that may be managed like local VMs.
- Now, cloud networks may be configured using the Network Manager tool in the same manner that NAT and host-only networks are.
Install VirtualBox 7.0 on Rocky Linux 9|AlmaLinux 9
The following steps will guide you on how to install VirtualBox 7.0 on Rocky Linux 9|AlmaLinux 9.
Step 1: Update the system
Update the system to the most recent version.
sudo dnf update -y
To install VirtualBox on your system, you must first ensure that your processor supports virtualization. This is usually done in BIOS/UEFI settings. To see if it is enabled, run the following command:
$ lscpu | grep Virtualization
Virtualization: VT-x
Virtualization type: full
Additionally, make sure your computer is a 64-bit;
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 39 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) CPU E3-1275 v5 @ 3.60GHz
CPU family: 6
Model: 94
........
Step 2: Add the VirtualBox Repository
VirtualBox is not included in the standard Rocky Linux 9|AlmaLinux 9 repositories. You must add the official repositories before you can install them.
To begin, enable the EPEL repository:
sudo dnf install epel-release -y
Install the necessary development tools.
sudo dnf install wget curl gcc make perl bzip2 dkms kernel-devel kernel-headers -y
After installation, contrast the kernel and kernel-devel versions:
$ rpm -q kernel-devel
kernel-devel-5.14.0-70.26.1.el9_0.x86_64
$ uname -r
5.14.0-70.26.1.el9_0.x86_64
We need to update the Linux Kernel because the two don’t match using the command below:
sudo dnf update -y
Reboot the system to allow the Kernel updates to take effect:
sudo reboot
When the system boots, check to see if the Kernel and kernel-devel are the same versions.
Then, add the following VirtualBox repositories to your system:
sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
Step 3: Install VirtualBox 7.0 on Rocky Linux 9|AlmaLinux 9
After you’ve added the repository, look for the available VirtualBox versions.
sudo dnf search virtualbox
Output.
================= Name & Summary Matched: virtualbox ==================
VirtualBox-6.1.x86_64 : Oracle VM VirtualBox
VirtualBox-7.0.x86_64 : Oracle VM VirtualBox
As per the above output, VirtualBox 7.0 is available. Use the following command to install it:
$ sudo dnf install VirtualBox-7.0 -y
Last metadata expiration check: 0:01:53 ago on Thu 27 Oct 2022 06:59:11 PM CEST.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
VirtualBox-7.0 x86_64 7.0.2_154219_el9-1 virtualbox 92 M
Installing dependencies:
pcre2-utf16 x86_64 10.37-5.el9_0 appstream 208 k
qt5-qtbase x86_64 5.15.2-29.el9 appstream 3.6 M
qt5-qtbase-common noarch 5.15.2-29.el9 appstream 12 k
qt5-qtbase-gui x86_64 5.15.2-29.el9 appstream 6.3 M
qt5-qttools-common noarch 5.15.2-11.el9 appstream 11 k
qt5-qttools-libs-help x86_64 5.15.2-11.el9 appstream 155 k
qt5-qtx11extras x86_64 5.15.2-6.el9 appstream 35 k
xcb-util-image x86_64 0.4.0-19.el9 appstream 19 k
xcb-util-keysyms x86_64 0.4.0-17.el9 appstream 14 k
xcb-util-renderutil x86_64 0.3.9-20.el9 appstream 17 k
xcb-util-wm x86_64 0.4.1-22.el9 appstream 31 k
Transaction Summary
================================================================================
Install 12 Packages
Total download size: 102 M
Installed size: 237 M
Downloading Packages:
(1/12): xcb-util-wm-0.4.1-22.el9.x86_64.rpm 127 kB/s | 31 kB 00:00
(2/12): xcb-util-keysyms-0.4.0-17.el9.x86_64.rp 56 kB/s | 14 kB 00:00
(3/12): pcre2-utf16-10.37-5.el9_0.x86_64.rpm 697 kB/s | 208 kB 00:00
(4/12): xcb-util-renderutil-0.3.9-20.el9.x86_64 296 kB/s | 17 kB 00:00
(5/12): xcb-util-image-0.4.0-19.el9.x86_64.rpm 331 kB/s | 19 kB 00:00
(6/12): qt5-qtx11extras-5.15.2-6.el9.x86_64.rpm 1.5 MB/s | 35 kB 00:00
(7/12): qt5-qttools-common-5.15.2-11.el9.noarch 180 kB/s | 11 kB 00:00
(8/12): qt5-qttools-libs-help-5.15.2-11.el9.x86 1.1 MB/s | 155 kB 00:00
(9/12): qt5-qtbase-common-5.15.2-29.el9.noarch. 386 kB/s | 12 kB 00:00
(10/12): qt5-qtbase-5.15.2-29.el9.x86_64.rpm 17 MB/s | 3.6 MB 00:00
(11/12): qt5-qtbase-gui-5.15.2-29.el9.x86_64.rp 21 MB/s | 6.3 MB 00:00
(12/12): VirtualBox-7.0-7.0.2_154219_el9-1.x86_ 40 MB/s | 92 MB 00:02
--------------------------------------------------------------------------------
Total 32 MB/s | 102 MB 00:03
Oracle Linux / RHEL / CentOS-9 / x86_64 - Virtu 2.9 kB/s | 1.7 kB 00:00
Importing GPG key 0x98AB5139:
Userid : "Oracle Corporation (VirtualBox archive signing key) <[email protected]>"
Fingerprint: 7B0F AB3A 13B9 0743 5925 D9C9 5442 2A4B 98AB 5139
From : https://www.virtualbox.org/download/oracle_vbox.asc
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : qt5-qttools-common-5.15.2-11.el9.noarch 1/12
Installing : xcb-util-image-0.4.0-19.el9.x86_64 2/12
Installing : xcb-util-renderutil-0.3.9-20.el9.x86_64 3/12
Installing : xcb-util-wm-0.4.1-22.el9.x86_64 4/12
Installing : xcb-util-keysyms-0.4.0-17.el9.x86_64 5/12
Installing : pcre2-utf16-10.37-5.el9_0.x86_64 6/12
Installing : qt5-qtbase-common-5.15.2-29.el9.noarch 7/12
Running scriptlet: qt5-qtbase-5.15.2-29.el9.x86_64 8/12
Installing : qt5-qtbase-5.15.2-29.el9.x86_64 8/12
Running scriptlet: qt5-qtbase-5.15.2-29.el9.x86_64 8/12
Installing : qt5-qtbase-gui-5.15.2-29.el9.x86_64 9/12
Installing : qt5-qtx11extras-5.15.2-6.el9.x86_64 10/12
Installing : qt5-qttools-libs-help-5.15.2-11.el9.x86_64 11/12
Running scriptlet: VirtualBox-7.0-7.0.2_154219_el9-1.x86_64 12/12
Installing : VirtualBox-7.0-7.0.2_154219_el9-1.x86_64 12/12
Running scriptlet: VirtualBox-7.0-7.0.2_154219_el9-1.x86_64 12/12
Creating group 'vboxusers'. VM users must be member of that group!
Verifying : pcre2-utf16-10.37-5.el9_0.x86_64 1/12
Verifying : xcb-util-keysyms-0.4.0-17.el9.x86_64 2/12
Verifying : xcb-util-wm-0.4.1-22.el9.x86_64 3/12
Verifying : xcb-util-renderutil-0.3.9-20.el9.x86_64 4/12
Verifying : xcb-util-image-0.4.0-19.el9.x86_64 5/12
Verifying : qt5-qtx11extras-5.15.2-6.el9.x86_64 6/12
Verifying : qt5-qttools-libs-help-5.15.2-11.el9.x86_64 7/12
Verifying : qt5-qttools-common-5.15.2-11.el9.noarch 8/12
Verifying : qt5-qtbase-gui-5.15.2-29.el9.x86_64 9/12
Verifying : qt5-qtbase-5.15.2-29.el9.x86_64 10/12
Verifying : qt5-qtbase-common-5.15.2-29.el9.noarch 11/12
Verifying : VirtualBox-7.0-7.0.2_154219_el9-1.x86_64 12/12
Installed:
VirtualBox-7.0-7.0.2_154219_el9-1.x86_64
pcre2-utf16-10.37-5.el9_0.x86_64
qt5-qtbase-5.15.2-29.el9.x86_64
qt5-qtbase-common-5.15.2-29.el9.noarch
qt5-qtbase-gui-5.15.2-29.el9.x86_64
qt5-qttools-common-5.15.2-11.el9.noarch
qt5-qttools-libs-help-5.15.2-11.el9.x86_64
qt5-qtx11extras-5.15.2-6.el9.x86_64
xcb-util-image-0.4.0-19.el9.x86_64
xcb-util-keysyms-0.4.0-17.el9.x86_64
xcb-util-renderutil-0.3.9-20.el9.x86_64
xcb-util-wm-0.4.1-22.el9.x86_64
Complete!
Step 4: Set up the VirtualBox Extension Pack
VirtualBox Extension Pack gives VirtualBox capabilities including RDP, disk encryption, NVMe, and PXE boot for Intel cards and USB 2.0 and USB 3.0 devices.
Visit the official VirtualBox downloads page to get the Extension Pack. Download the “all supported platforms” bundle from the website.
Additionally, wget can be used to download the pack.
wget https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack
Make the kernel modules now by running the command:
$ sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
After downloading, use the following command to install it:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-*.vbox-extpack
Output.
VirtualBox Extension Pack Personal Use and Evaluation License (PUEL)
License version 11, 21 May 2020
PLEASE READ THE FOLLOWING ORACLE VM VIRTUALBOX EXTENSION PACK PERSONAL
USE AND EVALUATION LICENSE CAREFULLY BEFORE DOWNLOADING OR USING THE
ORACLE SOFTWARE. THESE TERMS AND CONDITIONS CONSTITUTE A LEGAL AGREEMENT
BETWEEN YOU AND ORACLE.
..................
9 U.S. GOVERNMENT END USERS. Oracle programs, including the Product,
any operating system, integrated software, any programs installed on
hardware, and/or documentation, delivered to U.S. Government end users
are "commercial computer software" pursuant to the applicable Federal
Acquisition Regulation and agency-specific supplemental regulations. As
such, use, duplication, disclosure, modification, and adaptation of
the programs, including any operating system, integrated software,
any programs installed on the hardware, and/or documentation, shall
be subject to license terms and license restrictions applicable to the
programs. No other rights are granted to the U.S. Government.
Do you agree to these license terms and conditions (y/n)? y
License accepted. For batch installation add
--accept-license=33d7284dc4a0ece381196fda3cfe2ed0e1e8e7ed7f27b9a9ebc4ee22e24bd23c
to the VBoxManage command line.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".
Step 5: Launch VirtualBox 7.0 on Rocky Linux 9|AlmaLinux 9
VirtualBox 7.0 is now ready for use after it has been installed. As shown, launch it from the App Menu:
![How to install VirtualBox 7.0 on RockyLinux 9|AmaLinux 9](https://i0.wp.com/tutornix.com/wp-content/uploads/2022/10/Screenshot-from-2022-10-18-09-14-54.png?resize=608%2C250&ssl=1)
To create a virtual machine, click New and follow the instructions.
![How to install VirtualBox 7.0 on RockyLinux 9|AmaLinux 9](https://i0.wp.com/tutornix.com/wp-content/uploads/2022/10/Install-VirtualBox7.0.png?resize=700%2C411&ssl=1)
Conclusion
This concludes our tutorial on how to Install VirtualBox 7.0 on Rocky Linux 9|AlmaLinux 9. Thank you.
More info: VirtualBox Documentation.
Feel free to check our cool guides below: