Recently, I had to do this as 10GB was not sufficient for Centos6.7 VM. I would just like to mention simple steps for how to do it.
- Shutdown VM and quit from VirtualBox.
- Open the terminal and go to the below path (default
location). From here you can run the command to resize the
VDI file.
Nils-Mac:MacOS nilnandan$ pwd /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS Nils-Mac:MacOS nilnandan$
- Start another terminal with command + T and
find the directory where actually the VDI file
stored. Default location would be ,
Nils-Mac:centos67-mysql nilnandan$ pwd /Users/nilnandan/VirtualBox VMs/centos67-mysql
Nils-Mac:centos67-mysql nilnandan$ ls -alh total 21925920 drwx------ 7 nilnandan staff 238B Aug 11 18:15 . drwx------ 12 nilnandan staff 408B Aug 11 17:50 …