Can't convert VDI to IMG

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Dominique
Posts: 1
Joined: 11. Feb 2015, 16:43

Can't convert VDI to IMG

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't convert VDI to IMG

Post 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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't convert VDI to IMG

Post 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'?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply