Resizing Proxmox Ubuntu Instance
Updating the Disk Size of VM in Proxmox
Increase Disk Space on Proxmox

Select the VM to resize
Click on the Hardware tab
Click on the Hard Disk
Click on the Resize Disk button
Select how much (GB) you want to increase the disk space by.
Click on the Resize Disk button
reboot the VM

Expand Disk Space on Ubuntu Desktop
ssh onto the VM
List the current disks
sudo fdisk -l /dev/sdaIdentify the root partition, for example
In this case the root partition was /dev/sda3, now to resize run
sudo growpart /dev/sda 3Now reboot the VM
Once restarted, check the size of the disk with
df -h
Expand Disk Space on Ubuntu Server
ssh onto the VM
Identify the root partition, and the partition number.
superman@homeassistant:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 74M 1 loop /snap/core22/2339 loop2 7:2 0 63.8M 1 loop /snap/core20/2686 loop3 7:3 0 74M 1 loop /snap/core22/2292 loop4 7:4 0 71M 1 loop /snap/prometheus/86 loop5 7:5 0 50.9M 1 loop /snap/snapd/25577 loop6 7:6 0 48.1M 1 loop /snap/snapd/25935 loop7 7:7 0 63.8M 1 loop /snap/core20/2717 sda 8:0 0 45G 0 disk ├─sda1 8:1 0 1M 0 part ├─sda2 8:2 0 2G 0 part /boot └─sda3 8:3 0 28G 0 part └─ubuntu--vg-ubuntu--lv 252:0 0 28G 0 lvm /sudo apt update sudo apt install cloud-guest-utilsUse growpart to resize the partition, in this case it's partition 3 on /dev/sda
sudo growpart /dev/sda 3now resize the physical volume with pvresize.
sudo pvresize /dev/sda3Now resize the logical volume, in this case it's called ubuntu-lv
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lvNow resize the filesystem, in this case it's ext4
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv