"Recreation of the VIB failed due to checksum mismatch" error while converting a cluster from baseline to image
search cancel

"Recreation of the VIB failed due to checksum mismatch" error while converting a cluster from baseline to image

book

Article ID: 419651

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • While converting the baseline to image an error observed "Extraction of image from <host_fqdn> failed.
    Recreation of the VIB NVD_bootbank_NVD-VMware_ESXi_8.0.0_Driver_535.261.04-10EM.800.1.0.20613240 failed due to checksum mismatch. VIB may have been created using older tools. Try a different host or update the component that contains this VIB."

  • Execution of the vcfbaselineCLustertransitionscript on a cluster fails with the following error on host:
    Could not stage image profile '(Updated) VMware Lifecycle Manager Generated Image': Failed to create ramdisk vibdownload: [Errno 17] File exists: '/tmp/vibdownload. 

Environment

  • vCenter Server 8.x
  • ESXi 8.x
  • SDDC Manager 5.2.x

Cause

  • The issue occurs due to checksum mismatch between the component installed on the ESXi host and image from the depot.
  • During the depot extraction, the lifecycle manager tries to validate the components and calculates the checksum of the file to ensure integrity. However, due to the mismatch in checksum value, the extraction fails causing the Image conversion task to fail.

Sample log events: /var/run/log/lifecycle.log

