Error reading file \’/usr/lib/vmware-imagebuilder/etc/schemas/vib20-extensibility.rng

While downloading the new image from auto-deploy, I got the following error message:

Something went wrong while converting items to pxe profile:(vmodl.fault.SystemError) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = 'Invalid Fault',

   faultCause = (imagebuilder.fault.IbFault) {

      dynamicType = <unset>,

      dynamicProperty = (vmodl.DynamicProperty) [],

      msg = 'Unable to obtain XML schema: Error loading schema XML data: Error reading file \'/usr/lib/vmware-imagebuilder/etc/schemas/vib20-extensibility.rng\': failed to load external entity "/usr/lib/vmware-imagebuilder/etc/schemas/vib20-extensibility.rng".',

      faultCause = <unset>,

      faultMessage = (vmodl.LocalizableMessage) [

         (vmodl.LocalizableMessage) {

            dynamicType = <unset>,

            dynamicProperty = (vmodl.DynamicProperty) [],

            key = '',

            arg = (vmodl.KeyAnyValue) [],

            message = 'Unable to obtain XML schema: Error loading schema XML data: Error reading file \'/usr/lib/vmware-imagebuilder/etc/schemas/vib20-extensibility.rng\': failed to load external entity "/usr/lib/vmware-imagebuilder/etc/schemas/vib20-extensibility.rng".'

         }

      ],

      errorCode = 0,

      errorMessage = (vmodl.LocalizableMessage) {

         dynamicType = <unset>,

         dynamicProperty = (vmodl.DynamicProperty) [],

         key = '',

         arg = (vmodl.KeyAnyValue) [],

         message = 'Unable to obtain XML schema: Error loading schema XML data: Error reading file \'/usr/lib/vmware-imagebuilder/etc/schemas/vib20-extensibility.rng\': failed to load external entity "/usr/lib/vmware-imagebuilder/etc/schemas/vib20-extensibility.rng".'

      },

      additionalData = (vmodl.KeyAnyValue) []

   },

   faultMessage = (vmodl.LocalizableMessage) [],

   reason = 'Method DepotManagerDownloadVib threw undeclared fault of type imagebuilder.fault.IbFault'

}

Solution:

-Install powercli 6.5. And check on this location for vib20-extensibility

 

C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Modules\VMware.ImageBuilder

-copy this file to vcsa appliance :

/usr/lib/vmware-imagebuilder/etc/schemas

This will resolve the issue!!!