Inside Gnome Boxes
A simple virtual machine
ByFor average users, Gnome Boxes offers an easy-to-use virtual machine solution for Linux.
When Linux users want a virtual machine, many install VMware Workstation Player or VirtualBox. Neither is free-licensed, but both are free for downloading and easier to use than Qemu. In comparison, Gnome Boxes (Boxes) is less well-known , but deserves attention. A front end for Qemu, KVM, and libvirt, Boxes is not only the most efficient VM solution for Linux, Windows, or BSD, but also improves some of the features that make alternatives difficult to use. In fact, it is so simple that I thought twice about reviewing it, on the grounds that it is so simple that it can almost speak for itself.
Boxes is available in major distributions or by cloning and then compiling the project’s current files on GitLab with:
git clone https://gitlab.gnome.org/gnome/gnome-boxes
Unlike VirtualBox (the virtualization solution with which I’m most familiar), Boxes does not require headers for the current kernel, just standard libraries. The project recommends 8GB RAM and 20GB of free disk space, meaning that it requires a recent machine. In addition, each VM requires the specifications indicated in its disk image, or else it defaults to 500MB RAM and a maximum of 20GB disk space. By contrast, VirtualBox allocates 1GB RAM by default to each VM and just over 8GB of disk space, both of which need to be increased if you plan to do more than explore a distribution.
Boxes’ interface follows Gnome’s interface guidelines, which makes for a clean, minimalist display (Figure 1). The panel contains icons for general information and creating a new VM on the left and icons for searching and changing the display format on the right beside the usual titlebar keys. The rest of the window displays the installed VMs, which can be filtered to show all, local, or remote machines. Each VM can also be right-clicked to modify it. Help is available from the first icon on the left, and much of the interface throughout Boxes has embedded help below selectable items, making for an easily navigable display.
Boxes opens in a window that occupies half the screen, but it can display full-screen. The transition to full-screen is both faster and less distorted in its proportions than the same features on VirtualBox.
Creating a VM
To start creating a VM, click the New button on the left side of the titlebar. The screen switches to four choices for selecting the installation image (Figure 2): the latest Fedora workstation at the time of the current version; the current releases for Red Hat Enterprise Linux, Fedora Workstation and Fedora Silverblue, Ubuntu, openSUSE Leap, and Debian; an image on a remote system; and a downloaded local image or one inserted in a DVD player. The Fedora and Red Hat orientation is annoying, especially since detailed choices of Debian releases and repositories on the second page can be overlooked, but the interface does make the selection of the image part of the process, rather than something to do before beginning virtualization.
Before the creation of a VM begins, you have the option to customize the allocated RAM and storage space (Figure 3). However, unless your system is short of either, no reason exists to lower the defaults. Neither does much reason exist to increase the defaults, unless you intend the VM for serious work. For many purposes, the defaults should be more than adequate.
At this point, experts might complain that Boxes lacks the choice of the VM type to create. Boxes simply creates a Virtual Disk Image, with no option to choose a Virtual Hard Disk or Virtual Machine Disk as on VirtualBox. Neither can you specify a fixed size -- just a maximum size, so that the VM does not take over the entire drive. However, Boxes’ choices are what many users (if not most) want anyway, so the lack of options may hardly be missed. In general, the lack of options seems a reasonable exchange for Boxes’ streamlined simplicity.
But no matter what your choices, when you have made them, click the Create button in the window's upper right corner to go through a standard installation procedure in about the same time you would take if installing to hardware. If, as with many distributions, the installation gives you the option of a Live DVD rather than the installation, then, unlike with Virtual Box, the Live option can be used more than once. This setup means that you can save time and space by using the Live option. Later, if you want, you can install from the Live DVD.
Editing a VM
Once a VM is created, it can be modified by opening its right-click menu (Figure 4). The menu includes options for opening the VM in another window or cloning it. In addition, you can add it to your favorites, which means that a star is added to the lower left of the icon to make it easier to find in a crowded window. Still another option is to delete -- after which, a convenient Undo button appears for 30 seconds in case you have second thoughts.
However, the most useful right-click menu item is Properties (Figure 5). After clicking Properties, you can see what software runs the VM on the General tab. From the Systems tab, you can adjust the RAM and storage space allocated, as well as force a shutdown or restart and view the Troubleshooting Log (Figure 6). On the Devices & Shares tab, you can set the VM to use the host system’s clipboard and any USB-mounted devices – all of which is much simpler than setting up the often cranky VirtualBox Guest Additions. For serious work, you can also take advantage of the Snapshots tab, taking a record of the VM with a single click that can be used to revert to a previous setup.
Small Defects
Occasionally, Gnome Boxes can be flaky. It can take a long moment to access a disk image. Occasionally, it can be slow to release the mouse back to the host operating system. However, despite these stutters, Boxes is simple to set up, and its VMs generally run as quickly as the host system -- or, if they are slower, I cannot detect the difference. Other possible shortcomings, such as a lack of options or an orientation towards Fedora are minor enough to be overlooked. VMware may have originated virtualization, and VirtualBox may have made it easier, but, for average users, Gnome Boxes has perfected it -- and provided software freedom as part of the bargain. Even if Gnome is not your usual desktop environment, it is worth installing just for Boxes.
next page » 1 2
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.