I have an XP.vdi that I had successfully resized. Then I had issues with getting gparted to work in virtualbox and that's now fixed. When I booted into gparted, I noticed that my XP.vdi image has not been resized. So i went back and tried to resize it and got the error message below. So I decided to clone XP.vdi and then try. Just to be safe, I moved XP.vdi to my NTFS Windows partition from Linux. Then I tried --resize on the clone and got the same message below:
deathstar> VBoxManage modifyhd XP1.vdi --resize 6144
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
deathstar> VBoxManage showhdinfo XP1.vdi
UUID: 1fb86383-f643-4cf8-b043-15aaab93c53f
Parent UUID: base
State: created
Type: normal (base)
Location: /root/VirtualBox VMs/XP/XP1.vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 60000 MBytes
Size on disk: 4272 MBytes
However the move seems to have upset something because i'm now getting
deathstar> VBoxManage showhdinfo /my/D/XP.vdi
VBoxManage: error: Cannot register the hard disk '/my/D/XP.vdi' {fa2d24af-bd52-4928-89d3-c8c5feeb7b75} because a hard disk '/root/VirtualBox VMs/XP/XP.vdi' with UUID {fa2d24af-bd52-4928-89d3-c8c5feeb7b75} already exists
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
(but I suppose I can move XP.vdi back and fix this). How do I fix the failure to resize though?
I am using:
deathstar> uname -a
Linux deathstar 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u2 (2016-06-25) x86_64 GNU/Linux
deathstar> VBoxManage --version
4.3.36_Debianr105129