OVA Upload Failure due to OVF descriptors
search cancel

OVA Upload Failure due to OVF descriptors

book

Article ID: 325680

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • OVA Upload Failure due to following error:
Allocation unit MegaBytes does not match the rules for CIM programmatic unit specification used in the OVF descriptors.


Cause

This issue will occur if the 'AllocationUnits' specified within the OVF file are not written in accordance with the standardized formatting outlined within the Open Virtualization Format Specification. 

Example of incorrect AllocationUnits format:

        <rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits>
        <rasd:Caption>2048 MB of memory</rasd:Caption>
        <rasd:Description>Memory Size</rasd:Description>
        <rasd:ElementName>2048 MB of memory</rasd:ElementName>
        <rasd:InstanceID>2</rasd:InstanceID>
        <rasd:ResourceType>4</rasd:ResourceType>
        <rasd:VirtualQuantity>2048</rasd:VirtualQuantity>

Resolution

To resolve this issue ensure that the 'AllocationUnits' specified within the OVF file of the OVA are modified to the following format and 'caption' removed, if present.

        <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
        <rasd:Description>Memory Size</rasd:Description>
        <rasd:ElementName>2048 MB of memory</rasd:ElementName>
        <rasd:InstanceID>2</rasd:InstanceID>
        <rasd:ResourceType>4</rasd:ResourceType>
        <rasd:VirtualQuantity>2048</rasd:VirtualQuantity>


Workaround:

Upload the OVA directly into vCenter Server before then importing it to Cloud Director.