I will preface my question by saying I don't have a lot of experience with VirtualBox or Ubuntu, but did my best to read the information relevant to my problem and can't figure out why the solutions out there won't work for me.
I have guest Ubuntu running on virtualbox 6.1 through host Windows 10. Originally there was a 500 GB VDI created for the guest, but I wanted to expand that to 800 GB.
In order to do so, I went to “File > Virtual Media Manager” in the VirtualBox UI and expanded the drive from 500 to 800 GB. Then I logged into the guest and installed/ran gparted to allocate the new space to my main partition. These steps all appeared to be successful.
VirtualBox reports an actual size of 500 GB and a virtual size of 800 GB. Gparted reports 800 GB size in the lvm2 pv filesystem with 500 GB used and 300 GB unused.
What step am I missing?
pvresize
andlvresize
. First command make lvm aware of the increased disk space. Second command resizes the individual logical volumes. Use the-r
option to resize the file system along with the volume