Forrest logo
back to the qm tool

qm-rescan:tldr:00247

qm-rescan: Rescan all storages and update disk sizes and unused disk images of a specific virtual machine.
$ qm rescan ${vm_id}
try on your machine

The command "qm rescan ${vm_id}" is used to initiate a rescan of a specific Virtual Machine (VM) in the Proxmox VE virtualization platform.

Here's a breakdown of the command:

  • "qm" is the command-line tool used to manage VMs in Proxmox VE.
  • "rescan" is the subcommand that instructs Proxmox VE to scan the VM's storage for any changes or new additions.
  • "${vm_id}" is a placeholder that should be replaced with the actual ID of the VM you want to rescan. The VM ID uniquely identifies a VM within Proxmox VE.

When you run this command, Proxmox VE will start scanning the storage devices associated with the specified VM to detect any changes. This is useful when you've made changes to the storage configuration of a VM (such as adding new disks or removing existing ones) and want Proxmox VE to update its internal information accordingly.

It's also worth noting that you need to have administrative privileges to execute this command.

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