qemu_stop
Stops a QEMU virtual machine with graceful ACPI shutdown first and a forced kill fallback for unresponsive guests.
Instructions
Stop a VM. Tries graceful ACPI powerdown first; force=True kills it.
Guests without ACPI handling (most hobby kernels) will need force=True
or will be killed after the graceful_timeout_s grace period anyway.
graceful_timeout_s (default 10 s) bounds how long to wait for the guest
to shut down after ACPI powerdown before falling back to a kill; raise
it for a guest that legitimately needs longer (large RAM, a slow ACPI
handler). kill_timeout_s (default 3 s) bounds how long to wait for the
QEMU process to exit after quit/kill before it's force-killed. Both
must be positive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No | ||
| kill_timeout_s | No | ||
| graceful_timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |