VMware, Inc. 205
Appendix A OVF and the vCloud API
Virtual Disk Files
VirtualdiskfileinformationextractedfromtheReferencessectionoftheOVFpackageisusedtopopulate
theFileselementoftheVAppTemplate.AnOVFpackagecanincludeexactlyoneReferencessection.Itlists
allthefilesrequiredbyalltheVirtualSystemsdefinedinthepackage,includingvirtualdisksand
locale‐specificresourcefiles.VirtualdiskfilesareenumeratedagainintheDiskSectionelementofthe
package,onefileperDiskelement.Diskelementsincludeadditionalinformationaboutthecapacityand
formatofeachdisk.(Diskelementscanalsospecifyemptyvirtualdisk,inwhichcasetheyarenotassociated
withavirtualdiskfile.)
Example A‐1showshowavirtualdiskreferenceappearsinanEnvelope.(Inthisexample,attributesand
otherelementsintheEnvelopehavebeenomittedforclarity.)ThehrefvalueoftheFileelementinthe
Referencessectionspecifiesthefilepathnamerelativetothe
locationoftheOVFdescriptorfileinwhichthe
Envelopeappears.(Inthiscase,thediskfile,SimpleVM-disk1.vmdk,isinthesamefolderastheOVF
descriptor.)TheDiskelementisthenassociatedwithavirtualmachine,asaHostResourceofa
VirtualSystem,referencedbyitsovf:diskIdattributevalue.
Example A-1. Virtual Disks in an OVF Envelope
<Envelope ...
...
<References>
<File ovf:href="SimpleVM-disk1.vmdk" ovf:id="file1" ovf:size="68096"/>
</References>
...
<DiskSection>
<Info>Virtual disk information</Info>
<Disk ovf:capacity="8589934593" ovf:capacityAllocationUnits="byte * 2^20"
ovf:diskId="vmdisk1" ovf:fileRef="file1"
ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#str
eamOptimized"/>
</DiskSection>
...
<VirtualHardwareSection>
<VirtualSystem>
...
<Item>
...
<rasd:ElementName>Hard Disk 1</rasd:ElementName>
<rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
...
</Item>
...
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
Networks
TheNetworkSectionelementofanOVFEnvelopelistsallthelogicalnetworksrequiredbythepackage.Each
networkisdefinedinthissectionbyanameandcanhaveanoptionaldescription.Logicalnetworknamesare
usedwhenspecifyingconnectiondetailsforavirtualNIC.
TheOVFisextensible,andthe
vCloudAPIhasimplementedextensionsthatenableamorecomprehensive
specificationofnetworkfeatures,suchasfirewallandNATrules,thanwhatiscurrentlysupportedbytheOVF
standard.See“NetworkConfig”onpage 165.
Example A‐2illustratesasubsetofEnvelopeelementsthatspecifyvAppnetworkingconfiguration.
TheOVFNetworkSectionelementspecifiesthenameofthenetwork
ThevCloudAPINetworkConfigSectiondefinesvariousnetworkfeaturessuchasDHCPandfirewall
services.