Page 1 of 1

Error reading the block table when trying to clone VDI

Posted: 28. Jul 2020, 19:18
by Geobosox
I just performed a compress on my VDI file and can't open it in Virtualbox. When I trying running anything with VBOXmanage I get the error below. Any help is appreciated.


C:\Program Files\Oracle\VirtualBox>vboxmanage clonevdi "D:\VirtualBox VMs\Pharma VM\SDS_Pharma_V1221_V02.VDI" "D:\VirtualBox VMs\Pharma VM\SDS_Pharma_V1221_V03.VDI" --format VDI
VBoxManage.exe: error: Could not open the medium 'D:\VirtualBox VMs\Pharma VM\SDS_Pharma_V1221_V02.VDI'.
VBoxManage.exe: error: VDI: Error reading the block table in 'D:\VirtualBox VMs\Pharma VM\SDS_Pharma_V1221_V02.VDI' (VERR_INVALID_FUNCTION).
VBoxManage.exe: error: VD: error VERR_INVALID_FUNCTION opening image file 'D:\VirtualBox VMs\Pharma VM\SDS_Pharma_V1221_V02.VDI' (VERR_INVALID_FUNCTION)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "CloneTo(pDstMedium, ComSafeArrayAsInParam(l_variants), NULL, pProgress.asOutParam())" at line 987 of file VBoxManageDisk.cpp

C:\Program Files\Oracle\VirtualBox>

Re: Error reading the block table when trying to clone VDI

Posted: 29. Jul 2020, 03:50
by scottgus1
Geobosox wrote:I just performed a compress on my VDI file
Does this mean you tried to compact it? What was the method you used? Did the host D drive suffer a problem lately?

Try running Mpack's CloneVDI on the original disk file. If CloneVDI cannot make sense of the original VDI, then it's toast, and a backup copy is needed.

Re: Error reading the block table when trying to clone VDI

Posted: 29. Jul 2020, 06:13
by Geobosox
Thanks for the response. Turns out that there was a disk issue that I finally resolved and the VM is now working fine.

Re: Error reading the block table when trying to clone VDI

Posted: 29. Jul 2020, 18:46
by scottgus1
Great! Glad you're up and running.