Virtual machines
Get more from your virtual machines
VIRTUALBOX
Nick Peers reveals how to install the latest version of VirtualBox and use its new and existing features to improve your VM experience.
OUR EXPERT
Nick Peers has been playing with virtual machines for as long as he can remember. He’s tried most of them, but keeps circling back to VirtualBox.
QUICK TIP
Look out for possible UBSAN errors on Ubuntu machines related to VirtualBox.Visit https://forums. virtualbox. org/viewtopic. php?t=110315 for a discussion – on our test machine (Ryzen 7 5700x, Nvidia GTX 1660 Super graphics), the errors (non-critical) appear on a system running VirtualBox 7.0.14.
Let’s lay our cards on the table. We’re not here to L show you how to use VirtualBox for the first time – we assume you’re already using it for whatever needs you have, from enabling you to give alternative distros an extended test to keeping an old Windows install on the side for apps you can’t live without and that don’t run in Wine or CrossOver.
Instead, we’re assuming you’ve been using the version supplied by your distro’s repositories, which likely means VirtualBox 6.1. In this tutorial, we’ll take a deep dive into the features unveiled in version 7.0 and now largely refined after more than a dozen interim maintenance releases. In addition, we’ll provide some tips to help you get the most from your VMs.
Get VirtualBox 7
The first step is to upgrade to the latest version of VirtualBox – the box (opposite) provides a précis of the new features on offer to give you a reason to upgrade.
You can download a DEB or RPM file of the latest release for your specific distro from www.virtualbox. org/wiki/Linux_Downloads, but you can also install it from a dedicated VirtualBox repo to take the hassle out of future updates, which appear every few months.
If you’re running Ubuntu, Mint or some other Debian derivative, the following commands should see VirtualBox 7.0.14 (at time of writing) installed:
$ sudo apt update $ wget -O- https://www.virtualbox.org/download/ oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016. gpg $ echo “deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] http://download. virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib” | sudo tee /etc/apt/sources.list.d/virtualbox.list $ sudo apt update && sudo apt install virtualbox-7.0
Build a catalogue of VMs so you can road-test multiple OSes or set up various test beds.
Before launching VirtualBox 7, you may have to add your user to the vboxusers group to avoid possible USB enumeration errors on startup:
$ sudo usermod -a -G vboxusers
Replace with your username (so vboxusers nick , for example), then log out and back in.