LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

qm-disk

Manage Proxmox VM disk images

TLDR

Add 10 gigabytes to a virtual disk
$ qm disk resize [100] scsi0 +10G
copy
Move a virtual disk to different storage
$ qm disk move [100] scsi0 [local-lvm]
copy
Move and delete the original copy
$ qm disk move [100] scsi0 [local-lvm] --delete
copy
Import a disk image with specific format
$ qm disk import [100] [/path/to/disk.vmdk] [local-lvm] --format qcow2
copy
Rescan all storages and update disk sizes
$ qm disk rescan
copy
Perform a dry-run rescan
$ qm disk rescan --dryrun
copy
Rescan for a specific VM
$ qm disk rescan --vmid [100]
copy

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.

SEE ALSO

qm(1), qm-create(1), pvesm(1)

Copied to clipboard
Kai