Импорт виртуальной машины hyper v ошибка

Error importing Hyper-V virtual machine via PowerShell "Import-VM : Unable to import virtual machine due to configuration errors. Please use Compare-VM to repair the virtual machine"Импорт виртуальных машин Hyper-V можно выполнять разными способами – как через графические инструменты типа Hyper-V Manager, так и с помощью PowerShell. Мастер импорта в оснастке Hyper-V Manager, взаимодействуя с администратором в интерактивном диалоге, позволяет разрешить ряд проблем, которые могут возникнуть в ходе импорта. Если же для импорта используется PowerShell, то здесь нюансы несовместимости исходной и целевой сред виртуализации могут выливаться в ошибки, останавливающие процедуру импорта. Так при попытке импорта виртуальной машины, подготовленной сторонней организацией мы можем столкнуться с ситуацией, когда PowerShell командлет Import-VM завершает свою работу с ошибкой вида:

Import-VM : Unable to import virtual machine due to configuration errors.  Please use Compare-VM to repair the virtual machine

Попробуем рассмотреть пример такого импорта с возникновением описанной ошибки и рассмотрим метод её исправления.

Распаковываем файлы экспортированной ранее виртуальной машины в то месторасположение, где она будет выполняться (в нашем примере это каталог C:ClusterStorageVolume1VM01). В консоли PowerShell переходим в этот каталог и выполняем команду импорта, указав файл конфигурации ВМ *.vmcx):

Set-Location -Path 'C:ClusterStorageVolume1VM01'
Import-VM -Path '.Virtual MachinesF5AEEF4B-C5D5-4B05-9780-9B3E8F8EA9AC.vmcx'

В результате мы можем получить выше обозначенную ошибку:

Hyper-V PowerShell error - Import-VM : Unable to import virtual machine due to configuration errors. Please use Compare-VM to repair the virtual machine

Если прочитать онлайн справку по командлету Compare-VM, на который нас отсылает текст ошибки, то там мы сможем найти пример решения подобной проблемы.

Выполним команду проверки совместимости файла конфигурации ВМ с настройками и возможностями текущего хоста виртуализации, и поместим результат проверки в некую переменную, например $report.

$report = Compare-VM -Path '.Virtual MachinesF5AEEF4B-C5D5-4B05-9780-9B3E8F8EA9AC.vmcx'
$report

Hyper-V PowerShell Compare-VM Summary

Как видим, в свойстве «Incompatibilities» есть набор объектов, каждый из которых представляет какую-либо проблему совместимости. В нашем случае найдено две таких проблемы. Посмотрим подробней:

$report.Incompatibilities | Format-List

Hyper-V PowerShell Compare-VM Incompatibilities

Как видим, ВМ не может быть импортирована на хост, так как на хосте нет
виртуального сетевого коммутатора Hyper-V с именем «New Virtual Switch«, которое фигурирует в конфигурации ВМ.

Можем более углублённо посмотреть текущую конфигурацию проблемных компонент через набор данных в свойстве «Source»:

$report.Incompatibilities.Source | Select Name,MacAddress,Connected | Format-Table

Hyper-V PowerShell Compare-VM Incompatibilities details

Простым решением этой конкретной проблемы является отключение сетевых адаптеров в конфигурации импортируемой ВМ от несуществующего виртуального коммутатора (после импорта нужные виртуальные коммутаторы Hyper-V можно будет снова назначить на виртуальных сетевых адаптерах ВМ).
У нас две несовместимости и мы обрабатываем каждую их них по порядковому индексу начиная с 0, оперируя при этом объектами конфигурации ВМ точно также, как для любой локальной ВМ на хосте.

$report.Incompatibilities[0].Source | Disconnect-VMNetworkAdapter
$report.Incompatibilities[1].Source | Disconnect-VMNetworkAdapter

Убедимся, что параметры конфигурации проблемных компонент изменились и хранятся в переменной $report:

$report.Incompatibilities.Source | Select Name,MacAddress,Connected | Format-Table

Fix Compare-VM Incompatibilities via Source objects

Теперь пробуем снова выполнить импорт ВМ, вызывая командлет импорта в специальном режиме с обработкой откорректированных данных о совместимости из переменной $report (при этом путь к конфигурации vmcx уже не указываем, так как он уже есть в данных $report):

Import-VM -CompatibilityReport $report

Hyper-V PowerShell success import of VM

Как видим, теперь импорт виртуальной машины завершился успешно.

1) пытаюсь импортировать виртуальную машину

пробую на двух Win 8.1 «песочница» и Win2012r2 «рабочая лошадка» 

выбираю папку. — C:HYPERVWIN2012 (в ней файл WIN2012.vhdx)

на 8.1 и Win2012r2 — все лежит в тех же местах.

на что пишет ошибку не удалось найти папку C:HYPERVWIN2012Virtual Machines — какова …?! собственно

(ладно делаем по другому — создаем в этой паке эту папку [ Virtual Machines ] ) копируем в нее WIN2012.vhdx (2 поколение)

на что на следующем шаге получаем ошибку — Файлы виртуальной машины не найдены??

2) второй вопрос на тех же машинах беру файл WIN2012.vhdx c win8.1 подсовываю его на Win2012r2

пытаюсь запустить — на в ответ — Boot failure. Reboot and Select proper Boot device or Insert Boot Media in selected Boot device_

скорее всего связанно стем что я не могу создать на Win2012r2 виртуалку поколения 2. 9 не дает выбрать такое.

Hello Everyone,

Long back I configured the Hyper-V Virtual Machine (in Windows Server 2008 R2) for my testing purpose with MS-CRM. I even exported the VM for re-importing it back to any other machine, if required in future.  And it happened multiple times when I had to re-import my VM in different machines.

But lately, when I was trying to Re-Import my same VM to my Windows 8.1 system Hyper-V it failed with the Error Message:- Hyper-V did not find virtual machines to import from location “”.

I repeated the steps to make sure I performed the import correctly:-

1> Under Actions, Select Import Virtual Machine.

An Import Virtual Machine wizard will open which will ask for the folder containing the VM to import.

2> I selected my exported VM folder.

3> When I clicked Next, the following error appeared again.

Quite surprisingly, I had no idea as in what went wrong with my VM !!! It worked well before and now it says it didn’t find virtual machine even-though its present right there!!! 😛

Anyhow, I figured out the main reason for this error which is described same in the Forum here:-

“VM’s that are exported from Windows Server 2008 or 2008 R2 utilized the version 1 WMI namespace which resulted in a .exp file to represent the exported virtual machine.  In Windows Server 2012 we introduced a new WMI namespace (version 2 or rootvirtualizationv2) which implemented a much better import/export model – allowing you to effectively just copy the virtual machine folder (with the VM’s XML configuration file inside it) as well as the VM’s VHDs and then import that directly.  

For Windows Server 2012 we maintained the version 1 WMI namespace which allowed for importing of Windows Server 2008/R2 VM’s on 2012. In Windows Server 2012 R2 we have removed the old version 1 namespace which means we can’t import virtual machines that where exported from Windows Server 2008/R2.

Ok, Now what ?  Do I need to create a new VM from the scratch ?  Not that much time buddy. So while reading other forum post I came across a line which said that it might be possible to atleast use the Virtual Hard Disk again. And it worked for me !!! 🙂

Solution:-

Step 1: Start creating a New VM from scratch.

Under Actions, Select New -> Virtual Machine

A New Virtual Machine Wizard will open and walk-through the creation of new VM. Enter the Name (I gave the same name as previous one).

Step 2: Specify the Generation

I simply selected generation 1 in my case as I was restoring the virtual machine hard disk from Server 2008 R2 and don’t want to take any chances further. 😉

Step 3: Assign Memory depending on your machine configuration.

As usual I assigned 4500 MB Ram so that my host OS could stay alive and perform if I had to switch through Virtual and Real quite often.

Step 4: Configure Networking

This is not a mandatory step, as Network can be configured later as well. I have written a separate Post earlier about configuring network to access Hyper-V remotely.

Step 5: Connect Virtual Hard Disk

I selected my already existing Hard Disk from the exported VM folder, clicked Next.

Step 6: Completing the New Virtual Machine Wizard

A summary of the VM to be created is showed, click Finish and you will have your VM working as before.

It worked out for me and I suppose it will work for you as well. Hope that will be helpful. 

Thanks !!! 

😀

Автор Владимир!

Привет, друзья. В этой статье предлагаю поговорить о проблеме импорта файлов конфигурации виртуальных машин OVA программой VirtualBox. Об этой проблеме вы не единожды упоминали в комментариях к одной из статей сайта, где приводились инструкции по скачиванию готовой машины с Windows 8.1. Процесс импорта программой VirtualBox машин, экспортированных нами ранее или скачанных в Интернете, увы, не всегда проходит успешно. И иногда мы можем столкнуться с ошибкой типа «Не удалось импортировать конфигурацию виртуальной машины». Ниже поговорим о том, что может привести к такой ошибке импорта, а также рассмотрим универсальный способ решения этой проблемы.

Рабочие виртуалки VirtualBox вместе с их настройками и содержимым виртуального жёсткого диска можно экспортировать в универсальный файл конфигурации формата OVA, а затем импортировать его после переустановки основной Windows, на другом компьютере или на другом гипервизоре. С механизмом экспорта-импорта с участием формата OVA работают программы VirtualBox, VMware Workstation, а при дополнительных усилиях — ещё и Hyper-V. Готовые виртуальные машины в Интернете обычно выкладывают именно в формате OVA.

В идеале механизм импорта в программе VirtualBox прост: выбираем «Импорт конфигураций», указываем путь к файлу OVA, жмём «Далее».

При необходимости меняем кое-какие настройки и жмём «Импорт».

И через какое-то время можем уже запускать виртуалку.

Но это так в идеале. Что может препятствовать этому процессу?

Сообщением типа «Не удалось импортировать конфигурацию виртуальной машины» процесс импорта может завершиться банально из-за проблем с файлом OVA (если он повреждён) или из-за нехватки места на диске, куда распаковывается виртуальная машина. Если с самим OVA всё в порядке, при возникновении такой проблемы можно попытаться извлечь виртуалку на другой раздел диска. Или на исходный, только после очистки системной корзины. Можно даже попробовать дефрагментировать такой раздел (если, конечно же, это раздел HDD).

У раздела диска, куда распаковывается импортируемая машина, естественно, должна быть файловая система NTFS. На раздел с FAT32 не запишется файл виртуального жёсткого диска в составе машины, который обычно весит больше 4 Гб.

Если мы говорим о виртуалке, скачанной с Интернета, нужно тщательно проверить параметры импорта. Возможно, тот, кто её экспортировал, работал на более мощном компьютере и указал большой объём оперативной памяти или слишком много ядер процессора.

Но часто, друзья, бывает так, что в одной версии VirtualBox не хочет осуществлять импорт, а в другой, к примеру, в более старой версии – делает это без каких-либо проблем.

За исключением случаев порченного OVA и раздела с FAT32 решить проблему ошибки импорта виртуальной машины можно путём извлечения из OVA файла виртуального жёсткого диска и формирования на его базе новой машины.

Создание новых машин на базе файлов виртуальных жёстких дисков – это более удобный, чем экспортирование в формат OVA, способ восстановления виртуалок. Особенно, если их много. Кто активно работает с гипервизорами, обычно больше привязан к виртуальным дискам машин, а не к их конфигурации. Такие пользователи прекрасно знают, какие настройки виртуалок они используют. И им проще создать новую машину на базе имеющегося виртуального диска, чем возиться с созданием увесистого файла экспорта OVA.

Но где взять диск виртуальной машины, если последняя, например, в формате OVA скачана с Интернета? Друзья, OVA – это контейнер архива TAR, его содержимое можно увидеть и извлечь какую-то часть данных с помощью программ 7-zip, WinRAR или любого иного архиватора, который поддерживает формат архивов «.tar». Этими частично извлечёнными данными и станет виртуальный жёсткий диск, на базе которого мы создадим новую виртуалку. Что же, поехали.

  • Примечание: друзья, каталогом хранения содержимого виртуальных машин в программе VirtualBox по умолчанию является папка на системном диске. И чтобы не захламлять диск С, рекомендую вам отвести под работу с виртуалками специальную папку на несистемном каком-нибудь разделе. Или даже выделить под это целый раздел, например, самый быстрый по результатам тестирования скорости чтения и записи данных, если мы говорим об HDD. Путь хранения данных виртуалок можно прописать в общих настройках программы, чтобы каждый раз при создании новой машины не отвлекаться на смену пути по умолчанию.

Этап 1. Создание новой машины

В окне VirtualBox создаём новую машину.

Называем её, указываем версию Windows, задаём показатель оперативной памяти. В графе «Жёсткий диск» выставляем пункт «Не подключать виртуальный жёсткий диск». Жмём «Создать».

И пока сворачиваем окно VirtualBox.

Этап 2. Работа с архиватором

Теперь, друзья, с помощью архиватора нам нужно извлечь из OVA виртуальный жёсткий диск.

  • Примечание: если вы скачали виртуалку с Интернета в архиве RAR, ZIP и т.п, не забудьте распаковать такой архив путём обычной разархивации, чтобы на выходе получился именно контейнер OVA.

Запускаем архиватор. Я буду использовать классику жанра – программу WinRAR. Открываем наш OVA в окне архиватора с помощью меню «Файл — Открыть». Важно: архиваторы по умолчанию могут отображать не все поддерживаемые типы архивов. Чтобы OVA был виден в меню обзора для открытия, необходимо указать тип отображаемых данных «Все файлы». 

После успешного открытия в окне архиватора увидим содержимое OVA. В моём случае это файл конфигурации виртуальной машины OVF и совместимый с VirtualBox и VMware Workstation файл виртуального жёсткого диска VMDK. Последний нам-то и нужен. Кликаем его, вызываем контекстное меню и в случае с WinRAR выбираем пункт меню «Извлечь в указанную папку». В архиваторе 7-zip используем пункт контекстного меню «Копировать в…».

Файл виртуального диска для удобства можем распаковать в папку хранения созданной нами на предыдущем этапе новой виртуалки.

Таким образом все её составляющие будут аккуратненько сосуществовать в одном месте.

Теперь возвращаемся к программе VirtualBox.

Этап 3. Подключение виртуального жёсткого диска

На первом этапе мы создали машину без жёсткого диска. Выделяем её и жмём кнопку настроек.

В окошке настроек идём в раздел «Носители», жмём кнопку контроллера SATA и добавляем новый жёсткий диск из числа существующих.

Указываем путь хранения файла, который мы извлекали с помощью архиватора на предыдущем этапе.

Жмём «Ок».

***

Всё – машина настроена. Можем запускать её.

Если запуск виртуалки прошёл успешно, однако на этапе запуска Windows возникли проблемы в виде синего экрана смерти, возможно, друзья, мы имеем дело с проблемой контроллера виртуального жёсткого диска. Это мелкий недостаток способа создания новой машины на базе извлечённого из OVA файла диска. Когда мы импортируем машину вместе с её конфигурацией, в этой конфигурации предусматривается нужный тип контроллера. Когда же эту конфигурацию мы формируем по новой, мы можем указать не тот тип контроллера. А Windows даже в актуальной версии 10 пока ещё не умеет на ходу менять драйверы контроллера носителей. И вот реагирует экраном смерти.

Для скачанных с ресурсов Microsoft готовых виртуальных машин подойдёт установленный по умолчанию в VirtualBox тип контроллера SATA. Если мы скачаем виртуалку с Windows, в среде которой установлены драйверы под тип контроллера IDE, но подключим его через контроллер SATA, операционная система в большинстве случаев запустится. Но вот если мы на каком-нибудь сайте в Интернете скачаем машину, где Windows установлена на виртуальный диск, подключённый через контроллер SCSI, с большой долей вероятности получим BSOD. Или наоборот: BSOD будем лицезреть при подключении через SCSI виртуального диска с Windows, которая устанавливалась на виртуалке с типом контроллера SATA или IDE.

В таком случае просто нужно переподключить виртуальный диск через другой тип контроллера. Необходимо вернуться в раздел настроек машины «Носители», удалить диск из числа устройств текущего контроллера, затем добавить новый тип контроллера (SCSI, SATA или IDE).

И подключить диск уже через новый контроллер.

Error importing Hyper-V virtual machine via PowerShell "Import-VM : Unable to import virtual machine due to configuration errors. Please use Compare-VM to repair the virtual machine"Импорт виртуальных машин Hyper-V можно выполнять разными способами – как через графические инструменты типа Hyper-V Manager, так и с помощью PowerShell. Мастер импорта в оснастке Hyper-V Manager, взаимодействуя с администратором в интерактивном диалоге, позволяет разрешить ряд проблем, которые могут возникнуть в ходе импорта. Если же для импорта используется PowerShell, то здесь нюансы несовместимости исходной и целевой сред виртуализации могут выливаться в ошибки, останавливающие процедуру импорта. Так при попытке импорта виртуальной машины, подготовленной сторонней организацией мы можем столкнуться с ситуацией, когда PowerShell командлет Import-VM завершает свою работу с ошибкой вида:

Import-VM : Unable to import virtual machine due to configuration errors.  Please use Compare-VM to repair the virtual machine

Попробуем рассмотреть пример такого импорта с возникновением описанной ошибки и рассмотрим метод её исправления.

Распаковываем файлы экспортированной ранее виртуальной машины в то месторасположение, где она будет выполняться (в нашем примере это каталог C:ClusterStorageVolume1VM01). В консоли PowerShell переходим в этот каталог и выполняем команду импорта, указав файл конфигурации ВМ *.vmcx):

Set-Location -Path 'C:ClusterStorageVolume1VM01'
Import-VM -Path '.Virtual MachinesF5AEEF4B-C5D5-4B05-9780-9B3E8F8EA9AC.vmcx'

В результате мы можем получить выше обозначенную ошибку:

Hyper-V PowerShell error - Import-VM : Unable to import virtual machine due to configuration errors. Please use Compare-VM to repair the virtual machine

Если прочитать онлайн справку по командлету Compare-VM, на который нас отсылает текст ошибки, то там мы сможем найти пример решения подобной проблемы.

Выполним команду проверки совместимости файла конфигурации ВМ с настройками и возможностями текущего хоста виртуализации, и поместим результат проверки в некую переменную, например $report.

