qm-disk
Manage Proxmox VM disk images
TLDR
Add 10 gigabytes to a virtual disk
$ qm disk resize [100] scsi0 +10G
Move a virtual disk to different storage$ qm disk move [100] scsi0 [local-lvm]
Move and delete the original copy$ qm disk move [100] scsi0 [local-lvm] --delete
Import a disk image with specific format$ qm disk import [100] [/path/to/disk.vmdk] [local-lvm] --format qcow2
Rescan all storages and update disk sizes$ qm disk rescan
Perform a dry-run rescan$ qm disk rescan --dryrun
Rescan for a specific VM$ qm disk rescan --vmid [100]
SYNOPSIS
qm disk command [options]
DESCRIPTION
qm disk manages disk images for Proxmox VE virtual machines. It handles resizing, moving between storage backends, importing external disk images, and rescanning storage for changes.This is essential for storage management and migration tasks.
PARAMETERS
resize vmid disk size
Resize a disk (use +nG to add space). Shrinking is not supported.move vmid disk storage
Move disk to different storage or different VM.import vmid source storage
Import external disk image as unused disk.rescan [options]
Rescan storages for disk changes.--format format
Target disk image format (qcow2, raw, vmdk).--delete
Delete source after move.--dryrun
Preview changes without applying.--vmid id
Target specific VM for rescan.--disk diskid_
Assign specific disk ID (e.g. scsi0, sata1) on import.
CAVEATS
Resize operations cannot shrink disks. Import and move operations may take time for large disks. Ensure sufficient space on destination storage.
HISTORY
Part of Proxmox VE QEMU/KVM management tools for virtual machine administration.
