Install-VMHostPatch fails with Invalid Patch Archive error


The Install-VMHostPatch command fails with the Invalid patch archive error:

[vSphere PowerCLI]> Install-VMHostPatch -vmhost 10.10.10.1 -LocalPath “C:\ESX\Update\ESX410-201104001.zip” -hostusername root -hostpassword password

Install-VMHostPatch        Invalid patch archive: ‘C:\ESX\Update\ESX410-201104001.zip’.
At line:1 char:20
+ Install-VMHostPatch <<<<  -vmhost 192.168.73.27 -LocalPath “C:\ESX\Update\ESX410-201104001.zip” -hostusername root -hostpassword password
+ CategoryInfo          : InvalidArgument: (C:\ESX\Update…0-201104001.zip:String) [Install-VMHostPatch], VimException
+ FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_TryValidate UpdateLocation40_InvalidArchive,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.InstallVMHostPatch

As per VMware, neither PowerCLI 4.1 (see article) nor PowerCLI 5.0 (see article) can install updates from local storage:

Install-VMHostPatch

  • The LocalPath parameter set of Install-VMHostPatch does not work.
  • Install-VMHostPatch cannot install patches on diskless ESXi servers.
  • Install-VMHostPatch cannot install patches on ESX 3.5.
  • Install-VMHostPatch cannot apply VIB patches.
    Workaround: Use metadata.zip patches.

The workaround is to use the vihostupdate.pl Perl script

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl –server 10.10.10.1 –username root –password password –install –bundle “C:\ESX\Update\ESX410-201204001.zip”
Please wait patch installation is in progress …

Advertisements

2 Responses to Install-VMHostPatch fails with Invalid Patch Archive error

  1. […] some infos to understand the command : -LocalPath (local path of the Client, does not work) -HostPath (local path of the ESXi Host, need to upload the extracted folder first) -WebPath […]

  2. […] Install-VMHostPatch fails with Invalid Patch Archive error … – Sep 22, 2012 · The Install-VMHostPatch command fails with the Invalid patch archive error: [vSphere PowerCLI]> Install-VMHostPatch -vmhost 10.10.10.1 -LocalPath …… […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: