Error 0x80070057 when importing Hyper-V VM around servers.

It's already bothering me many times when I am export my Hyper-V VM (with important snapshots) and trying to import to another machine and hit this error without further information:

Failed to import the virtual machine from import directory 'C:\vpc\somevpc1\'. Error: One or more arguments are invalid(0x80070057)

been searching on the internet and not found very useful information until today. this saving me lots of time to locate the problems via copying super large VM (>50GB) around my networks.

found the post from John Rennie in this technet forum:

(for my reference, leave a copy of info here.)

In I described a problem when exporting from a Hyper-V server and trying to import into a different Hyper-V server in a different domain. The import failed and the event log contained:

Failed to import the virtual machine from import directory 'D:\HV\Test\Test4GB-3\'. Error: One or more arguments are invalid(0x80070057)

Well I've now identified the source of the problem. In the .exp file is:
  <PROPERTY NAME="ScopeOfResidence" TYPE="string">
If I edit the .exp file and delete the <value>..</value> then the virtual machine imports with no errors.

you should find the master exp file under the exported VM under VirtualMachine folder. open the file and locate the Msvm_VirtualSystemGlobalSettingData instance, should be in the top of the file, locate the ScopeOfResidence property and just clear that GUID (leave the <value> tag there). import the modified VM again and you will success.

Thanks John for sharing the info, and FYI.

Comments (7)

  1. Samuel says:

    Thanks man, it helped me a lot !

  2. chefe says:

    It took me two days to backup all my virtual machines, it never worked due to this this error…

    thanks a lot!

    you saved my day:)

  3. FungHan says:

    This really helped !! was pulling my hair out on this one. appreciate it man!

  4. timfr says:

    Merci beaucoup !

    C’est la deuxième fois que ce lien me rend service.

  5. bhanu says:

    Unfortunately, It didn't work for me,,,,,,,,,

    my <value></value> attribute is already null……………..

    let me know if i can look for any other guid's causing problem

  6. says:

    Not working for me either.  After deleting the value, I now get a different error:  Import failed.  Unable to find virtual machine import files under location '<path of Exported VM>'.  You can import a virtual machine only if you used Hyper-V to create and export it.

  7. Ibeabuchi says:

    I am still encountering the same error.

Skip to main content