How can you move a Proxmox VM disk to another storage safely using GUI or CLI?
How can you move a Proxmox VM disk to another storage safely using GUI or CLI?. Practical guidance on Proxmox, Resource Management, and Performance Tuning.
Overview
Before starting, it is strongly recommended to back up the VM to avoid data loss in case of unexpected issues such as hardware failure or network interruption .
Method 1: Using the Proxmox Web Interface
1. Select the target VM and power it off. 2. Go to Hardware → Hard Disk → Disk Action → Move Storage. 3. Choose the target storage and disk format. File-level storage supports RAW, QCOW2, and VMDK formats. QCOW2 is generally recommended . 4. Decide whether to enable “Delete Source.” For safety, leave it unchecked until migration is verified. 5. Click “Move Disk” and wait for completion.
After migration, the original disk appears as “Unused Disk.” Once verified, it can be deleted .
Method 2: Using the Command Line
1. Identify available storage using:
pvesm status 2. Stop the VM:
qm stop VMID 3. Check disk configuration:
qm config VMID 4. Move the disk:
qm move_disk VMID source_disk target_storage 5. Restart the VM:
qm start VMID 6. Verify migration with:
qm config VMID
Both methods achieve the same result. The GUI is simpler for occasional operations, while CLI is ideal for automation or bulk migrations.
1. Does the VM need to be powered off?
Yes, stopping the VM ensures safe disk migration.
2. Can disks be moved between LVM and NFS storage?
Yes, Proxmox supports moving disks across various storage types.
3. Should I delete the source disk immediately?
It is safer to verify successful migration before deleting the original disk.
Need help with backup and recovery?
Use the form below to get in touch about backup strategy, recovery planning, and data protection projects.