Some things have changed for the better regarding resizing the disk for an Ubuntu virtual machine under VMWare and it is much easier now.
Environment and tools:
- VMware® Workstation Pro 15.0.2
- Ubuntu 18.10 (Fresh installation a.k.a not an upgraded 18.04)
- gparted-0.33
Steps:
- While the virtual machine is shut down, use VMware’s “Edit virtual machine settings” to open the settings menu.
- Click on the hard drive and then the “Expand” button.
- Increase the size to the new desired size.
- For the CD/DVD, specify the gparted iso and make sure “connect at powerup” is enabled.
- Boot the virtual machine with gparted. This might require using “Power on to Firmware” in order for the iso to boot before the OS.
- resize the partition to fill the space.
- Reboot into the OS.
- DONE! It seems that everything is smart enough to adjust to the newly available size.