ESXi – Cannot run upgrade script on host

By | October 11, 2013


I’ve been upgrading all the various components in my lab from vSphere 5.1 to 5.5.  Everything had been going smoothly, I upgraded the vCenter Appliance to 5.5 without issue.  The first problem I’ve come across, was trying to perform an ESXi 5.1 host upgrade.  They are both virtual but this isn’t the root cause.  Funnily enough, the first host upgraded to 5.5 as expected via Update Manager, the second host failed with the following error in vCenter:

UpgradevCenter didn’t provide any more detail.  Therefore, I found the following articles which provided further information and context around this particular issue, and pointed me in the right direction.

ESXi 5.1 Upgrade fails

VMware KB

In order to fix my issue (your mileage may vary), I ran the following commands on ESXi via SSH (Putty).

  • cd /bootbank
  • cd /altbootbank
  • ls -l
  • cd state.xxxxx
  • ls -l
  • mv local.tgz ../

After this, I proceeded with the remediation of the host from Update Manager, and the upgrade to ESXi 5.5 was successful.

3 thoughts on “ESXi – Cannot run upgrade script on host

  1. Francis

    you saved me! I had no problem on 4 hosts out of 5 (upgrade from 5.0u3 to 6.0u2). I had to do your trick for the 5th. Thank you!

  2. Ted

    This worked great for 5.5 to 6.0. The only difference was that I could not see the state.xxxxx file when I first tried to upgrade. The resolution was rebooting the host and then run the above procedure.


Leave a Reply