2025-03-14 21:59:59 -06:00
|
|
|
# qm shutdown
|
|
|
|
|
|
|
|
|
|
> Shutdown a virtual machine on QEMU/KVM Virtual Machine Manager.
|
|
|
|
|
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
|
|
|
|
|
|
|
|
|
|
- Shutdown a virtual machine:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[shu|shutdown]}} {{VM_ID}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Shutdown a virtual machine after wait for at most 10 seconds:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[shu|shutdown]}} --timeout {{10}} {{VM_ID}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Shutdown a virtual machine and do not deactivate storage volumes:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[shu|shutdown]}} --keepActive {{true}} {{VM_ID}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Shutdown a virtual machine and skip lock (only root can use this option):
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[shu|shutdown]}} --skiplock {{true}} {{VM_ID}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Stop and shutdown a virtual machine:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[shu|shutdown]}} --forceStop {{true}} {{VM_ID}}`
|