Hello,
I am running a Proxmox VE server with pre-made Templates at minimal disk sizes. I have scripts that create VMs by cloning a template and extending its disk. The problem is that the extended space is not allocated to any mount point. For example, the following template has initially a disk of 12GB and the created VM has 70GB:
I tried using Cloud-Init by adding the following snippet to my configuration but it doesn't seem to be doing anything:
Am I missing something? Is there a way to make the "/" mount point automatically grow to use the full available storage?
Thank you.
I am running a Proxmox VE server with pre-made Templates at minimal disk sizes. I have scripts that create VMs by cloning a template and extending its disk. The problem is that the extended space is not allocated to any mount point. For example, the following template has initially a disk of 12GB and the created VM has 70GB:
Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 70G 0 disk
├─sda1 8:1 0 9.8G 0 part /
├─sda2 8:2 0 1.2G 0 part [SWAP]
└─sda3 8:3 0 1G 0 part /boot
sr0 11:0 1 4M 0 rom
I tried using Cloud-Init by adding the following snippet to my configuration but it doesn't seem to be doing anything:
Code:
growpart:
mode: auto
devices: ['/']
ignore_growroot_disabled: false
Am I missing something? Is there a way to make the "/" mount point automatically grow to use the full available storage?
Thank you.