The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
Upgrading a VMware ESXi host fails with the error: Cannot run upgrade script on host (2007163)
- VMware vCenter Update Manager fails to upgrade the ESXi host at 92%.
- Cannot upgrade from ESXi 5.0 to ESXi 5.1/5.5 using the ISO image.
- Cannot upgrade from ESXi 5.1 to ESXi 5.5 using the ISO image.
- Cannot upgrade from ESXi 4.0 Update 1 or Update 2 to ESXi 5.0.
- Upgrading from ESXi 4.0 Update 1 or Update 2 to ESXi 5.0 using Update Manager fails.
- You see the error:
Cannot run upgrade script on host
- In the C:\Documents and Settings\All Users\Application Data\VMware\Update Manager or C:\Users\All Users\VMware\VMware Update Manager\Logs\vmware-vum-server-log4cpp.log file, you see an entry similar to:
Remediation failed due to non mode failure
- In the /var/log/vua.log file, you see an entry similar to:
OSError: [Errno 39] Directory not empty: /bootbank/state.XXXXXXX (where XXXXXXX is a number)
This issue occurs when the /bootbank/state.XXXXXXXX directory is not empty.
To resolve this issue, ensure that the /bootbank/state.XXXXXXXX directory is empty.
To ensure the /bootbank/state.XXXXXXXX directory is empty:
- Log in to the ESXi Management console.
- Run this command:
- Using the grep command, find state.XXXXXXX and its corresponding directory within the vua.log file (replace XXXXXXX with the number indicated in the error)
grep state.31110473 vua.log
- Run these commands:
Note: The preceding commands may also be required on /altbootbank because this directory can also hold state.XXXXXXX.
- Run this command to change directory to state.XXXXXXX directory indicated in the /var/log/vua.log file:
- Run this command:
You see an output similar to:
-rwx------ 1 root root 18297 Jan 10 2011 local.tgz
- Note the name of the file within the state.XXXXXXX directory. For example, local.tgz.
- Run this command to move the files up one directory level:
mv * ../
- In vCenter Server, remediate the host.
Select the ESXi host.
Click the Update Manager tab.
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.