Page 1 of 1

Can't convert VDI to IMG

Posted: 11. Feb 2015, 16:51
by Dominique
Hello,

I've got a virtual machine running Windows 7 which uses a VDI and VBOX file.
When I tried to convert the VDI file to an IMG file with VBoxManage I get an error.

Input (Using CMD on Windows 8.1 x64)

Code: Select all

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" VBoxManage clonehd windows7.vdi win7.img --format RAW
Output

Code: Select all

c:\Users\Dominique\VirtualBox VMs\windows7>"C:\Program Files\Oracle\VirtualBox\V
BoxManage.exe" clonehd windows7.vdi win7.img --format RAW
VBoxManage.exe: error: Could not find file for the medium 'c:\Users\Dominique\Vi
rtualBox VMs\windows7\windows7.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component M
edium, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDe
vType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of
 file VBoxManageDisk.cpp
I searched the internet for a few hours but can't find what I am doing wrong.
Is there any known fix for this?

Dominique

Re: Can't convert VDI to IMG

Posted: 11. Feb 2015, 17:08
by Perryg

Code: Select all

Could not find file for the medium 'c:\Users\Dominique\VirtualBox VMs\windows7\windows7.vdi' (VERR_FILE_NOT_FOUND)
Something is not correct in your path as these errors are specific and AFAIK are alway right. Try using absolute paths in you command.

Re: Can't convert VDI to IMG

Posted: 11. Feb 2015, 17:18
by socratis
Dominique wrote:Could not find file for the medium 'c:\Users\Dominique\VirtualBox VMs\windows7\windows7.vdi' (VERR_FILE_NOT_FOUND)
Is VBoxManage lying? There is actually a file named 'c:\Users\Dominique\VirtualBox VMs\windows7\windows7.vdi'?