Forrest logo
back to the qm tool

qm-stop:tldr:56ece

qm-stop: Stop a virtual machine and wait for at most 10 seconds.
$ qm stop --timeout ${10} ${VM_ID}
try on your machine

The command "qm stop --timeout ${10} ${VM_ID}" is used to stop a virtual machine (VM) in Proxmox Virtual Environment (PVE), a virtualization platform.

Here is a breakdown of the command:

  • "qm" is the Proxmox command-line tool used for managing virtual machines.
  • "stop" is the action to stop the VM.
  • "--timeout ${10}" is an optional flag that specifies a timeout duration in seconds. In this case, the value is set to ${10}, which represents a variable that should be replaced with a specific timeout value.
  • "${VM_ID}" is another variable that should be replaced with the ID of the virtual machine that you want to stop.

By running this command, you are instructing Proxmox to stop the virtual machine specified by its ID (${VM_ID}). The timeout value determines how long Proxmox will wait for the VM to gracefully shut down before attempting a forceful shutdown.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the qm tool