Shrink (resize) VM drive

Is it possible to shrink ( resize ) a VM drive? What's the correct procedure?
Have you tried searching this forum? Is there anything specific that does not work for you or is unclear?

EDIT: Shrink the filesystem inside the VM, which depends on the used operating system, and keep a large margin. Then shrink the virtual disk, which depends on the type of storage you use. Then resize the filesystem inside the VM again to fit the whole disk and repair the expected errors with secondary/backup GPT or MBR.
 
Last edited:
And always make sure you have a working backup before shrinking a disk.
 

About

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!