

If you already have a dynamically allocated disk that is VDI or VHD linked to the virtual machine, simply use the VBoxManage modifyhd –resize command.Below are steps showing you how to resize and expand an existing VMDK or VDI virtual hard drive in VirtualBox for use with a guest virtual machine (VM). That is it on how to resize root partition of VirtualBox VM snapshot using the Gparted Live CD.Often, people find their virtual machine hard disks are too small for usage needs. df -h /dev/sda1 Filesystem Size Used Avail Use% Mounted on When the system boots, you can check the disk size by running the df -h command. Poweroff the virtual machine and detach the Gparted Live CD iso and boot your system. After that, click the tick to save the changes. Next, right click on the root partition, in this case, it is /dev/sda and select resize and set the new partition size.Ĭlick resize to extend the partition size. To resize the root partition to unallocated space, we are going to first delete the extended and swap partition. Select your keymap, your preferred language and continue to startx to use Gparted automatically.Īs you can see, the unallocated space is 18GB. When the virtual machine starts, let it boot with GParted Live default settings. Once you have attached the iso, set the boot order such that optical disk comes first. Next, attach the GParted Live CD iso to your vm with a snapshot to be resized.

The original disk size is 12GB and we have resized it to 30GB Attach GParted Live CD ISO vboxmanage modifymedium disk VirtualBox\ VMs/debian9/Snapshots/.vdi -resize 30720 Snapshots are located on the snapshots folder. Once you have identified the name of the virtual machine snapshot to resize, proceed to resize the disk.

Resize Root Partition of VirtualBox VM Snapshot Open the Virtual Media Manager and find the name of the virtual machine snapshot whose root partition is to be resized.

Replace VM_NAME with the name of the virtual machine in question.
