2025-03-14 21:59:59 -06:00
|
|
|
# qm wait
|
|
|
|
|
|
|
|
|
|
> Wait until the virtual machine is stopped.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html#cli_qm_wait>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Wait until the virtual machine is stopped:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[w|wait]}} {{vm_id}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Wait until the virtual machine is stopped with a 10 second timeout:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[w|wait]}} --timeout {{10}} {{vm_id}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Send a shutdown request, then wait until the virtual machine is stopped with a 10 second timeout:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[shu|shutdown]}} {{vm_id}} && qm {{[w|wait]}} --timeout {{10}} {{vm_id}}`
|