I am running VirtualBox 5.2_18 on Ubuntu 18.04 to host a Windows 7 instance as a guest system. The virtual hard disc is "dynamically allocated" and became too small for what I need to run within the Windows instance. I made four snapshots in the past if this is relevant. Therefore, I followed the large amount of articles on the topic on how to resize the virtual disk. Here is what I did:
- Unmount the disk in VirtualBox
- Resize the disk by executing
VBoxManage modifyhd Windows7.vdi --resize 50000
- Remount the disk in VirtualBox
- Mount GParted ISO to resize the virtual disk
At this point VirtualBox understands the new virtual size (~50GB).
The actual size is still what it has been (13,42GB) as shown in this screenshot:
Than I boot the GParted Live CD. As highlighted in the following GParted screenshot the disk size is still around 30GB which was the old size of the virtual disk.
How can I let GParted recognize the new disk size?
The process of resizing (growing) a dynamic VDI is to:
VBoxManage modifyhd Windows7.vdi --resize 50000
to resize the VDILooks like the growing partition step didn't complete successfully.I've done at least 50 VDI resizes for VirtualBox VMs in the past (all Linux though, some were more complicated LVM layout, 1 VG, multiple LVs on single block device) using
parted
, all worked as expected.