• 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 wait Command Examples in Linux

by Deepika

The qm wait command is a command-line tool provided by the QEMU/KVM Virtual Machine Manager that allows users to wait for a virtual machine to stop running. When executed, the qm wait command will pause the command-line interface and wait until the specified virtual machine has completely stopped.

To use qm wait, users need to specify the ID number of the virtual machine they want to wait for.

qm wait Command Examples

1. Wait until the virtual machine is stopped:

# qm wait {{vm_id}}

2. Wait until the virtual machine is stopped with a 10 second timeout:

# qm wait --timeout {{10}} {{vm_id}}

3. Send a shutdown request, then wait until the virtual machine is stopped with a 10 second timeout:

# qm shutdown {{vm_id}} && qm wait --timeout {{10}} {{vm_id}}

Summary

The qm wait command is useful when users want to automate virtual machine management tasks, such as starting or stopping a virtual machine, and need to wait for a virtual machine to complete its operation before continuing with the next step.

It’s important to note that qm wait will not stop a virtual machine if it is running. It simply waits for the virtual machine to complete its shutdown process and stop running. If a virtual machine is not responding or is stuck in a running state, users can use other commands, such as qm stop, to force the virtual machine to stop.

In addition to qm wait, the QEMU/KVM Virtual Machine Manager provides a variety of other commands and features for managing virtual machines, including creating, deleting, and migrating virtual machines, taking snapshots, and managing virtual machine storage and networking. More information about qm wait 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. sinfo: command not found
  2. “az vm” Command Examples (Manage virtual machines in Azure)
  3. raw: command not found
  4. ss: command not found
  5. calibre-server: A server application that can be used to distribute e-books over a network
  6. CentOS / RHEL 6 : How to boot into rescue mode
  7. RHEL 7 – RHCSA Notes – System documentation including man, info, and files in /usr/share/doc
  8. “git shortlog” Command Examples
  9. mkfs.vfat: command not found
  10. “docker compose” Command Examples

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