C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd E:\VMs\Win7x64-POS1\Win7x64-POS1.vdi --resize 51200
#17 2013-09-17 18:30:32 reply
OK, turns out that modifyhd --resize does not work as expected if the VM to be resized uses snapshots. A user is supposed to know that in this case modifyhd --resize is to be run against the latest snapshot, not the original vdi file. For those looking how to merge snapshots in VirtualBox to allow expanding virtual disk: Select your snapshot (if you have multiple, start from the most recent snapshot at the bottom, NOT CURRENT STATE) and click Delete. This will MERGE the data into your CURRENT STATE and leave you with your current state with no snapshots (repeat until all snapshots are merged into Current State). You would then see the unallocated space in the OS and be able to resize, and take a new snapshot afterwards to resume using snapshots.