Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Spin Up a Linux VM Fast with Boxes

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Boxes (GNOME Boxes) is the quickest way to create a Linux virtual machine on a Fedora, Ubuntu, or other GNOME-based system. You pick a distro, Boxes downloads it and installs it automatically — no manual ISO mounting or partitioning. You’ll have a working VM in about 10–15 minutes, depending on your internet speed. First, make sure your CPU supports virtualization (Intel VT-x or AMD-V) and that it’s enabled in your BIOS/UEFI. Most modern PCs have it on by default.

What You'll Need

  • A computer running Linux with the GNOME desktop (or any distro where you can install GNOME Boxes).
  • At least 10 GB of free disk space per VM (more if you plan to install large apps).
  • At least 4 GB of RAM (8 GB recommended for smooth performance).
  • An internet connection — Boxes downloads the OS image for you.
  • Virtualization enabled in your BIOS/UEFI (check if ls /dev/kvm exists in a terminal; if it does, you're good).

Step-by-Step

  1. Install Boxes. On Fedora: sudo dnf install gnome-boxes. On Ubuntu/Debian: sudo apt install gnome-boxes. On Arch: sudo pacman -S gnome-boxes. You can also install it from your software center.
  2. Launch Boxes. Open the application from your app grid (search “Boxes”). The main window shows a “+” button and a list of any existing VMs.
  3. Start a new VM. Click the “+” button (top-left). A dialog appears asking for a source — either an ISO file or a download from the list.
  4. Choose a Linux distribution. In the “Download an OS” section, pick from the list (Ubuntu, Fedora, Debian, etc.). If your distro isn’t listed, you can select “ISO file” and browse to a downloaded .iso. For this guide, choose a popular one like Ubuntu — it’s the smoothest.
  5. Let Boxes download the image. Click “Create” and Boxes will download the OS image in the background. You’ll see a progress bar. This can take a few minutes depending on your connection.
  6. Wait for automatic installation. Boxes boots the installer and runs it unattended. You don’t need to click through language, keyboard, or user setup — Boxes handles it. You’ll see a black screen with the distro logo and progress messages.
  7. Log in to your new VM. Once installation finishes, the VM reboots and lands on the login screen. The default username is your host username (the one you’re logged into on your physical machine) and the password is blank or “box” — Boxes typically sets no password, so just press Enter if prompted, or use your host password if it asks. If you’re unsure, try leaving it blank.
  8. Use the VM. You’re in! The VM window behaves like a normal desktop. Click inside to capture the mouse; press Ctrl+Alt to release it back to your host. To shut down, use the VM’s own power menu (top-right in the guest).
  9. Adjust VM settings (optional). Before first boot, you can tweak RAM and CPU by clicking the gear icon in the VM’s tile (right-click the VM in the main window, then “Properties”). For a smooth experience, give at least 2 GB RAM and 2 CPU cores if your host can spare them.

Common Mistakes

  • Choosing “ISO file” but not having the ISO. If you pick that option without a file, Boxes will error. Always use the download list unless you already have an ISO.
  • Forgetting to enable virtualization. If Boxes says “Virtualization is not available,” you need to enable VT-x/AMD-V in BIOS. Restart, press F2/Del to enter BIOS, find “Intel Virtualization Technology” or “SVM Mode,” set it to Enabled, save and exit.
  • Running out of disk space. Boxes creates a dynamic disk that grows as you use it, but it starts at a fixed size (often 10 GB). If your host disk is full, the VM will fail to start. Check free space with df -h.
  • Clicking too fast during installation. The unattended install doesn’t need input, but if you click inside the window, you might interrupt it. Let it run without touching the mouse.

Tips

  • Use a lightweight distro for older hardware. If your host has less than 4 GB RAM, choose Linux Mint Xfce or Lubuntu instead of full Ubuntu — they’ll run faster.
  • Take snapshots. Before making big changes in the VM, right-click the VM and select “Properties” > “Snapshots” to save a restore point. This is a lifesaver if you break something.
  • Share files easily. Boxes supports drag-and-drop from your host into the VM (if you have spice-vdagent installed in the guest). To install it, run sudo apt install spice-vdagent (Ubuntu) or sudo dnf install spice-vdagent (Fedora) inside the VM.
  • Copy-paste works out of the box. Boxes integrates clipboard sharing, so you can copy text from your host and paste into the VM and vice versa.
  • Resize the window. The VM resolution auto-adjusts to the window size. If it doesn’t, install the spice guest tools as above.

Troubleshooting

If the VM won’t start:

  1. Check that virtualization is enabled: run ls /dev/kvm in a terminal. If it doesn’t exist, reboot into BIOS and enable it.
  2. Make sure you have enough free RAM. Close other apps or reduce the VM’s memory in Properties.
  3. Delete the VM and recreate it — sometimes a corrupted download causes issues. Right-click the VM, select “Delete” (this removes the disk, so back up anything important first).

If the installation hangs at a black screen:

  1. Wait a few minutes — some distros take a while to install silently.
  2. Press Ctrl+Alt+F2 to see the installer’s terminal log (if it’s a Debian-based distro).
  3. Force-shut down the VM (top-right power icon) and try again with a different distro.

If you can’t log in:

  1. Try your host username with a blank password.
  2. If that fails, try username “box” and password “box”.
  3. If still stuck, you can reset the password by booting into recovery mode (hold Shift during boot, select “Advanced options” > “Recovery mode” > “root” and type passwd username).

Frequently Asked Questions

Can I use Boxes on Windows or macOS?

No. GNOME Boxes is Linux-only. On Windows/macOS, use VirtualBox or VMware Workstation Player instead.

Does Boxes support Windows VMs?

Yes, but you need to supply your own Windows ISO and product key. Boxes won’t download Windows automatically.

How much RAM should I give my Linux VM?

At least 2 GB for a desktop Linux. For lightweight distros, 1 GB is enough. For heavy development, 4 GB or more if your host has spare.

Can I run Boxes headlessly (without a GUI)?

No, Boxes is a graphical application. For headless VMs, use virt-manager or the command-line virsh tool.

Will the VM have internet access?

Yes, by default Boxes uses NAT networking, so the VM can reach the internet through your host’s connection. No extra setup needed.

Can I move a Boxes VM to another computer?

Yes. The VM disk is stored in ~/.local/share/gnome-boxes/images/. Copy the .qcow2 file to the same location on the new machine, then start Boxes and it will appear.