Virtual box Increase disk size

http://trivialproof.blogspot.com.br/2011/01/resizing-virtualbox-virtual-hard-disk.html#expand_partition_on_new_vdi
https://www.howtogeek.com/124622/how-to-enlarge-a-virtual-machines-disk-in-virtualbox-or-vmware/

command example
$ VBoxManage modifyhd /home/user/VirtualBox\ VMs/windows7/windows7.vdi --resize 50000

I had an issue where new memory was not showing up in GParted GUI to be allocated. I cloned the virtual drive and use that one instead and it worked