meta data for this page
This is an old revision of the document!
Shrink VM disc image
Shrinking is not supported by Proxmox
QEMU is not capable to resize ZFS raw data.
Workaround:
- Shrink disc in guest OS.
Move disk
to QCOW2 file onlocal
(dir) storage.- Set new disk size
qemu-img resize --shrink /var/lib/vz/images/703/vm-703-disk-0.qcow2 6G
- Edit machine config file and set new size:
scsi1: rbd:vm-703-disk-2,backup=0,cache=writeback,discard=on,size=6G