LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

virt-qemu-run

Run QEMU VMs without libvirtd

TLDR

Run QEMU virtual machine
$ virt-qemu-run [path/to/guest.xml]
copy
Run with state directory
$ virt-qemu-run -r [path/to/directory] [path/to/guest.xml]
copy
Run with verbose output
$ virt-qemu-run -v [path/to/guest.xml]
copy
Display help
$ virt-qemu-run -h
copy

SYNOPSIS

virt-qemu-run [OPTIONS] GUEST.XML

DESCRIPTION

virt-qemu-run is an experimental tool to run a QEMU guest virtual machine independent of the libvirtd daemon. It provides a way to run VMs using libvirt domain XML definitions without requiring the full libvirt infrastructure. The guest runs in the foreground and the command exits when the guest shuts down.This is useful for testing, embedded use cases, or running isolated VMs without daemon overhead. Exit status is 0 on successful shutdown and non-zero on failure.

PARAMETERS

-r DIR, --root DIR

Store VM state files in the specified directory. Must be removed manually after shutdown. When omitted, a temporary directory is created and cleaned up automatically when the VM exits.
-s SECRET-XML-FILE,SECRET-VALUE-FILE, --secret SECRET-XML-FILE,SECRET-VALUE-FILE
Load a secret into the secret driver. The XML file defines the secret (UUID must match one referenced in the domain XML); the value file contains the secret data. May be repeated.
-v, --verbose
Display verbose startup information.
-h, --help
Display help information.

INSTALL

sudo apt install libvirt-daemon-driver-qemu
copy
sudo dnf install libvirt-daemon-driver-qemu
copy
sudo apk add libvirt-client
copy
sudo zypper install libvirt-daemon-driver-qemu
copy

CAVEATS

Experimental tool; behavior may change between releases. Guest XML must be valid libvirt format. Some features dependent on libvirtd (such as the full device management API) may not work. Not recommended for production use.

SEE ALSO

virt-manager(1), virsh(1), qemu(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid