Page 1 of 1

VBoxManage.exe error VBoxManageDisk.cpp

Posted: 9. Apr 2013, 19:57
by poldim
So I was following Terry's instructions on How can I reduce the size of a dynamic VDI on disk. When I ran sdelete, it increased my dynamic VDI from 52 GB to 83 GB. Since my ultimate goal is to reduce the vdi to its 41GB file size, this seemed counter productive. But I continued on. When I ran the compact command, I received the following error:

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage modifyvdi D:\Backups\SENA_Win7\SEN
A_Win7.vdi compact
0%...CANCELED
VBoxManage.exe: error: Failed to compact hard disk
VBoxManage.exe: error: Could not compact medium 'D:\Backups\SENA_Win7\SENA_Win7.
vdi' (VERR_CANCELLED)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component M
edium, interface IMedium
VBoxManage.exe: error: Context: "int __cdecl handleModifyHardDisk(struct Handler
Arg *)" at line 530 of file VBoxManageDisk.cpp

C:\Program Files\Oracle\VirtualBox>

Any advice?

Re: VBoxManage.exe error VBoxManageDisk.cpp

Posted: 10. Apr 2013, 12:13
by mpack
Try using the Compact feature of CloneVDI instead. Terry's was good advice - in 2008.