Install VirtualBox 7 on Linux Mint 21
Prereqs
Import GPG key
By default, VirtualBox 6 is available in the Linux Mint 21 repo, not VirtualBox 7. In the next step, we'll add it to our system. First, let's import the Oracle VirtualBox GPG keys that sign the software.
Add repository
Add the official VirtualBox repository to Linux mint 21. New versions will be available when you update the Linux Mint system.
Update package list
Install VirtualBox
Notice in the output, a group vboxusers
will be created.
Verify installed version
In a next step, we'll install the VirtualBox Extension Pack
. It is important that the version matches the version of VirtualBox. Let's checkout the version of VirtualBox.
Download extension pack
In this case, the version is 7.0.20. Download the Extension Pack with the same version.
Install extension pack
You will be prompted to agree to the Oracle’s license terms and conditions.
Verify extension pack
Add user to vboxusers group
Reboot + verify group membership
The user's current session doesn't automatically update with the new group memberships. The id
command only reflects the groups that the current session is aware of. The easiest way is to do a reboot first. Then check if the user is member of the group.
Start VirtualBox
Select "Menu" and start typing "vir". Start "Oracle VM VirtualBox".