qm-disk
Manage Proxmox VM disk images
TLDR
Add n gigabytes to a virtual disk
$ qm disk resize 100 scsi0 +10G
Move a virtual disk$ qm disk move 100 destination index
Move and delete previous copy$ qm disk move --delete 100 destination index
Import a disk image with specific format$ qm disk import 100 path/to/disk.vmdk storage_name --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)move vmid destination index
Move disk to different storageimport vmid source storage
Import external disk imagerescan [options]
Rescan storages for disk changes--format format
Disk format (qcow2, raw, vmdk)--delete
Delete source after move--dryrun
Preview changes without applying--vmid id
Target specific VM for rescan
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.