$report = Compare-VM -Path '.Virtual MachinesF5AEEF4B-C5D5-4B05-9780-9B3E8F8EA9AC.vmcx'
$report

Hyper-V PowerShell Compare-VM Summary

Как видим, в свойстве «Incompatibilities» есть набор объектов, каждый из которых представляет какую-либо проблему совместимости. В нашем случае найдено две таких проблемы. Посмотрим подробней:

$report.Incompatibilities | Format-List

Hyper-V PowerShell Compare-VM Incompatibilities

Как видим, ВМ не может быть импортирована на хост, так как на хосте нет
виртуального сетевого коммутатора Hyper-V с именем «New Virtual Switch«, которое фигурирует в конфигурации ВМ.

Можем более углублённо посмотреть текущую конфигурацию проблемных компонент через набор данных в свойстве «Source»:

$report.Incompatibilities.Source | Select Name,MacAddress,Connected | Format-Table

Hyper-V PowerShell Compare-VM Incompatibilities details

Простым решением этой конкретной проблемы является отключение сетевых адаптеров в конфигурации импортируемой ВМ от несуществующего виртуального коммутатора (после импорта нужные виртуальные коммутаторы Hyper-V можно будет снова назначить на виртуальных сетевых адаптерах ВМ).
У нас две несовместимости и мы обрабатываем каждую их них по порядковому индексу начиная с 0, оперируя при этом объектами конфигурации ВМ точно также, как для любой локальной ВМ на хосте.

$report.Incompatibilities[0].Source | Disconnect-VMNetworkAdapter
$report.Incompatibilities[1].Source | Disconnect-VMNetworkAdapter

Убедимся, что параметры конфигурации проблемных компонент изменились и хранятся в переменной $report:

$report.Incompatibilities.Source | Select Name,MacAddress,Connected | Format-Table

Fix Compare-VM Incompatibilities via Source objects

Теперь пробуем снова выполнить импорт ВМ, вызывая командлет импорта в специальном режиме с обработкой откорректированных данных о совместимости из переменной $report (при этом путь к конфигурации vmcx уже не указываем, так как он уже есть в данных $report):

Import-VM -CompatibilityReport $report

Hyper-V PowerShell success import of VM

Как видим, теперь импорт виртуальной машины завершился успешно.

При установке операционных систем на виртуальную машину обычно используются загрузочные образы ISO, но в интернете также можно встретить пакеты OVA, представляющие собой настроенные виртуальные ОС, особым образом подготовленные для использования на популярных гипервизорах. Формат OVA также используется при экспорте установленных на виртуальных машинах систем в файл архива для последующего переноса виртуальной ОС на другой компьютер или совместимый гипервизор.

К сожалению, подключение такой «законсервированной» виртуальной системы не всегда проходит гладко. В ряде случаев при выполнении операции импорта вы можете получить ошибку «Не удалось импортировать конфигурацию виртуальной машины». Причины неполадки могут быть разные, начиная от банального повреждения контейнера OVA и заканчивая несовместимыми параметрами конфигурации импорта.

Если файл OVA был скачан вами в интернете, скажем, на торрент-трекере, получите его контрольную сумму и сверьте ее с той, которая выложена на странице. Несовпадающий хэш будет означать, что файл, скорее всего, поврежден. А еще это будет означать, что импортировать такую систему не получится. Импортировать машину не удастся, если вы попытаетесь развернуть ее на раздел или носитель с файловой системой FAT32 при условии, что подключаемый контейнер весит 4 Гб или больше того.

Иное дело несовместимые параметры конфигурации импорта. Вполне возможно, что выложивший в интернет OVA-файл создавал его на более мощном, чем у вас, компьютере, выбрав слишком большой объем ОЗУ или количество ядер процессора, недопустимое при создании виртуальной машины на вашем ПК. Может быть и такое, что OVA-файл, созданный в одной версии VirtualBox, не подключается в другой версии, старой или новой. В первом случае можно попробовать изменить параметры импорта конфигураций вручную.

Импорт конфигураций

Также можно прибегнуть к более универсальному способу — извлечению из OVA-контейнера файла виртуального жесткого диска и создания на его основе новой WM.

Извлечение VMDK-файла и подключение его к WM

Первым делом вам нужно будет распаковать контейнер OVA. Для этих целей сгодится любой архиватор с поддержкой TAR, хотя бы тот же WinRAR. Откройте в архиваторе каталог с файлом OVA, кликните по нему ПКМ и выберите в меню «Показать содержимое архива».

WinRAR

Затем выделите содержащийся в архиве файл VMDK.

Файл VMDK

И извлеките его в удобное для вас расположение.

VMDK

Получив файл виртуального диска, создайте в VirtualBox новую машину, указав, как положено ее имя, разрядность и объем оперативной памяти. Маленькая деталь — в окне «Жесткий диск» нужно включить опцию «Не подключать виртуальный жесткий диск».

Жесткий диск

Далее заходим в настройки виртуальной машины, в разделе «Носители» жмем кнопку добавления виртуального диска.

Носители

И подключаем к текущему контроллеру ранее извлеченный файл VMDK.

К текущему контроллеру

Сохраняем настройки и запускаем виртуальную машину.

Сохраняем настройки

Как быть, если WM при запуске падает в BSOD

Есть вероятность, что запуск подключенной виртуальной машины завершится ошибкой с последующим ее вылетом в BSOD.

BSOD

Такое может быть, если тип контроллера в VirtualBox отличается от того, на котором виртуальный диск висел раньше. Например, он был подключен к SATA, а у вас стоит IDE или наоборот. Отсюда решение — необходимо переподключиться, добавив в разделе «Носители» новый тип контроллера SATA, SCSI или IDE и повесив на него виртуальную ОС.

SATA

Нерабочий контроллер удаляем.

Удаляем контроллер

Контроллер

На этот раз система должна загрузиться без ошибок.

Загрузка без ошибок

Загрузка…

Sometimes, Windows operating system may throw the VirtualBox – Error. This error comes along with the detailed error information “failed to import appliance result code: e_invalidarg (0x80070057)” or something like this. This error annoys many users. Here, MiniTool will talk about this error including its causes and fixes.

About Result Code: E_Invalidarg (0x80070057)

