Error: "Current ESXi version does not provide a mechanism to mount a tardisk into a ramdisk" while remediating the ESXi host due to settingsd-task-forks admission failure
search cancel

Error: "Current ESXi version does not provide a mechanism to mount a tardisk into a ramdisk" while remediating the ESXi host due to settingsd-task-forks admission failure

book

Article ID: 449182

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vCenter Server

Issue/Introduction

The following symptoms occur when performing lifecycle management operations (Check Compliance, Stage, or Remediate) on an ESXi host using vSphere Lifecycle Manager (vLCM):
  • While performing a host compliance check, the following errors are reported:

    Host status is unknown and An internal error occurred while staging/remediating host.

  • In some cases, the pre-check fails with a false-positive SHA-1 certificate error.

    "SHA-1 signature found in host certificate False. Support for certificates with weak signature algorithm SHA-1 has been removed in ESXi 8.0. To proceed with upgrade, replace it with a SHA-2 signature based certificate."

  • The /var/run/log/lifecycle.log file on the ESXi host contains the following errors:

    YYYY-MM-DDTHH:MM:SS Wa(12) lifecycle[####]: BootBankInstaller:249 Ignoring error when loading bootbank: Error in loading database for bootbank /altbootbank: ('/altbootbank/imgdb.tgz', 'Error parsing VIB/ImageProfile from DB /altbootbank/imgdb.tgz: MemoryError - ')

    YYYY-MM-DDTHH:MM:SSZ Er(11) lifecycle[8965070]: QuickPatchInstaller:1457 Unexpected error occurred while attempting to run Quick Patch scan scripts: Current ESXi version does not provide a mechanism to mount a tardisk into a ramdisk.
    YYYY-MM-DDTHH:MM:SSZ Er(11)[+] lifecycle[8965070]: Traceback (most recent call last):
    YYYY-MM-DDTHH:MM:SSZ Er(11)[+] lifecycle[8965070]:   File "/lib64/python3.11/site-packages/vmware/esximage/Installer/QuickPatchInstaller.py", line 1436, in _runScanScripts
    YYYY-MM-DDTHH:MM:SSZ Er(11)[+] lifecycle[8965070]:     Ramdisk.MountTardiskInRamdisk(downloadPath,
    YYYY-MM-DDTHH:MM:SSZ Er(11)[+] lifecycle[8965070]:   File "/lib64/python3.11/site-packages/vmware/esximage/Utils/Ramdisk.py", line 229, in MountTardiskInRamdisk
    YYYY-MM-DDTHH:MM:SSZ Er(11)[+] lifecycle[8965070]:     raise Errors.InstallationError(None, None, msg)
    YYYY-MM-DDTHH:MM:SSZ Er(11)[+] lifecycle[8965070]: vmware.esximage.Errors.InstallationError:Current ESXi version does not provide a mechanism to mount a tardisk into a ramdisk.

  • The /var/run/log/vmkernel.log file on the ESXi host displays the following admission failure errors:

    YYYY-MM-DDThh.mm.ss In(###) vmkernel: cpu#.####)Admission failure in path: host/vim/vmvisor/settingsd-task-forks/python.####:sh.####:worldGroup.####

    OR

    YYYY-MM-DDTHH:MM:SSZ In(182) vmkernel: ... requires <X> KB, asked <X> KB from python.<PID> which has <Y> KB occupied and <Z> KB available.

Environment

  • VMware vSphere ESXi 8.0 U3 and higher versions.
  • vCenter Server 8.0 U3.

Cause

The ESXi host encounters memory exhaustion within the host/vim/vmvisor/settingsd-task-forks resource group. The default memory limit is insufficient for the vLCM daemon to parse the metadata zip files provided by the vCenter Server during the upgrade/remediation process.

Resolution

This issue is resolved in VMware vCenter Server 8.0 U3m, refer Release Notes for more information.

NOTE: If compliance fails with the following error message, follow KB Image compliance scan fails during the vSphere Lifecycle Manager (vLCM) compliance check: com.vmware.esx.task.contention before executing the steps in this KB.

com.vmware.vapi.std.errors.not_allowed_in_current_state Messages: com.vmware.esx.task.contention<Another task is in progress. Please retry later.>

Workaround

Perform any of the below methods to work around this issue:

Method 1 - Execute depot override script on vCenter Server.

  1. Login to vSphere Client and select the vSphere Cluster.
  2. Note down the MoID of the Cluster (for example, "domain-c9" in the sample screenshot below):



  3. Download the "depot-override.sh" script attached to this KB.
  4. Copy the script to vCenter Server using WinSCP or copy/paste the contents by creating a new file on the vCenter Server using 'vi' editor.
  5. Grant execution permission.

    [ ~ ]# vi depot-override.sh
    [ ~ ]# chmod +x depot-override.sh

  6. Execute the script to configure depot override.

     ./depot-override.sh configure --clusters <Cluster MoID>

    1. Important Notes:
      1. Remove the depot override configuration after a successful patching operation, details in Step 9.
      2. The depot override will ONLY work for the EXACT desired state that it was exported from. If the desired state changes (e.g., adding a new add-on/component or enabled NSX/HA), then the depot override needs to be configured again. Remove the existing depot override and configure a new one if the desired state has changed.
      3. If the depot override is not sufficient for a desired state, operations may fail with any of following errors:

        Vendor addon <AddonName> with version <ESX version > cannot be found in depot.
        Component <component name> cannot be found in depot.
  7. Enter SSO Administrator credentials and vCenter Server FQDN when prompted by the script.

    [ ~ ]# ./depot-override.sh configure --clusters domain-c9
    vCenter username [[email protected]]: [email protected]
    vCenter password:
    Logging to /tmp/depot-override-######-######.log
    vCenter FQDN [vcenter.example.com]: vcenter.example.com


    Sample execution result:

    [ ~ ]# ./depot-override.sh configure --clusters domain-c9
    vCenter username [[email protected]]: [email protected]
    vCenter password:
    Logging to /tmp/depot-override-######-#######.log
    vCenter FQDN [vcenter.example.com]: vcenter.example.com
    
    ==== Exporting desired-image offline bundle for cluster domain-c9 ====
    $ dcli com vmware esx settings clusters software export --cluster domain-c9 --export-offline-bundle true --export-iso-image false --export-software-spec false
    OFFLINE_BUNDLE: https://vcenter.example.com:9087/vum-filedownload/download?file=OFFLINE_BUNDLE_#######-####-####-####-##############.zip
    Bundle URL: https://vcenter.example.com:9087/vum-filedownload/download?file=OFFLINE_BUNDLE_#######-####-####-####-##############.zip
    
    ==== Preparing depot folder /storage/updatemgr/patch-store/domain-c9-custom-depot and downloading bundle ====
    $ curl -sk -o /storage/updatemgr/patch-store/domain-c9-custom-depot/offlineBundle.zip https://vcenter.example.com:9087/vum-filedownload/download?file=OFFLINE_BUNDLE_#######-####-####-####-##############.zip
    
    ==== Unzipping offline bundle ====
    $ unzip -o -q /storage/updatemgr/patch-store/domain-c9-custom-depot/offlineBundle.zip -d /storage/updatemgr/patch-store/domain-c9-custom-depot
    
    ==== Validating depot is served over HTTP ====
    $ curl -sk -o /dev/null -w %{http_code} http://vcenter.example.com:9084/vum/repository/domain-c9-custom-depot/index.xml
    200
    Depot reachable at http://vcenter.example.com:9084/vum/repository/domain-c9-custom-depot/index.xml
    
    ==== Adding depot override for cluster domain-c9 ====
    $ dcli com vmware esx settings clusters depotoverrides add --cluster domain-c9 --location http://vcenter.example.com:9084/vum/repository/domain-c9-custom-depot/index.xml
    .
    .
    .
    ==== Scan completed successfully for cluster domain-c9 ====
    Depot override URL added for cluster domain-c9: http://vcenter.example.com:9084/vum/repository/domain-c9-custom-depot/index.xml
  8. Re-initiate the patching operation.
  9. Remove the depot override configuration after the patching operation by executing the script:

    ./depot-override.sh remove --clusters <Cluster MoID> --location <Depot override URL>

    Example: ./depot-override.sh remove --clusters domain-c9 --location http://vcenter.example.com:9084/vum/repository/domain-c9-custom-depot/index.xml

Method 2 - Manually increase the memory allocation for the settingsd-task-forks resource pool.

Note: This action needs to be performed on each ESXi host.

  1. Open an SSH session to the affected ESXi host as the root user.

  2. Check the current memory configuration for the settingsd-task-forks group on the affected ESXi host by executing the following command:

    python -c "from configRP import ResourcePool; rp = ResourcePool('host/vim/vmvisor/settingsd-task-forks'); print(rp.getCurrentMaxMemSize())"

  3. Execute the following command to increase the resource pool size such that the total now is 500MB. For eg: If Step 2 returns 345MB, the increase should be 155MB. If it gives 315MB, the increase should be 185MB etc.:

    python -c "from configRP import ResourcePool; rp = ResourcePool('host/vim/vmvisor/settingsd-task-forks'); rp.increaseResourcePoolSize(0, 155)"

    Note: This command applies a temporary configuration that does not persist across a reboot. This is the intended behavior, as the value should revert to its original state when the host reboots during patching.

  4. Re-run the validation command to verify the updated memory limit applies successfully.

    python -c "from configRP import ResourcePool; rp = ResourcePool('host/vim/vmvisor/settingsd-task-forks'); print(rp.getCurrentMaxMemSize())"

  5. In the vCenter Server inventory, select the affected ESXi host, navigate to Updates, and click Check Compliance to refresh the host status.

  6. Verify that the Actions menu is now fully accessible.

  7. Re-initiate the patching operation.

Additional Information

Revert the resource pool configuration.

The resource pool memory increase must be temporary and apply only to the current patching attempt. Using localcli command to increase the resource pool is not recommended, as this makes the change persistent across reboots and causes other issues.

Reset the value to default if "localcli" command was used in the past to increase the memory. The way to do it is outlined below:

  1. SSH to the ESXi host and check the default pool size for settingsd-task-forks.
    1. Open file /etc/rp.d/settingsd.yml and note down the resource pool size under host/vim/vmvisor/settingsd-task-forks

      cat /etc/rp.d/settingsd.yml | grep host/vim/vmvisor/settingsd-task-forks -A 1

      Sample Result:

      [root@<hostname>:/] cat /etc/rp.d/settingsd.yml | grep host/vim/vmvisor/settingsd-task-forks -A 1

      - name: host/vim/vmvisor/settingsd-task-forks
        memMax: 315
  2. Execute the localcli command below to set it to the value from step 1.a.

    localcli --plugin-dir=/usr/lib/vmware/esxcli/int sched group setmemconfig -g host/vim/vmvisor/settingsd-task-forks -m value_from_step_1a -i 0 -l -1 -u mb

    Sample command:

    localcli --plugin-dir=/usr/lib/vmware/esxcli/int sched group setmemconfig -g host/vim/vmvisor/settingsd-task-forks -m 315 -i 0 -l -1 -u mb

SHA256 Hash

depot-override.sh - 677DEA843DA9471B7F08BA556F35E7FC6050B49AD8082F9FA69B2580705CD78C

Attachments

depot-override.sh get_app