LinuxCommandLibrary

qm-disk

Manage Proxmox VM disk images

TLDR

Add n gigabytes to a virtual disk
$ qm disk resize 100 scsi0 +10G
copy
Move a virtual disk
$ qm disk move 100 destination index
copy
Move and delete previous copy
$ qm disk move --delete 100 destination index
copy
Import a disk image with specific format
$ qm disk import 100 path/to/disk.vmdk storage_name --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)
move vmid destination index
Move disk to different storage
import vmid source storage
Import external disk image
rescan [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.

SEE ALSO

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard