VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
0 Replies Last post: Nov 4, 2009 10:54 AM by MikeMatczynski  

HttpNfcLeaseDeviceUrl importKey Property Format posted: Nov 4, 2009 10:54 AM

Click to view MikeMatczynski's profile Lurker 3 posts since
Jun 2, 2009

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>

Developer Social Media

Communities