Forrest logo
back to the qm tool

qm-shutdown:tldr:6aba0

qm-shutdown: Shutdown a virtual machine and skip lock (only root can use this option).
$ qm shutdown --skiplock ${true} ${VM_ID}
try on your machine

This command is used to shutdown a virtual machine (VM) using the IBM PowerVM qm (qemu-monitor) command-line tool.

Here is a breakdown of the command:

  • qm is the command used to interact with the PowerVM qemud process.
  • shutdown is the specific command to gracefully shut down a VM.
  • --skiplock is an option used to bypass locks that prevent shutting down a VM when certain actions, such as snapshots or migrations, are in progress.
  • ${true} is a parameter indicating that the VM should be forcibly shut down without waiting for a graceful shutdown.
  • ${VM_ID} is a parameter representing the unique identifier or name of the virtual machine that needs to be shut down.

Overall, this command is instructing the qm tool to shut down a virtual machine, optionally bypassing locks, and forcibly shutting it down if necessary. The specific VM is identified by its ID or name provided as the ${VM_ID} parameter.

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