Reducing size of KVM disk (qcow2)

MitchellK

Member
Feb 20, 2017
3
0
6
52
Hi all, I have a problem that I can't seem to find an easy solution to.

I have a VM with a 1000 Gb qcow allocated disk, its only using 93 Gb and I want to reduce the entire disk size to only 300 / 400 Gb.

I can't currently convert it to raw as I do not have enough diskspace on proxmox.

Is there a way to image the disk with dd and restore it to a new disk?

I am still on Proxmox 3.4 and about to move from 3 > 4 and then 4 > 5 but I need to fix this VM disk size issue first.

The VM OS is Ubuntu 18.04.02
 

Attachments

  • 2020-05-04_15-39_1.png
    2020-05-04_15-39_1.png
    16.9 KB · Views: 19
  • 2020-05-04_15-39.png
    2020-05-04_15-39.png
    25.6 KB · Views: 17