Upgrade ESXi 4.1 to 5.x fails with error Downloading metadata failed.

I am trying to upgrade an ESXi 4.1 host to version 5.1 or 5.5. I tried updating it with PowerCLI and esxupdate. Below are the errors I am getting.

 esxupdate --bundle /vmfs/volumes/datastore1/ESXi-5.5.0-1331820-standard.zip update
error: Failed acquiring information for 'metadata-1284675570':
error: file:///var/tmp/cache/metadata-1284675570/ESXi/Packages.gz: File not found for validation
Encountered error MetadataFormatError:
The error data is:
   Filename    - None
   Message     - Failed scanning package data: Downloading metadata failed.
   Errno       - 5
   Description - The format of the metadata is invalid.

PowerCLI C:\> Get-VMHost | Install-VMHostPatch -HostPath /vmfs/volumes/datastore1/VMware-ESXi-5.1.0-799733-depot/vmw-ESXi-5.1.0-metadata.zip
Install-VMHostPatch : 9/26/2013 2:14:30 PM    Install-VMHostPatch        The following error occured while updating host '': Failed scannin
g package data: Downloading metadata failed.
At line:1 char:33
+ Get-VMHost | Install-VMHostPatch <<<<  -HostPath /vmfs/volumes/datastore1/VMware-ESXi-5.1.0-799733-depot/vmw-ESXi-5.1.0-metadata.zip
    + CategoryInfo          : InvalidArgument: (:) [Install-VMHostPatch], VimException
    + FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_InstallVMHostPatch40_InstallError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.InstallVMHostPatch

Why is this failing? Am I doing something wrong?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
What you are trying to do from ESXi 4.1 to 5.1 is not supported, and does not work. BOOT server from CDROM and upgrade.

You cannot upgrade ESXi 4.1 to 5.1 using the depot bundle at the console, the supported method of upgrade is using the ISO CDROM, - Interactive upgrade from CD, DVD, or USB drive.

see here


The same is true from ESXi 4.1 to ESXi 5.5 is not supported, and does not work, BOOT server from CCROM and upgrade

see here also


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.