Ubuntu – Add more storage space to guest OS on VirtualBox 6

18.04partitioningstoragevirtualbox

I'm using VirtualBox 6 on Ubuntu 18.04.3 LTS. I need to add more storage space to the guest OS.
I already ran VBoxManage modifyhd box-disk002.vdi --resize 46080 but the old value remains.
Below is a screenshot of the settings. I tried to use the slider to increase the disk size but that didn't work either.
enter image description here

How to add more storage space?

Best Answer

I'll recommend to run this command again

vboxmanage modifyhd --resize 46080 box-disk002.vdi

and then resize file-system by booting VM from some LiveCD with gparted.


References:

https://www.virtualbox.org/manual/UserManual.html#vboxmanage-modifyvdi

Related Question