You may frequently encounter errors if you run VirtualBox on your Windows device. One of the most common errors is the result code: e_invalidarg (0x80070057). When you look through Windows-based forums or communities on the Internet, you will find that plenty of users ask favors for this issue.

For instance, a user from Reddit forum posts this error and wants to get some help from others. Here is the detailed information of his post.

Hello All, I get the following error: Failed to import appliance C:/Users/MyLaptop/Desktop/PenT/Lab Virtual Machines/kali-linux-2018.3-vbox-amd64.ova. Result Code: E_INVALIDARG (0x80070057)https://www.reddit.com/r/virtualbox/comments/bpzdck/failed_to_import_appliancee_invalidarg_0x80070057/

Why e_invalidarg (0x80070057) occurs to your computer? The next section will analyze the possible causes behind this issue. So, you can pay attention to the following content

Why Result Code: E_Invalidarg (0x80070057) Appears

It is vital to know the possible reasons for the error — e_invalidarg 0x80070057. If you just look at the error message, you will not find any clues. The potential causes are found according to the time that the error happens and other signs of the error.

Given to the fact that the e_invalidarg (0x80070057) error appears when Windows cannot access the storage drive or a standard hard disk or an SSD, we conclude that the leading reason for the error is inefficient free storage space on the hard drive.

The improper file system on your drive can also be the cause for the result code: e_invalidarg (0x80070057). To be specific, the FAT32 doesn’t support a file that is more than 4GB. In this case, you need to convert the file system of your drive from FAT32 to NTFS.

If there are two or three partitions on the hard drive, the error could happen due to one of corrupted partitions on the drive. The drive or partition can get corrupted over time. Besides, the bit rot will also occur after a long time. For this, you can utilize some tools to check the health and performance of your drive.

What’s more, virus and inherent problems on the installed software can also trigger the result code: e_invalidarg (0x80070057). Except the above causes, other elements can also result in the e_invalidarg (0x80070057) error.

All the above causes are possible for the error, but there’s no exact method to know the actual reason for the issue. So, you can try the following methods one by one until you fix the issue successfully.

Top 7 Solutions to Result Code: E_Invalidarg (0x80070057)

  1. Obtain enough disk storage space
  2. Modify the file system of your drive
  3. Check and change time and date on your PC
  4. Scan for virus
  5. Find and fix corrupted drive
  6. Perform system restore
  7. Perform Windows clean install

Fix 1: Get Enough Disk Storage Space

If you don’t have enough storage space on your drive, you can get this error when carrying out operations on your PC that runs VirtualBox. In fact, issues like 0x80300024 error and runtime error also happen due to insufficient free disk space.

To get more disk space for your drive, you can utilize MiniTool Partition Wizard. The resize/move partition and extend partition features enable you to obtain more space for your drive. Of course, you can also find what is taking up your space with Space Analyzer that this program offers and then delete the corresponding items.

Download and install MiniTool Partition Wizard by clicking the button below, and then begin resizing and extending your storage space. Here, you just need the MiniTool Partition Wizard Free Edition. If you would like to recover missing data or lost partition, you need to pick its Pro Ultimate Edition instead.

Free Download Buy Now

Steps for resizing and moving partition

Before starting to resize/move your partition, you need to check the location of partition on the hard drive. To resize a partition, you have to ensure that there’s unallocated or free space next to the partition that you are going to resize. If there isn’t, you utilize the extend partition feature instead.

Step 1: Right click the partition to extend and choose the Move/Resize feature from the pop-up menu.

choose move or resize feature

Step 2: In the next window, move the button to resize your partition. Alternatively, you can also enter the exact number behind the Partition Size to resize partition. After that, click OK to save the change.

Tip: You should move the button rightward. If you move leftward, you will shrink the size of your partition.

resize your partition

Step 3: After backing to the main interface, you will view the size and layout of target partition. However, it won’t take effect until you click on Apply to carry out the operation.

click apply to execute the operation

Steps for extending partition

Both moving/resizing and extending partition can enlarge your partition. However, extending partition is suggested under the following 2 cases.

  • You would like to extend a partition to non-contiguous unallocated or free space.
  • There is no unallocated or free space on the hard disk.

Step 1: Right click the target partition, and then select the Extend feature from the elevated menu.

choose the extend feature

Step 2: Open the drop-down menu behind Take Free Space from to pick a partition or unallocated space that you can take space from. Then, you can move the sliding handle leftwards or rightwards to determine the space volume that you would like to take from the target partition or unallocated space.

Step 3: After that, click OK and then click on Apply on the main interface to execute the operation.

decide the space you would like to take from and execute the operation

Fix 2: Change the File System of Your Drive

The incorrect file system of the drive can also lead to the virtualbox e_invalidarg error. Hence, one of solutions to the error is to change the file system of your drive. You can do that during the process of formatting your partition, but you may suffer from data loss due to this operation.

What does formatting a hard drive do? You can get the detailed information from this post.

If you use MiniTool Partition Wizard, things are different. It enables you convert FAT32 to NTFS without losing data. How to do? You can follow the steps below after downloading and installing this tool.

Free Download

Step 1: Right click the partition that you want to change the file system and choose Convert FAT to NTFS option.

click on convert FAT to NTFS

Step 2: In the next window, click on the Start button. Then, MiniTool Partition will start converting file system automatically.

click on the start button

If you encounter file system error — 2147219196, you can fix it by referring to this guide: 7 Fixes to File System Error – 2147219196 [Fix 3 Works Well]

Fix 3: Check and Modify Time and Date

The wrong date/time combination sometimes will sparkle the e_invalidarg (0x80070057) error. Though this possibility is small, you’d better try to check the time and data on your computer.

For instance, the battery on your motherboard that is used to keep the BIOS working is low on power or cannot work properly, which can make your computer date/time reset to its default value each time you turn off your PC.

There’s no doubt that the default time is a value not matched with the current date/time. And this will lead to issues like result code: e_invalidarg (0x80070057) for you. How to check and change time and date? This post will show you the details.

If there are any viruses or malware on your PC, e_invalidarg (0x80070057) may also happen to you. Here comes the need of running an anti-virus program on your computer. If you have installed one, just run it to scan for virus and other malicious software on your device. If you don’t have, you can choose one piece of antivirus software to do that job.

If you want to make sure that your system is clean, you can use these methods to clean up your computer.

