GNOME Boxes

On this page 7

GNOME Boxes is a desktop application for creating, running and managing virtual machines on Linux with as little configuration as possible. In the field of virtualization on Linux, it acts as a friendly front end to libvirt, QEMU and KVM: the user picks an operating system, and Boxes downloads or accepts the installation media, sizes the virtual hardware, creates the disk image and starts the guest in a window.

Boxes targets desktop users, developers and testers rather than server administrators. It deliberately hides most tuning options, which makes it fast to start with but limits what it can do. Understanding where that boundary lies, and which underlying components do the real work, explains both its convenience and its constraints.

How GNOME Boxes builds on libvirt and KVM

GNOME Boxes does not implement a hypervisor of its own; it orchestrates an existing virtualization stack. The actual CPU and memory virtualization is performed by KVM, the kernel module that uses hardware extensions such as Intel VT-x or AMD-V, while QEMU emulates the devices that the guest sees, such as disks, network cards and the display adapter.

Between Boxes and QEMU sits libvirt, which stores every machine as an XML domain definition and manages its lifecycle. Boxes normally connects to the per-user libvirt session, known by the URI qemu:///session, instead of the system-wide qemu:///system connection. This design means that no root privileges are needed to create or run a guest, but it also means that the guests belong to one user account only.

The following table shows which component is responsible for each part of the work when a virtual machine runs in Boxes.

ComponentRoleVisible to the user
KVMHardware-assisted CPU and memory virtualizationNo, works inside the kernel
QEMUDevice emulation and the guest processNo, started by libvirt
libvirtDomain definitions, lifecycle, snapshotsIndirectly, through Boxes actions
libosinfoOperating system catalog and recommended resourcesYes, in the download list
SPICEDisplay, clipboard, USB and folder sharingYes, as the guest window
Boxes interfaceGTK front end tying everything togetherYes, the application itself
Components behind a GNOME Boxes virtual machine

Creating a virtual machine in Boxes

A new machine in GNOME Boxes starts from an installation source: a downloadable operating system from the built-in catalog, a local ISO file, or an existing disk image. Boxes queries libosinfo to recognize the operating system and to choose recommended memory, disk size and virtual devices, so the user rarely needs to adjust anything before the first boot.

For several popular distributions and for some Windows releases, Boxes offers an express installation, an unattended install that fills in the user name, password and language automatically. The disk image is created in the qcow2 format, which allocates space on demand and supports internal snapshots, so a guest with a 40 GB virtual disk initially occupies only a few gigabytes on the host.

The installation sources differ in speed and in how much Boxes can automate, as this table summarizes.

SourceWhat Boxes doesTypical use
Catalog downloadFetches the image and detects the OSQuick trial of a current distribution
Local ISO fileDetects the OS, may offer express installSpecific release or offline work
Existing disk imageImports qcow2 or raw disk into the image storeReusing a prepared guest
Remote addressHistorically opened VNC or SPICE sessionsNow largely moved to a separate client
Installation sources supported by GNOME Boxes

Integration features between host and guest

Boxes relies on the SPICE protocol for the guest display, which enables several desktop integration features once the spice-vdagent service runs inside the guest. These include shared clipboard, automatic display resizing when the window changes size, USB device redirection and shared folders exposed through the SPICE WebDAV channel.

For Linux guests, Boxes can enable 3D acceleration through virgl, a virtio-gpu mode that forwards OpenGL commands to the host GPU. It noticeably improves desktop smoothness, but it is not equivalent to GPU passthrough, which dedicates a physical graphics card to the guest through VFIO and is outside the scope of Boxes.

Each integration feature has its own requirement inside the guest, which explains why a fresh guest sometimes lacks clipboard or resizing support.

FeatureRequirement in the guestCommon symptom when missing
Shared clipboardspice-vdagent runningCopy and paste do not cross the window
Dynamic resolutionspice-vdagent and a QXL or virtio-gpu driverFixed small resolution
Shared foldersWebDAV client such as spice-webdavdFolder not visible in the guest
3D accelerationLinux guest with virtio-gpu and MesaSlow animations, software rendering
USB redirectionNo guest agent, host permissions onlyDevice not offered in the menu
Guest integration features and their requirements

GNOME Boxes compared with other Linux virtualization tools

GNOME Boxes occupies the simplest end of the libvirt tooling spectrum. virt-manager uses the same libvirt back end but exposes nearly every device and XML option, while virsh is the command-line interface for scripted administration. Platforms such as Proxmox VE or Incus manage entire hosts or clusters and are aimed at servers rather than a single desktop.

The comparison below helps place Boxes among its neighbors in the Linux virtualization ecosystem.

ToolInterfaceConfiguration depthBest suited for
GNOME BoxesMinimal GTK applicationLow, sensible defaultsDesktop trials and testing
virt-managerFull graphical managerHigh, most libvirt optionsDetailed VM administration
virshCommand lineComplete, XML levelAutomation and servers
Proxmox VEWeb interfaceHigh, cluster wideDedicated virtualization hosts
DistroboxCommand lineLow, container basedRunning other distributions’ tools
How Boxes relates to neighboring tools

Because Boxes stores its guests in the user session connection, virt-manager does not show them by default. Adding a qemu:///session connection in virt-manager makes the same machines visible, which is a common way to adjust advanced settings that Boxes does not expose.

Limitations and common mistakes

The simplicity of GNOME Boxes comes with deliberate limitations. The session connection uses user-mode networking, so guests can reach the internet but are not directly reachable from the local network without extra configuration. Bridged networking, custom CPU topologies, PCI passthrough and fine-grained storage options all require virt-manager, virsh or manual XML editing.

  • Missing hardware virtualization: if VT-x or AMD-V is disabled in firmware, guests fall back to slow emulation or fail to start.
  • Flatpak storage location: the Flathub build keeps images under the application data directory, which surprises users who back up only the classic path.
  • Overcommitting memory: assigning most of the host RAM to a guest causes heavy swapping on the host.
  • Expecting server features: Boxes is not designed for headless guests, autostart policies or multi-host management.

The idea in brief

GNOME Boxes lets a Linux user run another computer inside a window. That second computer is virtual: it has its own operating system, its own files and its own apps, but it borrows the processor, memory and disk of the real machine.

The appeal is that Boxes asks only a few questions. Choose a system, wait for it to install, and start using it. The heavy lifting is done by proven Linux components underneath, so Boxes works like a simple remote control for a powerful engine. When more control is needed, other tools can drive the same engine.

A practical scenario

A web developer working on a Fedora laptop with 16 GB of RAM needs to verify that an internal application installs correctly on the latest Ubuntu LTS release. Instead of reinstalling the laptop or borrowing another machine, the developer opens GNOME Boxes, selects Ubuntu from the catalog and accepts the express installation with the suggested 4 GB of memory and a 40 GB qcow2 disk.

About fifteen minutes later the guest is ready. The developer copies the installation package through a shared folder, runs the installer, discovers a missing dependency and fixes the package script. Before each new test run, the developer reverts to a clean snapshot taken right after installation, which takes seconds. The result is a repeatable test environment on the same laptop, without root access to libvirt and without touching the host operating system.