Windows 10 - Import E_INVALIDARG 0x80070057

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Gavo_4444
Posts: 4
Joined: 6. Jan 2020, 12:05

Windows 10 - Import E_INVALIDARG 0x80070057

Post by Gavo_4444 »

Screen Shot
Screen Shot
Clipboard01.jpg (62.9 KiB) Viewed 80130 times
[attachment=0]Hi All,

I am having issue importing an appliance into the Virtual Box and I am using Windows 10 64 Bit, and I keep getting the Error E_INVALIDARG 0x80070057.

I have tried this now on two different Windows 10 Machines with the same result.

Screen shots attached,

Regards,

Gavo
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by mpack »

Click on the "Details" button and report the details. Also, you could dispense with the red desktop surround, clip the image down to the important dialogs and give me an unobstructed and higher quality version of that, i.e. PNG format.
Gavo_4444
Posts: 4
Joined: 6. Jan 2020, 12:05

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by Gavo_4444 »

Clipboard01.png
Clipboard01.png (26.23 KiB) Viewed 80071 times
My Apologies please see attached
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by mpack »

According to my quick search, E_INVALIDARG(0x80070057) usually means that the host drive is too small to accomodate the VM. I was hoping that a detailed view of the error message would give the relevant message and statistics, but apparantly not.
Gavo_4444
Posts: 4
Joined: 6. Jan 2020, 12:05

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by Gavo_4444 »

Its on a machine that has more than 2TB space, it's a brand new MSI with plenty of space
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by mpack »

Personally I would just give up at this point and unpack the OVA manually (it's just a tar archive). Note that the VMDK embedded in an OVA is compressed, so don't try to use it in a VM - use VBoxManage to clone it to VDI format first. I.e.

Code: Select all

VBoxManage clonemedium <vmdk filename> <vdi filename> --format VDI
Then create a VM around the VDI. The .OVF file unpacked from the OVA should give you a hint about the VM recipe.

Final step would be to move the VDI into the VM folder so that the VM has the expected layout. I see that File|Virtual Media Manager has a Move.. function for VDIs.
Gavo_4444
Posts: 4
Joined: 6. Jan 2020, 12:05

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by Gavo_4444 »

Please see below, my apologies I am a newbie and trying my best to understand...and thanks for the help...;-)

C:\Program Files\Oracle\VirtualBox>VBoxManage clonemedium "C:\Users\gavo\VirtualBox VMs\PyImageSearch - Practical Python and OpenCV 4th Edition" "Pyimage" --format VDI
VBoxManage.exe: error: Permission problem accessing the file for the medium 'C:\Users\gavo\VirtualBox VMs\PyImageSearch - Practical Python and OpenCV 4th Edition' (VERR_ACCESS_DENIED)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 191 of file VBoxManageDisk.cpp
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by mpack »

Quite obviously, "C:\Users\gavo\VirtualBox VMs\PyImageSearch - Practical Python and OpenCV 4th Edition" is not the name of a VMDK file, and "Pyimage" is not a suitable name for a VDI either (it needs a .vdi extension).

Did you unpack the OVA? As I mentioned, it's just a tar archive, so rename the .OVA to give it a .tar extension, and then unpack it using whatever your favorite archiving tool is (WinRar, WinZip, 7zip etc (*)). That will give you the individual files from the archive, including the compressed .vmdk which you convert to VDI.

(*) If you need to get an archiving tool then I suggest that it isn't WinZip. I used WinZip for many years, but Corel bought it and turned it into bloatware with a crappy touch style interface.
jc9301
Posts: 1
Joined: 22. Oct 2020, 02:01

Re: Windows 10 - Import E_INVALIDARG 0x80070057

Post by jc9301 »

Hi,

I am having the same issue, and the same, I have enough space in my disk for this VM, and have 16GB of RAM in my computer

I tried the solution suggested, to unpack the OVA, I follow the following steps:

1) Change the extension .ova to .tar
2) Unzip the .tar
3) I have all the individual files, .mf, .ovf and .vmdk
4) Convert .vmdk to .vdi -> These step fails

I am not able to convert the .vmdk to .vdi, I got this error:

C:\Users\Jose\OneDrive\Escritorio\New folder\prof\New folder>"c:\program files\oracle\virtualbox\vboxmanage" clonehd prof.vmdk prof_new.vdi --format VDI
0%...10%...20%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Failed to clone medium
VBoxManage.exe: error: Could not create the clone medium 'C:\Users\Jose\OneDrive\Escritorio\New folder\prof\New folder\prof_new.vdi' (VERR_VD_VMDK_INVALID_FORMAT)
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 1071 of file VBoxManageDisk.cpp


What can I do?

Regards
Attachments
convert.PNG
convert.PNG (23.59 KiB) Viewed 67976 times
Post Reply