Proxmox

Proxmox Cheat-sheet

Increase disk size in the GUI or with the following command

Increase disk size in the GUI or with the following command

1
qm resize 100 virtio0 +5G

Before decreasing disk sizes in Proxmox, you should take a backup!

  1. Convert qcow2 to raw
1
qemu-img convert vm-100.qcow2 vm-100.raw
  1. Shrink the disk
1
qemu-img resize -f raw vm-100.raw 10G
  1. Convert back to qcow2#
1
qemu-img convert -p -O qcow2 vm-100.raw vm-100.qcow2