I'm importing an OVF appliance into vCenter 4.0 using the VI API (vijava to be specific).
I'm calling the importVApp method to get a HttpNfcLease, which gives me a HttpNfcLeaseInfo, and a list of HttpNfcLeaseDeviceUrl objects.
Question is:
What determines the format of the HttpNfcLeaseDeviceUrl's importKey property? Based on the OVF file described below, the importKey is being set to the value "/ImportTest1/VirtualLsiLogicController0:4". I understand how "/TestExport1" is generated, but I am not sure how "/VirtualLsiLogicController0:4" is derived. I would have expected it to be named after the OVF's diskId property.
I'm free to modify the OVF, so if there's anything I need to set on the Harddisk elements, that'd be fine as well.
Thanks!
Mike
Excerpts from the OVF descriptor:
<References>
<ovf:File ovf:id="fileRef0" ovf:href="ImportTest.vmdk" ovf:size="447" />
<ovf:File ovf:id="fileRef1" ovf:href="ImportTest-flat.vmdk" ovf:size="1048576" />
</References>
<DiskSection>
<Info>List of the virtual disks used in the package</Info>
<ovf:Disk ovf:capacity="1048576" ovf:diskId="disk0" ovf:fileRef="fileRef0" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" />
</DiskSection>
...
<ovf:Item>
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
<rasd:InstanceID>10</rasd:InstanceID>
<rasd:ResourceSubType>LsiLogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:ElementName>Harddisk disk0</rasd:ElementName>
<rasd:HostResource>ovf:/disk/disk0</rasd:HostResource>
<rasd:InstanceID>11</rasd:InstanceID>
<rasd:ResourceSubType>10</rasd:ResourceSubType>
<rasd:ResourceType>17</rasd:ResourceType>
</ovf:Item>
Tags:
importkey,
importvapp,
sdk,
java