Roll back incorrect host updates
search cancel

Roll back incorrect host updates

book

Article ID: 418630

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • Administrators may encounter a scenario where incorrect Vendor-Specific (OEM) updates are applied to an ESXi host (e.g., Cisco Custom Image VIBs installed on Lenovo hardware). This can lead to driver instability, boot failures, or compliance warnings.

  • This article addresses two states:

    Installed: The wrong updates have been applied, and the host has rebooted.
    Staged: The wrong updates have been uploaded (staged) to the host but not yet applied/rebooted.

Environment

  • VMware vSphere 7.x / 8.x
  • VMware ESXi
  • vSphere Lifecycle Manager (vLCM)

Cause

This issue is typically caused by selecting the incorrect Image, Baseline, or Depot file during a manual upgrade or vLCM remediation task.

Resolution

Scenario 1: Reverting Installed Updates (Host A)


If the host has already been remediated and rebooted with the incorrect VIBs, the most reliable method to return to a stable state is utilizing the ESXi Recovery Mode.

Procedure:

  1. Connect to the console of the ESXi host (via IPMI, ILO, IMM, or physical monitor).

  2. Reboot the host.

  3. Monitor the boot sequence. When the hypervisor progress bar appears, look for the prompt "Recovery Mode" in the bottom right corner.

  4. If Recovery Mode is available:

    • Press Shift+R.

    • The console will display the currently installed build and the previous build (rollback target).

    • Press Y to confirm the rollback.

    • The host will boot into the previous hypervisor version.

  5. If Recovery Mode is NOT available:

    • If the "Recovery Mode" prompt does not appear, or if the system reports that no previous version is available, the altbootbank partition is likely empty or corrupted.

    • Action Required: You must reinstall ESXi to restore functionality.

    • Reinstall Steps:

      1. Mount the correct vendor-specific ISO (e.g., Lenovo Custom Image) to the host via virtual media.

      2. Boot from the ISO.

      3. During the installation workflow, select the boot drive containing the existing installation.

      4. CRITICAL: When prompted, select "Install ESXi, preserve VMFS datastore". This ensures virtual machine data is retained while the hypervisor is overwritten.

      5. Complete the installation and re-register virtual machines if necessary.

 

Scenario 2: Clearing Staged Updates (Host B)

If the updates are "Staged" but not installed, you must clear the bootbank buffer or scratch location to prevent the host from installing them on the next reboot.

Method A: vSphere Lifecycle Manager (Images) If managing via vLCM Images, you cannot explicitly "un-stage." You must overwrite the staged content.

  1. In vCenter, navigate to the Cluster > Updates > Image.

  2. Select the correct Image (e.g., the valid Lenovo image or standard ESXi image).

  3. Click Stage All.

  4. vLCM will overwrite the incorrect staged files with the correct files.


Method B: Manual CLI Cleanup (ESXCLI/Baselines)
If the files were staged manually or via Update Manager baselines, they reside in the scratch partition.

  1. Connect to the host via SSH as root.

  2. Place the host in Maintenance Mode:

    esxcli system maintenanceMode set --enable true

     

  3. Locate the scratch partition path:

    esxcli system scratch get

    (Note the output path, e.g., /vmfs/volumes/<UUID>/scratch)

  4. Navigate to the downloads directory within the scratch partition:

    cd /vmfs/volumes/<UUID>/scratch/downloads
    
  5. Verify the incorrect files are present:

    ls -l
    
  6. Delete the contents of the downloads directory:

    rm -rf *
    

    Warning: Ensure you are in the correct directory before executing rm -rf.

  7. Exit Maintenance Mode:

    esxcli system maintenanceMode set --enable false

Additional Information