YYYY-MM-DDTHH:MM:SS: In(14) lifecycle[45367979] HostImage:940 Attempting to download VIB INT_bootbank_i40en_2.5.11.0-1OEM.700.1.0.15843807
YYYY-MM-DDTHH:MM:SS: In(14) lifecycle[45367979] Downloader:470 Downloading http://v-vcs004.directory.intra:9084/vum/repository/hostupdate/vmw/vib20/i40en/INT_bootbank_i40en_2.5.11.0-1OEM.700.1.0.15843807.vib to /tmp/vibdownload/INT_bootbank_i40en_2.5.11.0-1OEM.700.1.0.15843807.vib
YYYY-MM-DDTHH:MM:SS: In(14) lifecycle[45367979] Downloader:630 Successfully executed cmd: localcli --plugin-dir /usr/lib/vmware/esxcli/int/ networkinternal firewall firewallRuleset set --ruleset-id esxupdate --service-name esxupdate --enabled false
YYYY-MM-DDTHH:MM:SS: In(14) lifecycle[45367979] runcommand:248 runcommand called with: args = '/bin/localcli system visorfs ramdisk remove -t /tmp/vibdownload', outfile = None, returnoutput = True, timeout = 0.0.
YYYY-MM-DDTHH:MM:SS: Wa(12) lifecycle[45367979] Ramdisk:75 Failed to remove ramdisk vibdownload: Errors:
YYYY-MM-DDTHH:MM:SS: Wa(12)[+] lifecycle[45367979] Device or resource busy
YYYY-MM-DDTHH:MM:SS: Wa(12)[+] lifecycle[45367979] , 2 retry left
YYYY-MM-DDTHH:MM:SS: In(14) lifecycle[45367979] runcommand:248 runcommand called with: args = '/bin/localcli system visorfs ramdisk remove -t /tmp/vibdownload', outfile = None, returnoutput = True, timeout = 0.0.
YYYY-MM-DDTHH:MM:SS: Wa(12) lifecycle[45367979] Ramdisk:75 Failed to remove ramdisk vibdownload: Errors:
YYYY-MM-DDTHH:MM:SS: Wa(12)[+] lifecycle[45367979] Device or resource busy
YYYY-MM-DDTHH:MM:SS: Wa(12)[+] lifecycle[45367979] , 1 retry left
YYYY-MM-DDTHH:MM:SS In(14) lifecycle[45367979] runcommand:248 runcommand called with: args = '/bin/localcli system visorfs ramdisk remove -t /tmp/vibdownload', outfile = None, returnoutput = True, timeout = 0.0.
YYYY-MM-DDTHH:MM:SS Wa(12) lifecycle[45367979] Ramdisk:75 Failed to remove ramdisk vibdownload: Errors:
YYYY-MM-DDTHH:MM:SS Wa(12)[+] lifecycle[45367979] Device or resource busy
YYYY-MM-DDTHH:MM:SS Wa(12)[+] lifecycle[45367979] , 0 retry left
YYYY-MM-DDTHH:MM:SS Wa(12) lifecycle[45367979] Ramdisk:34 Failed to remove ramdisk vibdownload: Errors:
YYYY-MM-DDTHH:MM:SS Wa(12)[+] lifecycle[45367979] Device or resource busy
YYYY-MM-DDTHH:MM:SS In(14) lifecycle[45367979] runcommand:248 runcommand called with: args = ['/usr/lib/vmware/vob/bin/addvob', 'vob.user.esximage.install.stage.error', '(Updated) VMware Lifecycle Manager Generated Image', "('INT_bootbank_i40en_2.5.11.0-1OEM.700.1.0.15843807', 'VIB checksum does not match: calculated: c1711c170e48176##############2b31bcc58ff083b0, expected: c7b77f1f21109##################28a4938fe84')"], outfile = None, returnoutput = True, timeout = 0.0.
YYYY-MM-DDTHH:MM:SS In(14) lifecycle[45367979] runcommand:248 runcommand called with: args = '/bin/localcli system visorfs ramdisk remove -t /usr/lib/vmware/lifecycle/stagebootbank', outfile = None, returnoutput = True, timeout = 0.0.
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:85 [VibChecksumError]
YYYY-MM-DDTHH:MM:SS Er(11)[+] lifecycle[45367979] ('INT_bootbank_i40en_2.5.11.0-1OEM.700.1.0.15843807', 'VIB checksum does not match: calculated: c1711c170e48176######################2b31bcc58ff083b0, expected: c7b77f1f21109#######################28a4938fe84')
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90 Traceback (most recent call last):
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/usr/lib/vmware/lifecycle/bin/imagemanagerctl.py", line 382, in software
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     t.ApplyImage(swSpec, opts.depots, opts.taskId)
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/Transaction.py", line 2152, in ApplyImage
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     res = self.PerformImageApply(newProfile, dryRun,
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/Transaction.py", line 2262, in PerformImageApply
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     compsAdd, compsRmd, stagedPath, exitState = self._applyImageProfile(
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/Transaction.py", line 1267, in _applyImageProfile
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     stagedPath, exitState = self._validateAndInstallProfile(imageProfile,
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/Transaction.py", line 1465, in _validateAndInstallProfile
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     stagedPath = self.host.Stage(newprofile, forcebootbank=forcebootbank,
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/HostImage.py", line 1333, in Stage
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     self._stage_with_url(imgprofile, adds, installer,
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/HostImage.py", line 1114, in _stage_with_url
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     self._download_and_stage(imgprofile, vibid, installer,
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/HostImage.py", line 978, in _download_and_stage
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     verifyVibChecksum(vib, actual_path)
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90   File "/lib64/python3.11/site-packages/vmware/esximage/HostImage.py", line 107, in verifyVibChecksum
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90     raise Errors.VibChecksumError(vib.id, "VIB checksum does not match: "
YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[45367979] imagemanagerctl:90 vmware.esximage.Errors.VibChecksumError: ('INT_bootbank_i40en_2.5.11.0-1OEM.700.1.0.15843807', 'VIB checksum does not match: calculated: c1711c170e48176#####################2b31bcc58ff083b0, expected: c7b77f1f21109#####################28a4938fe84')

/var/log/vmware/vmware-updatemgr/vum-server/vum-server.log

YYYY-MM-DDTHH:MM:SS info vmware-vum-server[10327] [Originator@6876 sub=Telemetry] [TelemetryManager 261] Sending telemetry data: {"@type":"pman_error_report","taskId":"9d62ab87-######-76a19b67e7ff|527bee76-######68a2e31ab5ae","entityId":"9d62ab87-#######-76a19b67e7ff|host-249907","parentTaskId":"9d62ab87-######-76a19b67e7ff|5282e226-######b8955e4867c0","errorMessageId":"com.vmware.vcIntegrity.lifecycle.EsxImage.VibChecksumError","errorMessage":"Recreation of the VIB INT_bootbank_i40en_2.5.11.0-1OEM.700.1.0.15843807 failed due to checksum mismatch. VIB may have been created using older tools. Try a different host or update the component that contains this VIB.","errorTime":"YYYY-MM-DDTHH:MM:SSZ"}

Resolution

Start using vSphere Lifecycle Manager images for an existing cluster using baselines by setting up an image manually.

    1. In the vSphere Client, navigate to a cluster or host that you manage with baselines and baseline groups.
    2. On the Updates tab, click Image.
    3. Click the Set up image manually button.
    4. To validate the image, click the Validate button.
    5. You validate an image to check for missing dependencies and component conflicts.
    6. Click Save and Saving the image triggers an automatic compliance check. All hosts in the cluster or the standalone host are checked against the image.
    7. In the Convert to an Image pane, finish the image setup.
    8. Click the Finish image setup button. In the Finish image setup dialog box,
    9. Click Yes, finish image setup.

Additional Information

Convert a Cluster or a Host That Uses Baselines Into a Cluster or a Host That Uses vSphere Lifecycle Manager Images