LinuxCommandLibrary

qm-wait

Wait for a Proxmox VM to stop

TLDR

Wait until the virtual machine is stopped

$ qm wait 100
copy
Wait with timeout of 10 seconds
$ qm wait --timeout 10 100
copy
Shutdown then wait for VM to stop
$ qm shutdown 100 && qm wait --timeout 10 100
copy

SYNOPSIS

qm wait [options] vmid

DESCRIPTION

qm wait blocks until a virtual machine reaches stopped state. This is useful in scripts to ensure a VM has fully stopped before performing subsequent operations.
Combined with shutdown, it provides a way to gracefully stop VMs and wait for completion.

PARAMETERS

--timeout seconds

Maximum time to wait before returning

CAVEATS

Without timeout, the command may block indefinitely if the VM doesn't stop. Always use timeout in scripts for predictable behavior.

HISTORY

Part of Proxmox VE QEMU/KVM management tools for virtual machine administration.

SEE ALSO

qm(1), qm-shutdown(1), qm-stop(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community