"An error occurred while performing the task" error reported when exporting image from vCenter Imagebuilder
search cancel

"An error occurred while performing the task" error reported when exporting image from vCenter Imagebuilder

book

Article ID: 376659

calendar_today

Updated On:

Products

VMware vCenter Server VMware vCenter Server 7.0 VMware vCenter Server 8.0

Issue/Introduction

  • When trying to export image from Imagebuilder the following error shows up:

    An error occurred while performing the task Entry is too large to be added to cache, remove any unused depots.

  • In vCenter 8.0u3, the error could also be:

    An error occurred while performing the task. Vib not found. Retry after some time.

Environment

VMware vCenter Server 7.0
VMware vCenter Server 8.0

Cause

In some case, the cache is too small. (2GB)
Storage cache may run out of available space when reserved space for the vSphere Auto Deploy repository starts filling up due to multiple image profiles and depots

Resolution

To solve this issue, increase the cache from 2GB to 4GB:

  1. Log in to the vCenter Server UI
  2. Click on the hamburger on the top left and select Auto Deploy
  3. Click on Configure
  4. Click EDIT under VMware Image Builder Service section
  5. Change the value of cacheSize_GB from 2 to 4 and restart Imagebuilder service in VAMI

Alternatively, below commands can also be used to increase Imagebuilder cache size:
sed -i 's/cacheSize_GB=.*/cacheSize_GB=4/' /etc/vmware-imagebuilder/sca-config/imagebuilder-config.props
service-control --restart vmware-imagebuilder

Additional Information

The steps to in crease Imagebuilder cache size can also be found:
ImageBuilder service via VAMI reporting Running out of available disk space