[Proxmox] qcow2 image - how to increase disk size of vm?

Hello,
recently I installed proxmox vm based on a bookworm image of dietpi (I installed the vm using .sh script provided on the site). Unfortunatelly disk size after installation is 8GB. Is it possible to increase vm disk size to 30GB?

Yes, this can be done in the VM settings.
A simple Google search will help you: proxmox increase vm disk size - Google Suche

When I try to resize disk according to the article - the proxmox host says it succeeded but when I try to enlarg vm disk it says:

root@DietPi:~# resize2fs /dev/sda1
resize2fs 1.47.0 (5-Feb-2023)
The filesystem is already 2096896 (4k) blocks long.  Nothing to do!
root@DietPi:~# df -h
Filesystem               Size  Used Avail Use% Mounted on
udev                      10M     0   10M   0% /dev
/dev/sda1                7.9G  1.9G  5.7G  26% /
tmpfs                    984M     0  984M   0% /dev/shm
tmpfs                    394M  5.5M  389M   2% /run
tmpfs                    5.0M     0  5.0M   0% /run/lock
tmpfs                    983M     0  983M   0% /tmp
tmpfs                     50M   20K   50M   1% /var/log

You need to resize the drive in dietpi’s drive manager to use the extra space you gave to the vm:

sudo dietpi-drive_manager

Select the drive you are using then hit enter. Then go down to where it says Resize and hit enter. It’s probally safe to do a reboot and then you should be gravy.

1 Like

Thanks, dietpi-drive_manager does the job!