• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

qm shutdown Command Examples

by Deepika

The qm shutdown command is a command-line tool provided by the QEMU/KVM Virtual Machine Manager that allows users to shut down a virtual machine that is currently running. This command sends an ACPI shutdown signal to the virtual machine, which triggers an orderly shutdown of the guest operating system running inside the VM.

To use qm shutdown, users need to specify the ID number of the virtual machine they want to shut down.

qm shutdown Command Examples

1. Shutdown a virtual machine:

# qm shutdown {{VM_ID}}

2. Shutdown a virtual machine after wait for at most 10 seconds:

# qm shutdown --timeout {{10}} {{VM_ID}}

3. Shutdown a virtual machine and do not deactivate storage volumes:

# qm shutdown --keepActive {{true}} {{VM_ID}}

4. Shutdown a virtual machine and skip lock (only root can use this option):

# qm shutdown --skiplock {{true}} {{VM_ID}}

5. Stop and shutdown a virtual machine:

# qm shutdown --forceStop {{true}} {{VM_ID}}

Summary

Once the qm shutdown command is executed, the virtual machine will begin the shutdown process. This process can take some time, depending on the complexity of the guest operating system and the applications running inside the virtual machine. During the shutdown process, the virtual machine will remain running but will be inaccessible to users.

Once the shutdown process is complete, the virtual machine will be powered off and all resources allocated to it will be released. Users can then use other commands in the QEMU/KVM Virtual Machine Manager to start or manage the virtual machine as needed.

In addition to qm shutdown, the QEMU/KVM Virtual Machine Manager provides a variety of other commands and features for managing virtual machines, including creating, cloning, modifying, and backing up VMs. More information about qm shutdown and other features of the QEMU/KVM Virtual Machine Manager can be found in the project’s documentation at https://pve.proxmox.com/pve-docs/qm.1.html.

Filed Under: Linux

Some more articles you might also be interested in …

  1. ansible-playbook: command not found
  2. lsof : Most commonly used examples
  3. TIME_WAIT queue troubles
  4. sesearch: command not found
  5. DHCP configuration file /etc/dhcp/dhcpd.conf explained
  6. How to activate and mount 2 Volume groups with same names in CentOS/RHEL
  7. linkchecker Command Examples
  8. dvc diff: Show changes in DVC tracked file and directories
  9. ab – Apache HTTP server benchmarking tool (Command Examples)
  10. How to run a cron job on specific days of the week

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright