Quickemu

On this page 8

Quickemu is an open-source command-line tool for Linux and macOS hosts that creates and runs desktop virtual machines on top of QEMU by translating a short configuration file into a carefully tuned QEMU command line. In Linux virtualization, it sits between raw QEMU invocations and full management stacks such as libvirt, giving users sensible hardware defaults, KVM acceleration and automatic image downloads without requiring them to memorize dozens of emulator options.

The project consists of two cooperating scripts: quickget, which downloads an operating system image and writes a matching configuration file, and quickemu, which reads that file and launches the guest. Its stated goal is to make running Windows, macOS and hundreds of Linux and BSD distributions as a virtual machine a one-line task, while still exposing the underlying QEMU behavior to users who want to adjust it.

How Quickemu builds a QEMU command line

Quickemu works as a declarative front end to QEMU: the user describes the guest in a plain-text .conf file, and the Bash script calculates the arguments that QEMU needs at launch. It inspects the host to choose CPU cores, memory size and acceleration, then starts qemu-system-x86_64 or qemu-system-aarch64 with matching device models.

On a Linux host the guest runs under KVM hardware acceleration whenever /dev/kvm is available, so instructions execute natively instead of being emulated. Quickemu selects paravirtualized Virtio devices for disk, network and graphics where the guest supports them, and falls back to emulated hardware such as SATA or e1000 for systems that lack Virtio drivers.

The typical workflow has three steps. The following table shows what each command does and what it produces.

StepCommandResult
Downloadquickget ubuntu 24.04ISO image and ubuntu-24.04.conf file
First bootquickemu --vm ubuntu-24.04.confDisk image created, installer starts
Daily useSame command after installationGuest boots from the qcow2 disk
Desktop launcherquickemu --vm ubuntu-24.04.conf --shortcutMenu entry for the virtual machine
The basic Quickemu workflow

Key configuration options in a Quickemu file

A Quickemu configuration file is a short list of shell variables, usually fewer than ten lines, that override the automatically detected defaults. Only guest_os and either iso or disk_img are essential; everything else is optional tuning.

VariableExample valueWhat it controls
guest_oslinux, windows, macosDevice models, firmware and drivers
disk_imgubuntu-24.04/disk.qcow2Path of the virtual disk
disk_size64GMaximum size of a new qcow2 disk
ram8GGuest memory instead of the host-based default
cpu_cores4Virtual CPU count
tpmonEmulated TPM 2.0 through swtpm
securebootonOVMF firmware with Secure Boot keys
port_forwards(“8080:80”)Host ports forwarded into the guest
Common configuration variables and their effect

Because the file is sourced as shell code, it should be treated with the same caution as a script: a configuration downloaded from an untrusted place can execute arbitrary commands. Disks use the qcow2 format with thin provisioning, so a 64 GB disk occupies only the space the guest has actually written.

Guest operating systems and display options

Quickemu supports three broad guest families, each of which needs different firmware and devices. For Linux and BSD guests it uses UEFI or legacy BIOS with Virtio devices; for Windows 10 and 11 it adds UEFI firmware, an emulated TPM and Secure Boot so that the Windows 11 hardware checks pass; for macOS it boots through the OpenCore bootloader with an emulated Intel-compatible CPU model.

Guest familyFirmware and devicesPractical note
Linux and BSDUEFI or BIOS, Virtio disk and networkBest performance and simplest setup
Windows 10 and 11OVMF, swtpm TPM 2.0, Secure BootVirtio drivers ISO added automatically
macOSOpenCore, emulated Intel CPU modelLicensing restricts use to Apple hardware
Guest families and their special requirements

The display back end is chosen with the --display option. SDL and GTK windows are the defaults for local use, while SPICE allows a separate viewer, clipboard sharing, USB redirection and folder sharing; none runs a headless guest reachable over SSH through a forwarded port.

How Quickemu compares with other Linux virtualization tools

Quickemu occupies the lightweight, per-user end of the Linux virtualization spectrum. It needs no daemon and no root privileges beyond access to /dev/kvm, which distinguishes it from libvirt-based tools that keep a system service and an XML domain definition.

ToolManagement modelBest suited for
QuickemuBash wrapper, one config file per guestFast desktop testing of many operating systems
Raw QEMUManual command-line argumentsFull control and unusual hardware setups
virt-managerGraphical client for libvirtPersistent desktop VMs with a GUI
GNOME BoxesSimplified libvirt front endCasual users who prefer a graphical app
Proxmox VEServer platform with web interfaceClusters, servers and production workloads
Quickemu compared with neighboring tools

The main trade-off is convenience versus lifecycle management. Quickemu does not provide autostart services, live migration, centralized storage pools or remote management; libvirt, virsh and Proxmox VE handle those tasks. A graphical front end called Quickgui exists for users who prefer menus to the terminal.

Practical features for daily use

Several built-in features cover the routine tasks of desktop virtualization without extra tooling:

  • Snapshots through --snapshot create, apply, info and delete, implemented with qemu-img on the qcow2 disk.
  • SSH access through an automatically forwarded host port, printed at startup.
  • File sharing through SPICE WebDAV, a 9p export or Samba when the smbd daemon is installed on the host.
  • USB passthrough of selected devices, listed by vendor and product ID in the usb_devices variable.
  • Status files in the VM directory that record the process ID and ports of a running guest.

Snapshots should be created only while the guest is shut down, because internal qcow2 snapshots of a running disk are not consistent unless the memory state is also captured.

Limitations and common mistakes

Most problems with Quickemu come from host prerequisites or unrealistic expectations rather than from the script itself. The following table lists frequent symptoms and their remedies.

SymptomLikely causeFix
Guest is extremely slowKVM unavailable or not permittedEnable VT-x or AMD-V, join the kvm group
Windows 11 refuses to installswtpm package missingInstall swtpm and keep tpm on
quickget download failsVendor changed its download pageUpdate Quickemu to a newer release
Poor 3D performanceVirtual GPU instead of real hardwareUse GPU passthrough with VFIO or accept limits
Host runs out of memorySeveral guests with default RAMSet ram explicitly in each file
Frequent problems and their fixes

Quickemu is not a security sandbox for hostile code in any special sense; isolation comes entirely from QEMU and KVM, and shared folders or forwarded ports weaken it. It is also x86_64 and AArch64 oriented, so cross-architecture guests run through slow full emulation.

In plain words

Quickemu lets a Linux user run another operating system inside a window on the same computer with almost no setup. One command fetches the installer for Windows, macOS or a Linux distribution, and a second command starts a ready-to-use virtual computer.

Think of it as a recipe card for a powerful but complicated kitchen appliance. QEMU can do almost anything, but it expects precise instructions; Quickemu writes those instructions for you, so you get a good result without learning every button.

A real-world example

A web developer working on a Fedora laptop needs to check how a new site behaves in Microsoft Edge on Windows 11 and in Safari on macOS. Instead of buying extra test machines, the developer runs quickget windows 11 and quickget macos sonoma, which download the installers and write two configuration files.

The developer edits the Windows file to set ram="6G" and cpu_cores="4", leaving TPM and Secure Boot enabled so that Windows 11 installs without workarounds. After installation, a clean snapshot named baseline is created while the guest is powered off.

Each test session starts with --snapshot apply baseline, so every browser test begins from an identical, reproducible system state. The result is a complete cross-platform test lab on one laptop, set up in about an hour and reset in seconds.