Fix 5: Find and Fix Corrupted Drive

When the drive gets corrupted or damaged, you will also encounter various of issues such as 0x80070017, xlive.dll missing error, SFC Scannow failed to fix error, result code: e_invalidarg (0x80070057), and so forth.

Therefore, it is necessary to check the heath of you hard drive. How to do? Well, MiniTool Partition Wizard helps again. It can scan for bad sectors on your hard drive.

Free Download

If you find any, you are able to fix it. Here’s a full guide for you to check your hard drive and fix the error.

If your hard drive cannot work completely, you can consider replacing it with a new one.

Fix 6: Perform System Restore

The Windows built-in system restore feature is very helpful when you encounter certain types of crashes and some computer problems, because it can help you restore your computer to a previous state. In this way, your PC will run properly again. This is a quick fix.

Top recommendation: Why Does My Computer Keeps Crashing? Here Are Answers and Fixes

However, you will lose the changes that you have made on your computer such as, the newly installed applications, newly created folders, etc. So, you need to back up your important data before performing the system restore. After that, you can follow the steps in this post to restore computer to earlier data in Windows 10/8/7.

Fix 7: Clean Install Windows OS

If you cannot fix the result code: e_invalidarg (0x80070057) error after trying methods above, try performing a clean install of Windows. Similarly, you’d better back up your important data on the hard drive before that.

Then, you can use these detailed steps and instructions to reinstall Windows operating system.

I fixed the result code: e_invalidarg (0x80070057) error with methods offered by this post. Are you still bothered by this issue? You can try the methods in the post to fix it. Click to Tweet

Conclusion

When you receive the error message “failed to import appliance result code: e_invalidarg (0x80070057)” on your computer, you can use the top 7 methods in this post to fix it. It is rather easy to operate as the detailed steps have been offered to you directly or related links.

If you have any questions about MiniTool software, please send us an email via [email protected]. You can also share your thoughts on the topic — virtualbox e_invalidarg, e_invalidarg 0x80070057 in the below comment area.

Sometimes, Windows operating system may throw the VirtualBox – Error. This error comes along with the detailed error information “failed to import appliance result code: e_invalidarg (0x80070057)” or something like this. This error annoys many users. Here, MiniTool will talk about this error including its causes and fixes.

About Result Code: E_Invalidarg (0x80070057)

You may frequently encounter errors if you run VirtualBox on your Windows device. One of the most common errors is the result code: e_invalidarg (0x80070057). When you look through Windows-based forums or communities on the Internet, you will find that plenty of users ask favors for this issue.

For instance, a user from Reddit forum posts this error and wants to get some help from others. Here is the detailed information of his post.

Hello All, I get the following error: Failed to import appliance C:/Users/MyLaptop/Desktop/PenT/Lab Virtual Machines/kali-linux-2018.3-vbox-amd64.ova. Result Code: E_INVALIDARG (0x80070057)https://www.reddit.com/r/virtualbox/comments/bpzdck/failed_to_import_appliancee_invalidarg_0x80070057/

Why e_invalidarg (0x80070057) occurs to your computer? The next section will analyze the possible causes behind this issue. So, you can pay attention to the following content

Why Result Code: E_Invalidarg (0x80070057) Appears

It is vital to know the possible reasons for the error — e_invalidarg 0x80070057. If you just look at the error message, you will not find any clues. The potential causes are found according to the time that the error happens and other signs of the error.

Given to the fact that the e_invalidarg (0x80070057) error appears when Windows cannot access the storage drive or a standard hard disk or an SSD, we conclude that the leading reason for the error is inefficient free storage space on the hard drive.

The improper file system on your drive can also be the cause for the result code: e_invalidarg (0x80070057). To be specific, the FAT32 doesn’t support a file that is more than 4GB. In this case, you need to convert the file system of your drive from FAT32 to NTFS.

If there are two or three partitions on the hard drive, the error could happen due to one of corrupted partitions on the drive. The drive or partition can get corrupted over time. Besides, the bit rot will also occur after a long time. For this, you can utilize some tools to check the health and performance of your drive.

What’s more, virus and inherent problems on the installed software can also trigger the result code: e_invalidarg (0x80070057). Except the above causes, other elements can also result in the e_invalidarg (0x80070057) error.

All the above causes are possible for the error, but there’s no exact method to know the actual reason for the issue. So, you can try the following methods one by one until you fix the issue successfully.

Top 7 Solutions to Result Code: E_Invalidarg (0x80070057)

  1. Obtain enough disk storage space
  2. Modify the file system of your drive
  3. Check and change time and date on your PC
  4. Scan for virus
  5. Find and fix corrupted drive
  6. Perform system restore
  7. Perform Windows clean install

Fix 1: Get Enough Disk Storage Space

If you don’t have enough storage space on your drive, you can get this error when carrying out operations on your PC that runs VirtualBox. In fact, issues like 0x80300024 error and runtime error also happen due to insufficient free disk space.

To get more disk space for your drive, you can utilize MiniTool Partition Wizard. The resize/move partition and extend partition features enable you to obtain more space for your drive. Of course, you can also find what is taking up your space with Space Analyzer that this program offers and then delete the corresponding items.

Download and install MiniTool Partition Wizard by clicking the button below, and then begin resizing and extending your storage space. Here, you just need the MiniTool Partition Wizard Free Edition. If you would like to recover missing data or lost partition, you need to pick its Pro Ultimate Edition instead.

Free Download Buy Now

Steps for resizing and moving partition

Before starting to resize/move your partition, you need to check the location of partition on the hard drive. To resize a partition, you have to ensure that there’s unallocated or free space next to the partition that you are going to resize. If there isn’t, you utilize the extend partition feature instead.

Step 1: Right click the partition to extend and choose the Move/Resize feature from the pop-up menu.

choose move or resize feature

Step 2: In the next window, move the button to resize your partition. Alternatively, you can also enter the exact number behind the Partition Size to resize partition. After that, click OK to save the change.

Tip: You should move the button rightward. If you move leftward, you will shrink the size of your partition.

resize your partition

Step 3: After backing to the main interface, you will view the size and layout of target partition. However, it won’t take effect until you click on Apply to carry out the operation.

click apply to execute the operation

Steps for extending partition

