qvm stop
Gracefully powers down a running VM.
Usage
qvm stop <name>
How It Works
- Sends
SIGTERMto the QEMU process, triggering an ACPI power button event in the guest OS for clean shutdown. - Waits up to 10 seconds for the guest to cleanly shut down and flush disks.
- If the guest does not exit within 10 seconds, automatically escalates to
SIGKILL. - Saves TPM state via
swtpm_ioctl --saveand terminates theswtpmdaemon. - Cleans up PID and socket files.
Example
qvm stop win11
# Output:
# → Stopping win11...
# ✓ Stopped win11