

Once it’s done, open Gparted in Linux Live OS. If you are not sure, open Gparted in the Linux Live OS to know which is which. Your old disk is /dev/sda and your new disk is /dev/sdb. Once you are in a Linux Live OS, open up a terminal, run the following command to copy /dev/sda to /dev/sdb. In order to use dd to copy guest OS to the new disk, we need to boot virtual machine from a Linux Live image.Ĭlick on Controller: IDE, then click on the optical disk icon to select a Linux live image from your computer.Īfter you save your settings, start the virtual machine. Now a new disk is created and is attached to your virtual machine. Give your new disk a name and select a size for it. In the next screen, I choose my hard disk to be dynamically allocated because it takes less time to create. You can choose whatever file type you like. Select Create new disk on the next window. Under Storage Tree, click Contorller: SATA, then click the plus icon at the bottom to add a new hard disk. Open virtual machine settings and click Storage on the left pane.

Finally We can delete the original virtual disk from virtual machine. Next, we will make the OS to use all disk space of the new virtual disk.

Increase Virtualbox Disk Size For Fixed Size Disksįirst we add a new virtual disk that is larger than the original virtual disk, then we will use the dd utility to copy the OS on the original virtual disk to the new virtual disk. Make sure your backup disk name is different from the origial disk name. For example, I executed this command: cp /media/matrix/sdb9/VMs/openSUSE.vdi /media/matrix/sdb9/VMs/openSUSE-bakcup.vdi Repalce the location with the real location of your virtual disk. cp /location-of-virtual-disk /location-of-backup-of-virtual-disk Next open up a terminal on your host OS and run the following command to backup the virtual hard disk. You can see that my virtual disk is fixed size.īefore we increase the size of our virtual hard disk, it’s always a good idea to make a backup of it in case something go wrong.įirst, right click on the location line and copy the location of your virtual hard disk. You can see the information about your virtual disk on the right. Select your virtual disk under Storage Tree. Open you virtual machine settings and click Storage on the left pane. Find Out If Your Virtual Disk is Fixed Size If you want to know how to increase the size of a fixed size disk, then read the previous article. In this tutorial, I’m going to show you how to increase Virtualbox disk size for fixed size disks.
