Reduce RAW size in VM disk


Active Member
Jan 24, 2018
Hi all,

Need some guidance on how to reduce the size of the VM disk as I have mistakenly increased by more than 1+ TB.

Current HDD is only 4TB and I'm afraid it will crash.

It is currently running Windows Server 2012 R2 with 2.6TB allocated (this was done before the VM resize).




  • resize pix 2.JPG
    resize pix 2.JPG
    37.1 KB · Views: 172
  • resize pix 1.JPG
    resize pix 1.JPG
    16.8 KB · Views: 167

See man qemu-img resize.
Be sure that the fs in the raw file is not larger than the raw file.
Because if you make the raw file smaller than the fs inside you will lose your data.
Hi all,

I did work with qemu-img resize to shrink the raw VM disk, it says that the operation was successful, but when I do qemu-img info, I get that the HDD is still 300 GB (btw, I'm trying to reduce from 300 to 150 GB).


Thanks a lot to all

P.S. I need to do this, so the LVM-thin will have space, as I'm moving physical as well as Virtual servers to Proxmox.
Hi all

after googling and reading a bit more, I found out thanks to this other post that my VMs HDD are LVs, so I did that, after resizing it with qemu-img and now all is working great.

Thanks a lot


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!