I managed to do it before I came across this forum & registered.
My host is Linux Mint 64 bit and my troubled guest was Windows XP (32 bit) with a 10GB VDI at full capacity.
I wanted to extend it to 20GB. So this is what I did:
1. Attached a newly created 20GB VDI as the primary slave.
2. Boot into XP to initialise it, but leave it unpartitioned & formatted. Shut down or reboot.
3. Mount Clonezilla (I used clonezilla-live-1.2.3-27.iso but there are newer versions available) to the optical drive in the settings. Restart the VM.
4. Boot into Clonezilla & choose language, then "don't touch keymapping", "Start_Clonzilla", "device-device" (2nd option), "Beginner", "disk_to_local_disk".
5. It will ask you to choose source - select your smaller VDI (/dev/sda or /dev/hda - the size is shown too). Select destination - the only selection left.
6. Select Yes to everything, even the capital Y for copying the boot sector.
7. Cloning will start and will even create the partition for you on the new VDI.
8. Once finished, select 1 for reboot. Clonzilla will give you the time to unmount - richt-click the CD icon on the bottom of your VM and select unmount. Press enter.
9. Boot in XP again on the original VDI. Just to prove a point, right-click My Computer and select manage, then disk management. You will see your new cloned partition & unallocated space after it. If you want to make another volume, right-click and make one and finish there.
10. Since I wanted to make the whole disk 1 volume, I opened command prompt and entered "diskpart"
11. Type "list volume" to display the existing volumes on the computer.
12. Type "Select volume {volume number}" where {volume number} is number of the volume that you want to extend. Mine was 2.
13. Type "extend". If you still have disk management open, you will see the volume increase quickly.
14. Type "exit" to leave diskpart.
15. Poweroff then remove your original VDI and change your new VDI to Primary Master then reboot.
16. Enjoy!
