Works with standard BIOS and when not using LVM.
- Shut down VM, resize disk in ESXi by editing VM and entering a larger size
- Download GParted live ISO from https://gparted.org/download.php
- Edit the VM, select the GParted ISO in the CDROM settings and ensure it is connected
- In VM Options, select "Force BIOS setup" under "Boot Options"
- Boot the VM. In BIOS setup, change boot order to load CDROM first
- Exit and restart, GParted iso will load
- GParted may want to fix free space issues, allow
- Select partion to resize and resize to full size
- Save and exit, shutdown VM
- Edit VM and remove ISO from CDROM (disconnect), can also enter BIOS again and change boot order, but not necessary
- In VM,
sudo cfdisk
- Select partion to resize (up and down arrow) and select "Resize" (left and right arrow)
- Should pre-populate with new size, but enter desired size if it doesn't
- Arrow over to "Write" and confirm
- Restart VM with
sudo reboot now
- Run
df -h
to get the filesystem name to resize - Run
sudo resize2fs /dev/{your_filesystem_name}
to resize - Verify you now have more available disk space with
df -h