Import-vApp

This post was originally published on this site

Hi

We backup VMs with PS script.

When I shall try to restore a VM in Powershell with Import-vApp I just get athis error, what is the problem?

 

PS C:Usersa-serveradmin1> $myCluster = Get-Cluster -Name “Shared Cluster”

PS C:Usersa-serveradmin1> $vmHost = Get-VMHost -Name “na-vmware-019.comp.local”

PS C:Usersa-serveradmin1> Import-vApp -Source “D:DEMO-BACKUP_oldBackup Test MachineBackup Test Machine.OVF” -VMHost $vmHost -Location $myCluster -Name “Backup Test Machine”

Import-vApp : 10/28/2020 6:09:52 AM     Import-VApp             The OVF descriptor does not match the hash from

the manifest.

At line:1 char:1

+ Import-vApp -Source “D:DEMO-BACKUP_oldBackup Test MachineBackup Te …

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Import-VApp], ViError

    + FullyQualifiedErrorId : ViCore_VappServiceImpl_ImportVApp_DescriptorHashManifestMistmatch,V

   Mware.VimAutomation.ViCore.Cmdlets.Commands.ImportVApp

 

 

PS C:Usersa-serveradmin1>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.