LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

qm-stop

Force stop a Proxmox virtual machine

TLDR

Stop a VM immediately
$ qm stop [vm_id]
copy
Stop with a timeout (wait up to N seconds)
$ qm stop [vm_id] --timeout [30]
copy
Skip lock check (root only)
$ qm stop [vm_id] --skiplock true
copy
Keep storage volumes active after stopping
$ qm stop [vm_id] --keepActive true
copy
Override a pending shutdown and stop immediately
$ qm stop [vm_id] --overrule-shutdown true
copy

SYNOPSIS

qm stop [OPTIONS] vmid

DESCRIPTION

qm stop immediately stops a running QEMU/KVM virtual machine in Proxmox VE. This performs a hard shutdown, equivalent to pulling the power cord, which may result in data loss if the guest OS is not properly shut down first.

PARAMETERS

vmid

The numeric ID of the virtual machine.
--timeout seconds
Wait for the VM to stop for the specified number of seconds.
--skiplock boolean
Skip the lock check (only root can use this option).
--keepActive boolean
Do not deactivate storage volumes after stopping.
--overrule-shutdown boolean
Override a still-running shutdown task to force an immediate stop.

CAVEATS

This is a forceful stop that does not cleanly shut down the guest operating system. Use qm shutdown for a graceful shutdown via ACPI. Data loss may occur if unsaved data exists in the guest.

SEE ALSO

qm(1), qm-start(1), qm-shutdown(1)

Copied to clipboard
Kai