← 返回命令列表

Linux command

qm-stop 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Stop a VM

qm stop [vm_id]

Stop with a timeout

qm stop [vm_id] --timeout [30]

Skip lock check

qm stop [vm_id] --skiplock true

Keep storage volumes active

qm stop [vm_id] --keepActive true

Override a pending shutdown

qm stop [vm_id] --overrule-shutdown true

说明

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.

参数

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.

FAQ

What is the qm-stop command used for?

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.

How do I run a basic qm-stop example?

Run `qm stop [vm_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does vmid do in qm-stop?

The numeric ID of the virtual machine.