Convert .vdi to .vmdk error

Discussions related to using VirtualBox on Windows hosts.
Post Reply
echauvin
Posts: 3
Joined: 17. Jan 2013, 12:42

Convert .vdi to .vmdk error

Post by echauvin »

Hello,

i'm trying to convert a file .vdi in .vmdk
OS : Windows 7 x86, Oracle VM VirtualBox 4.2.6

I open cmd prompt and type :
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonehd "C:\Users\install\Desk
top\OEERP2_V2013-disk1.vdi" "C:\Users\install\Desktop\openerp01.vmdk" --format VMDK --variant Standard
Result :
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Failed to clone hard disk
VBoxManage.exe: error: Could not create the clone medium 'C:\Users\install\Desktop\openerp01.vmdk' (VERR_VD_READ_OUT_OF_RANGE)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium
VBoxManage.exe: error: Context: "int __cdecl handleCloneHardDisk(struct HandlerArg *)" at line 682 of file VBoxManageDisk.cpp
An idea of the problem

Best regards

Erwan
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Convert .vdi to .vmdk error

Post by mpack »

I don't recognize the error, but the message "read out of range" IMHO implies a problem reading the VDI rather than writing the VMDK.

"Out of range" I imagine means that the block map is telling it to read from beyond the end of file. Suggesting perhaps that the VDI has been truncated. Did you recently move it between PCs, via a removable drive? If so, did you bear in mind that FAT32 formatted drives have a 4GB limit on individual file sizes?
echauvin
Posts: 3
Joined: 17. Jan 2013, 12:42

Re: Convert .vdi to .vmdk error

Post by echauvin »

the file is 7.2 go
I tested the conversion on two computers, the transfer between the two is passed through the network.
the file is read by virtualbox
echauvin
Posts: 3
Joined: 17. Jan 2013, 12:42

Re: Convert .vdi to .vmdk error

Post by echauvin »

it's OK

I retried the conversion after restarting the physical computer. and reinstall the software virtualbox, and it works

Thank you

Bye
Post Reply