QUICKEMU_CONF(5)
π QUICKEMU_CONF(5) β the quickemu <vm>.conf glow-up guide π
okay bestie, sit down, grab a boba π§ β this is the manual page for quickemu_conf, aka every option and parameter you can put in your quickemu <vm>.conf file. yes it's a 5. you're welcome.
πΈ NAME πΈ
quickemu_conf β all the options and parameters that live inside your quickemu <vm>.conf π
β¨ DESCRIPTION β¨
so quickemu creates and runs highly optimised desktop virtual machines for Linux, macOS and Windows π§ππͺ. she comes with sensible defaults out of the box, but likeβ¦ a LOT of configuration options can be overridden in the required config file. and that config file has to, at bare minimum, specify the path to the installation ISO and the QEMU disk for the installed VM. no ISO, no disk, no vibes. periodt.
π OPTIONS π
these are the options and their defaults for the <vm>.conf file, fr fr:
# Lowercase variables are used in the VM config file only
boot="efi"
cpu_cores=""
disk_img=""
disk_size=""
display=""
extra_args=""
fixed_iso=""
floppy=""
guest_os="linux"
img=""
iso=""
macaddr=""
macos_release=""
network=""
port_forwards=()
preallocation="off"
ram=""
secureboot="off"
tpm="off"
usb_devices=()
viewer="spicy"
ssh_port=""
spice_port=""
public_dir=""
monitor="socket"
monitor_telnet_port="4440"
monitor_telnet_host="localhost"
monitor_cmd=""
serial="socket"
serial_telnet_port="6660"
serial_telnet_host="localhost"
# options: ehci(USB2.0), xhci(USB3.0)
usb_controller="ehci"
# options: ps2, usb, virtio
keyboard="usb"
keyboard_layout="en-us"
# options: ps2, usb, tablet, virtio
mouse="tablet"
π EXAMPLES π
a lil Linux moment, look at her go:
guest_os="linux"
disk_img="debian-bullseye/disk.qcow2"
iso="debian-bullseye/firmware-11.0.0-amd64-DVD-1.iso"
and the default macOS configuration? it's giving:
guest_os="macos"
img="macos-catalina/RecoveryImage.img"
disk_img="macos-catalina/disk.qcow2"
macos_release="catalina"
guest_os="macos"tells Quickemu to optimise for macOS πmacos_release="catalina"tells Quickemu to optimise for a particular macOS release.- for example, VirtIO Network and Memory Ballooning are available in Big Sur and newer, but not previous releases.
- and VirtIO Block Media (disks) are supported/stable in Catalina and newer.
the default Windows 11 configuration, iconic as always:
guest_os="windows"
disk_img="windows-11/disk.qcow2"
iso="windows-11/Win11_EnglishInternational_x64.iso"
fixed_iso="windows-11/virtio-win.iso"
tpm="on"
secureboot="on"
guest_os="windows"tells quickemu to optimise for Windows πͺfixed_iso=specifies the ISO image that provides the VirtIO drivers.tpm="on"tells quickemu to create a software emulated TPM device usingswtpm.
β‘ BIOS and EFI β‘
since Quickemu 2.1.0, efi is the default boot option. so if you wanna override that behaviour, add this line to your VM configuration to enable legacy BIOS instead:
boot="legacy"β Enable Legacy BIOS boot
π§ Tuning CPU cores, RAM & disks π§
by default, Quickemu calculates the number of CPU cores and RAM to allocate to a VM based on the specs of your host computer. but bestie, you can override that default behaviour and tune the VM configuration exactly to your liking.
just add additional lines to your virtual machine configuration:
cpu_cores="4"β Specify the number of CPU cores allocated to the VMram="4G"β Specify the amount of RAM to allocate to the VMdisk_size="16G"β Specify the size of the virtual disk allocated to the VM
πΎ Disk preallocation πΎ
Preallocation mode β allowed values are off (default), metadata, falloc, full. an image with preallocated metadata is initially larger, but it can improve performance when the image needs to grow. growth spurt but make it storage β¨
specify what disk preallocation should be used, if any, when creating the system disk image, by adding a line like this to your VM configuration:
preallocation="metadata"
π CD-ROM disks π
if you wanna expose an ISO image from the host to the guest, add this line to the VM configuration:
fixed_iso="/path/to/image.iso"
π Floppy disks π
if you're like Alan Pope you'll probably want to mount a floppy disk image in the guest. to do so, add this line to the VM configuration:
floppy="/path/to/floppy.img"
π«Ά File Sharing π«Ά
heads up: ALL File Sharing options will only expose ~/Public (or localised variations) for the current user to the guest VMs. that's it. that's the whole share. π
π§ππͺ Samba
if smbd is available on the host, Quickemu will automatically enable the built-in QEMU support for exposing a Samba share from the host to the guest. automatic. slay.
you can install the minimal Samba components on Ubuntu using:
sudo apt install --no-install-recommends samba
if everything is set up correctly, the smbd address will be printed when the virtual machine is started. for example:
- smbd: On guest: smb://10.0.2.4/qemu
if you're using a Windows guest, right-click on "This PC", click "Add a network location", and paste this address β but remove smb: and replace the forward slashes with backslashes (in this example that gives you \\10.0.2.4\qemu).
π SPICE WebDAV π§πͺ
- TBD
π¦ VirtIO-9P π§π
- TBD
πΈοΈ Networking πΈοΈ
π Port forwarding
add an additional line to your virtual machine configuration. for example:
port_forwards=("8123:8123" "8888:80")
in the example above:
- Port
8123on the host is forwarded to port8123on the guest. - Port
8888on the host is forwarded to port80on the guest.
π« Disable networking
to completely disable all network interfaces in a guest VM, add this additional line to your virtual machine configuration:
network="none"
π Restricted networking
you can isolate the guest from the host (and the broader network) using the restrict option, which will restrict networking to just the guest and any virtual devices.
this can be used to prevent software running inside the guest from phoning home while still providing a network inside the guest. add this additional line to your virtual machine configuration:
network="restrict"
π Bridged networking
connect your virtual machine to a preconfigured network bridge. add an additional line to your virtual machine configuration:
network="br0"
if you want a persistent MAC address for your bridged network interface in the guest VM, you can add macaddr to the virtual machine configuration. QEMU requires that the MAC address is in the range: 52:54:00:AB:00:00 - 52:54:00:AB:FF:FF
so you can generate your own MAC addresses with:
macaddr="52:54:00:AB:51:AE"
π USB redirection π
Quickemu supports USB redirection via SPICE pass-through and host pass-through. Quickemu supports USB redirection via SPICE pass-through and host pass-through. (yes she said it twice, she's just that serious about it π)
NOTE! When a USB device is redirected from the host, it will not be usable by the host operating system until the guest redirection is stopped. Therefore, do not redirect the input devices, such as the keyboard and mouse, as it will be difficult (or impossible) to revert the situation. bestie I am BEGGING you, do not redirect your keyboard. π
πΆοΈ SPICE redirection (recommended)
using SPICE for USB pass-through is easiest as it doesn't require any elevated permission. no sudo, no drama. π
both spicy from spice-gtk (Input -> Select USB Devices for redirection) and remote-viewer from virt-viewer (File -> USB device selection) support this feature.
- Start Quickemu with
--display spiceand then - Select Input -> Select USB Device for redirection from the menu to choose which device(s) you want to attach to the guest.
- **spicy (default)
- **Select Input -> Select USB Device for redirection from the menu to choose which device(s) you want to attach to the guest.
- **remote-viewer
- **Select File -> USB device selection from the menu to choose which device(s) you want to attach to the guest.
to ensure that this functionality works as expected, make sure that you have installed the necessary SPICE Guest Tools on the virtual machine.
βοΈ Enabling SPICE redirection on NixOS
on NixOS, if you encounter this error:
Error setting facl: Operation not permitted
try setting the following option:
virtualisation.spiceUSBRedirection.enable = true;
β οΈ Host redirection (NOT Recommended)
USB host redirection is not recommended, it is provided purely for backwards compatibility to older versions of Quickemu. using SPICE is preferred, see above. π
add an additional line to your virtual machine configuration. for example:
usb_devices=("046d:082d" "046d:085e")
in the example above:
- The USB device with vendor_id
046dand product_id082dwill be exposed to the guest. - The USB device with vendor_id
046dand product_id085ewill be exposed to the guest.
if the USB devices are not writable, quickemu will display the appropriate commands to modify the USB device(s) access permissions, like this:
- USB: Host pass-through requested:
- Sennheiser Communications EPOS GTW 270 on bus 001 device 005 needs permission changes:
sudo chown -v root:user /dev/bus/usb/001/005
ERROR! USB permission changes are required π
π TPM π
since Quickemu 2.2.0 a software emulated TPM device can be added to guest virtual machines. just add tpm="on" to your VM configuration. quickget will automatically add this line to Windows 11 virtual machines. so thoughtful of her π
π AUTHORS π
Written by Martin Wimpress.
π BUGS π
Submit bug reports online at: https://github.com/quickemu-project/quickemu/issues
π SEE ALSO π
Full sources at: https://github.com/quickemu-project/quickemu
quickget(1), quickemu(1), quickgui(1)
π AUTHORS (again, because she said it twice) π
Martin Wimpress.
and that's the whole page bestie!! π this lil doc is quickemu_conf, dated February 2, 2026, from the QUICKEMU_CONF(5) manual β go forth and configure your VMs, you absolute icon πβ¨π¦
π¦ where this page comes from
- fedora 43: quickemu 4.9.9-1.fc43 Β· MIT
- fedora 44: quickemu 4.9.9-1.fc44 Β· MIT
- nixos 26.05: quickemu 4.9.9
- nixpkgs unstable: quickemu 4.9.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms