2022-10-10 02:31:28 +01:00
|
|
|
# qm wait
|
|
|
|
|
|
|
|
> Wait until the virtual machine is stopped.
|
|
|
|
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
|
|
|
|
|
|
|
|
- Wait until the virtual machine is stopped:
|
|
|
|
|
2025-07-25 19:00:05 +03:00
|
|
|
`qm {{[w|wait]}} {{vm_id}}`
|
2022-10-10 02:31:28 +01:00
|
|
|
|
|
|
|
- Wait until the virtual machine is stopped with a 10 second timeout:
|
|
|
|
|
2025-07-25 19:00:05 +03:00
|
|
|
`qm {{[w|wait]}} --timeout {{10}} {{vm_id}}`
|
2022-10-10 02:31:28 +01:00
|
|
|
|
|
|
|
- Send a shutdown request, then wait until the virtual machine is stopped with a 10 second timeout:
|
|
|
|
|
2025-07-25 19:00:05 +03:00
|
|
|
`qm {{[shu|shutdown]}} {{vm_id}} && qm {{[w|wait]}} --timeout {{10}} {{vm_id}}`
|