Shrink HDD of cloudinit template

ca_maer

Well-Known Member
Dec 5, 2017
181
14
58
44
Hello,

I'm trying out cloudinit to deploy our VMs and so far everything is working fine. I've followed the tutorial in the doc to create the template which worked fine.
The template had a 3GB HDD (scsi0). I wanted to extend the disk of another VM and by accident I extended the disk of the template to 50GB.

I'm trying to shrink it back to 3GB but I can't seem to be able to. Here's what I've tried:

1. Boot in live CD and shrink using gparted
2. set zfs volzise to 3GB
3. Change the .conf file to reflect the new size

No matter what, it seems something is changing it back to 50GB every time. Could it be cloudinit ? I've tried to 'regenerate image' but to no avail.

How would I go about this ?

Thanks
 
Hi,
do you use any snapshots?
maybe a rollback set it back to 50G.
 

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!