Open a terminal and run the below command.
Convert Virtual Machine Disk File Storage Allocation Mode From Dynamic To Fixed. Now the virtual disk file’s virtual size has been increased, we need to allocate the newly added space in the virtual machine os.Ģ. From the below picture, we can see that the new Virtual Size is 30 GB, but the Actual Size is 5.71 GB.Now right-click the Ubuntu virtual machine in VirtualBox, click Settings menu item, then click Storage and select the virtual disk file ( Ubuntu.vdi ) on left, you can see its detailed information on the right side.You can also run the VBoxManage command in the terminal to resize the virtual disk file size as below.Do not forget to click the Apply button to save the changes. You can only increase the disk file size, can not decrease the file size.Then you can select the virtual disk file( Ubuntu.vdi) and change the file size use the bottom slider bar.Open VirtualBox and click Global Tools -> Virtual Media Manager menu item on the Oracle VM VirtualBox Manager window top right corner.Increase Virtual Machine Disk Virtual Size.