Both moving/resizing and extending partition can enlarge your partition. However, extending partition is suggested under the following 2 cases.

  • You would like to extend a partition to non-contiguous unallocated or free space.
  • There is no unallocated or free space on the hard disk.

Step 1: Right click the target partition, and then select the Extend feature from the elevated menu.

choose the extend feature

Step 2: Open the drop-down menu behind Take Free Space from to pick a partition or unallocated space that you can take space from. Then, you can move the sliding handle leftwards or rightwards to determine the space volume that you would like to take from the target partition or unallocated space.

Step 3: After that, click OK and then click on Apply on the main interface to execute the operation.

decide the space you would like to take from and execute the operation

Fix 2: Change the File System of Your Drive

The incorrect file system of the drive can also lead to the virtualbox e_invalidarg error. Hence, one of solutions to the error is to change the file system of your drive. You can do that during the process of formatting your partition, but you may suffer from data loss due to this operation.

What does formatting a hard drive do? You can get the detailed information from this post.

If you use MiniTool Partition Wizard, things are different. It enables you convert FAT32 to NTFS without losing data. How to do? You can follow the steps below after downloading and installing this tool.

Free Download

Step 1: Right click the partition that you want to change the file system and choose Convert FAT to NTFS option.

click on convert FAT to NTFS

Step 2: In the next window, click on the Start button. Then, MiniTool Partition will start converting file system automatically.

click on the start button

If you encounter file system error — 2147219196, you can fix it by referring to this guide: 7 Fixes to File System Error – 2147219196 [Fix 3 Works Well]

Fix 3: Check and Modify Time and Date

The wrong date/time combination sometimes will sparkle the e_invalidarg (0x80070057) error. Though this possibility is small, you’d better try to check the time and data on your computer.

For instance, the battery on your motherboard that is used to keep the BIOS working is low on power or cannot work properly, which can make your computer date/time reset to its default value each time you turn off your PC.

There’s no doubt that the default time is a value not matched with the current date/time. And this will lead to issues like result code: e_invalidarg (0x80070057) for you. How to check and change time and date? This post will show you the details.

If there are any viruses or malware on your PC, e_invalidarg (0x80070057) may also happen to you. Here comes the need of running an anti-virus program on your computer. If you have installed one, just run it to scan for virus and other malicious software on your device. If you don’t have, you can choose one piece of antivirus software to do that job.

If you want to make sure that your system is clean, you can use these methods to clean up your computer.

Fix 5: Find and Fix Corrupted Drive

When the drive gets corrupted or damaged, you will also encounter various of issues such as 0x80070017, xlive.dll missing error, SFC Scannow failed to fix error, result code: e_invalidarg (0x80070057), and so forth.

Therefore, it is necessary to check the heath of you hard drive. How to do? Well, MiniTool Partition Wizard helps again. It can scan for bad sectors on your hard drive.

Free Download

If you find any, you are able to fix it. Here’s a full guide for you to check your hard drive and fix the error.

If your hard drive cannot work completely, you can consider replacing it with a new one.

Fix 6: Perform System Restore

The Windows built-in system restore feature is very helpful when you encounter certain types of crashes and some computer problems, because it can help you restore your computer to a previous state. In this way, your PC will run properly again. This is a quick fix.

Top recommendation: Why Does My Computer Keeps Crashing? Here Are Answers and Fixes

However, you will lose the changes that you have made on your computer such as, the newly installed applications, newly created folders, etc. So, you need to back up your important data before performing the system restore. After that, you can follow the steps in this post to restore computer to earlier data in Windows 10/8/7.

Fix 7: Clean Install Windows OS

If you cannot fix the result code: e_invalidarg (0x80070057) error after trying methods above, try performing a clean install of Windows. Similarly, you’d better back up your important data on the hard drive before that.

Then, you can use these detailed steps and instructions to reinstall Windows operating system.

I fixed the result code: e_invalidarg (0x80070057) error with methods offered by this post. Are you still bothered by this issue? You can try the methods in the post to fix it. Click to Tweet

Conclusion

When you receive the error message “failed to import appliance result code: e_invalidarg (0x80070057)” on your computer, you can use the top 7 methods in this post to fix it. It is rather easy to operate as the detailed steps have been offered to you directly or related links.

If you have any questions about MiniTool software, please send us an email via [email protected]. You can also share your thoughts on the topic — virtualbox e_invalidarg, e_invalidarg 0x80070057 in the below comment area.

  • Remove From My Forums

none

ошибка при импорте виртуальной машины

  • Вопрос

  • при импорте виртуальной машины windows server 2012 standart на Hyper-v windows 8.1 возникла ошибка : 

    «Были зарегистрированы следующие ошибки сохраненных состояний

    В виртуальной машине …. используются возможности процессора не поддерживаемые физическим компьютером

    Что бы разрешить миграцию этой виртуальной машины на физические компьютеры с другими процессами ограничите возможности процессора в параметрах виртуальной машины»…. пробовал менять совместимость
    процессора выходит такое же окно. Есть ли какие то рычаги для устранения этой ошибки?

