Forrest logo
back to the qm tool

qm-shutdown:tldr:c7276

qm-shutdown: Stop and shutdown a virtual machine.
$ qm shutdown --forceStop ${true} ${VM_ID}
try on your machine

This command is likely used in a computer environment where "qm" is a tool or a script that manages virtual machines (VMs). It is being used to forcefully stop a specific VM, and it probably requires a few components.

Explanation of the command:

  • "qm shutdown" is the command that initiates a controlled shut down of a VM. It sends a signal to the VM, requesting it to shut down gracefully.

  • "--forceStop" is an option or parameter that indicates the command should forcefully stop the VM if it doesn't respond to the shutdown request. It skips the usual shutdown process and abruptly stops the VM.

  • "${true}" is a placeholder representing a boolean value. In this context, it likely means that the option "--forceStop" is set to "true," indicating that the forced stop behavior should be enabled.

  • "${VM_ID}" is another placeholder that represents the ID or identification number of the specific VM to be shut down. It will likely be replaced with the actual ID of the targeted VM.

So, when this command is executed, it will forcefully stop the specified VM (identified by ${VM_ID}), forcibly ending the virtual machine's execution without attempting a graceful 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