Failed on formatting VHD from VMDK

This is for discussing general topics about how to use VirtualBox.
Post Reply
Berb Iji II
Posts: 1
Joined: 15. Jun 2016, 08:53

Failed on formatting VHD from VMDK

Post by Berb Iji II »

Hi,

I'm trying to convert a vmdk file to vhd, using

Code: Select all

vboxmanage clonehd --format vhd
command, but I gut this error:

Code: Select all

0%...10%...20%...30%...40%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Failed to clone medium
VBoxManage.exe: error: Could not create the clone medium 'E:\Temp\2\upd1-disk1.vhd' (VERR_ZIP_ERROR)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCloneMedium(struct HandlerArg *)" at line 896 of file VBoxManageDisk.cpp
Can someone please help?
Thanks!
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: Failed on formatting VHD from VMDK

Post by mpack »

ZIP error? I have no idea what that could mean in this context.

You didn't show me the actual command you typed, so it's impossible to know if the syntax is correct.

Why do you want VHD format anyway? It is inferior to both VDI and VMDK, VDI being the preferred format in VirtualBox.

----

Oh wait, did this VMDK come from an OVA/OVF package? If yes then (a) it's compressed, and (b) it's a corrupted download. Download it again and verify using an MD5 sum. The normal way to unpack an OVA/OVF is using File|Import, but if for some reason you don't want to do that then I suggest cloning to VDI format, never VHD.
Post Reply