Ответы

  • В файле конфигурации ВМ (xml) найдите следующий раздел и измените False на True. Попробуйте импорт заново.
    
    <processors>
    ..
       <features>
       <limit type="bool">True</limit>
       </features>
    ..
    </processors>

    Если нет, то Compare-VM

    $issues= Compare-VM -Path "C:VMvmconfig.xml"
    $issues. Incompatibilities|ft -wrap

    и вывод сюда , либо исправьте все замечания и потом import


    Roman Levchenko
    MVP, MCSE, MCSA, MCITP, MCTS
    VMware vExpert, VCP6-DCV
    :: rlevchenko.com ::

    • Предложено в качестве ответа

      12 октября 2016 г. 7:55

    • Помечено в качестве ответа
      Petko KrushevMicrosoft contingent staff, Moderator
      4 ноября 2016 г. 8:10
  • конфигурационные файлы менял, но всё равно выходит данная ошибка….как то просекает что другой процессор.
    На счёт второго примера я не до конца понял…

    Запустить PowerShell, вставить строки выше , предварительно изменив путь до файла конфигурации вашей ВМ и посмотреть отчет по несоответствиям.


    Roman Levchenko
    MVP, MCSE, MCSA, MCITP, MCTS
    VMware vExpert, VCP6-DCV
    :: rlevchenko.com ::

    • Изменено
      R.LevchenkoMVP
      18 октября 2016 г. 12:13
    • Помечено в качестве ответа
      Petko KrushevMicrosoft contingent staff, Moderator
      4 ноября 2016 г. 8:10
  • пишет что не является внутренней или внешней командой(

    Проверьте написание. Всё работает. При необходимости подгрузите модуль Hyper-V

    PS C:Windowssystem32> $ISSUE=Compare-VM -Path 'C:VMs1C01Virtual MachinesB4A83641-361F-43FF-B051-58B9F9565
    359.vmcx'
    PS C:Windowssystem32> $issue.Incompatibilities|ft -Wrap
    
    Message                                  MessageId Source
    -------                                  --------- ------
    Could not find Ethernet switch 'Ext_VM'.     33012 VMNetworkAdapter (Name = 'Network Adapter', VMName = '1C01') [VMId
                                                       = 'b4a83641-361f-43ff-b051-58b9f9565359']
    Could not find Ethernet switch 'Ext_VM'.     33012 VMNetworkAdapter (Name = 'Network Adapter', VMName = '1C01') [VMId
                                                       = 'b4a83641-361f-43ff-b051-58b9f9565359']

    Roman Levchenko
    MVP, MCSE, MCSA, MCITP, MCTS
    VMware vExpert, VCP6-DCV
    :: rlevchenko.com ::

При импорте виртуальной машины в Hyper-V, если вы получаете Hyper-V, возникла ошибка при загрузке ошибки конфигурации виртуальной машины, вот как вы можете исправить это, используя эти советы и рекомендации. Эта ошибка в основном возникает, когда вы импортируете ту же виртуальную машину, которая уже есть на вашем компьютере.

Во всем сообщении об ошибке написано примерно следующее:

Hyper-V обнаружил ошибку при загрузке конфигурации виртуальной машины из [a-location]

Не удалось создать виртуальную машину.

Операция завершилась неудачно, поскольку виртуальная машина с таким идентификатором уже существует. Выберите новый идентификатор и попробуйте снова.

Hyper-V позволяет экспортировать и импортировать виртуальные машины на ваш компьютер. Импортировать виртуальную машину на Hyper-V не так уж и сложно. Однако проблема начинается, когда вы пытаетесь импортировать ту же виртуальную машину на свой компьютер, когда у вас уже есть исходная. Другими словами, эта ошибка возникает, когда вы выбираете Зарегистрируйте виртуальную машину на месте или Восстановить виртуальную машину вариант при импорте виртуальной машины.

Каждый раз, когда вы создаете виртуальную машину, Hyper-V генерирует уникальный идентификатор для представления виртуальной машины, называемый идентификатор. Когда вы экспортируете виртуальную машину, она несет этот идентификатор. Точно так же, когда вы импортируете виртуальную машину, идентификатор также устанавливается на ваш компьютер. Если ваш компьютер обнаруживает тот же идентификатор при импорте, он отображает сообщение об ошибке, подобное этому.

Чтобы исправить ошибку Hyper-V при загрузке ошибки конфигурации виртуальной машины, выполните следующие действия:

  1. Удалить старую виртуальную машину
  2. Создайте новый уникальный идентификатор

Чтобы узнать больше об этих шагах, продолжайте читать.

1]Удалить старую виртуальную машину

Если вы удалите исходную виртуальную машину, уникальный идентификатор будет удален и с вашего компьютера. Другими словами, он создаст место для установки старого идентификатора на ваш компьютер. Чтобы удалить виртуальную машину Hyper-V, выполните следующие действия:

  • Откройте диспетчер Hyper-V на своем компьютере.
  • Щелкните виртуальную машину правой кнопкой мыши.
  • Выберите Удалить вариант из контекстного меню.
  • Нажать на Удалить в окне подтверждения.

Он удалил все файлы выбранной вами виртуальной машины за считанные секунды. После этого вы сможете безошибочно импортировать виртуальную машину.

2]Создайте новый уникальный идентификатор

Иногда вы можете не захотеть удалять виртуальную машину, чтобы импортировать другую. В такой ситуации вы можете создать новый уникальный идентификатор или идентификатор. Это можно сделать при импорте виртуальной машины.

Чтобы создать новый уникальный идентификатор для виртуальной машины, выполните следующие действия:

  • Откройте диспетчер Hyper-V на своем компьютере.
  • Щелкните значок Импортировать виртуальную машину вариант.
  • Выберите папку виртуальной машины, щелкнув значок Просматривать кнопка.
  • Выбирать Скопируйте виртуальную машину (создайте новый уникальный идентификатор) вариант в Выберите тип импорта таб.
  • Щелкните значок Следующий кнопку и запустите вашу виртуальную машину.

Выбирая эту опцию, вы создаете новый уникальный идентификатор для своей виртуальной машины. На импортированной виртуальной машине будут сохранены все старые настройки, кроме идентификатора.

Как импортировать виртуальную машину в Hyper-V?

Чтобы импортировать виртуальную машину в Hyper-V, вам необходимо использовать Импортировать виртуальную машину вариант. После этого вы можете выбрать экспортированную папку вашей виртуальной машины, выбрать Скопируйте виртуальную машину вариант и начать установку. Чтобы узнать больше об импорте виртуальной машины в Hyper-V, вы можете прочитать это подробное руководство.

[I wrote an article on this topic. It is not published yet. Please add the link here. added the underline to highlight the anchor text.]

Где хранятся виртуальные машины Hyper V?

По умолчанию Windows хранит все файлы Hyper-V в папке C: ProgramData Microsoft Windows Hyper-V. Однако вы можете найти все виртуальные диски в C: Users Public Documents Hyper-V. Независимо от того, используете ли вы Windows 10 или Windows 11, расположение одинаково.

Это все! Надеюсь, эта статья помогла вам решить проблему импорта Hyper-V.

Читайте: Как установить Windows 11 с помощью Hyper-V в Windows 10.

.

  • Империя пазлов ошибка подключения сегодня
  • Император ошибка 404 манга
  • Имо ошибка отправки смс
  • Иммуноблот на вич положительный может ли быть ошибка
  • Иммунитет неприкосновенности лексическая ошибка