<?xml version="1.0" encoding="UTF-8"?>
<ovf:Envelope xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd http://www.vmware.com/vcloud/v1 http://vcenterprise.bluelock.com/api/v1.0/schema/master.xsd">
    <ovf:References/>
    <ovf:NetworkSection>
        <ovf:Info>The list of logical networks</ovf:Info>
        <ovf:Network ovf:name="vAppNet-vApp Internal">
            <ovf:Description/>
        </ovf:Network>
    </ovf:NetworkSection>
    <vcloud:NetworkConfigSection ovf:required="false">
        <ovf:Info>The configuration parameters for logical networks</ovf:Info>
        <vcloud:NetworkConfig networkName="vAppNet-vApp Internal">
            <vcloud:Description/>
            <vcloud:Configuration>
                <vcloud:IpScope>
                    <vcloud:IsInherited>false</vcloud:IsInherited>
                    <vcloud:Gateway>192.168.2.1</vcloud:Gateway>
                    <vcloud:Netmask>255.255.255.0</vcloud:Netmask>
                    <vcloud:Dns1>8.8.8.8</vcloud:Dns1>
                    <vcloud:IpRanges>
                        <vcloud:IpRange>
                            <vcloud:StartAddress>192.168.2.100</vcloud:StartAddress>
                            <vcloud:EndAddress>192.168.2.199</vcloud:EndAddress>
                        </vcloud:IpRange>
                    </vcloud:IpRanges>
                    <vcloud:AllocatedIpAddresses>
                        <vcloud:IpAddress>192.168.2.100</vcloud:IpAddress>
                    </vcloud:AllocatedIpAddresses>
                </vcloud:IpScope>
                <vcloud:FenceMode>isolated</vcloud:FenceMode>
                <vcloud:Features>
                    <vcloud:DhcpService>
                        <vcloud:IsEnabled>false</vcloud:IsEnabled>
                        <vcloud:DefaultLeaseTime>7200</vcloud:DefaultLeaseTime>
                        <vcloud:MaxLeaseTime>7200</vcloud:MaxLeaseTime>
                        <vcloud:IpRange/>
                    </vcloud:DhcpService>
                    <vcloud:FirewallService>
                        <vcloud:IsEnabled>true</vcloud:IsEnabled>
                    </vcloud:FirewallService>
                    <vcloud:NatService>
                        <vcloud:IsEnabled>true</vcloud:IsEnabled>
                        <vcloud:NatType>ipTranslation</vcloud:NatType>
                        <vcloud:Policy>allowTraffic</vcloud:Policy>
                        <vcloud:NatRule>
                            <vcloud:OneToOneVmRule>
                                <vcloud:MappingMode>automatic</vcloud:MappingMode>
                                <vcloud:VAppScopedVmId>02_ubuntu_template</vcloud:VAppScopedVmId>
                                <vcloud:VmNicId>0</vcloud:VmNicId>
                            </vcloud:OneToOneVmRule>
                        </vcloud:NatRule>
                    </vcloud:NatService>
                </vcloud:Features>
            </vcloud:Configuration>
            <vcloud:IsDeployed>false</vcloud:IsDeployed>
        </vcloud:NetworkConfig>
    </vcloud:NetworkConfigSection>
    <vcloud:LeaseSettingsSection ovf:required="false">
        <ovf:Info>Lease settings section</ovf:Info>
        <vcloud:DeploymentLeaseInSeconds>0</vcloud:DeploymentLeaseInSeconds>
        <vcloud:StorageLeaseInSeconds>0</vcloud:StorageLeaseInSeconds>
    </vcloud:LeaseSettingsSection>
    <vcloud:CustomizationSection ovf:required="false">
        <ovf:Info>VApp template customization section</ovf:Info>
        <vcloud:CustomizeOnInstantiate>true</vcloud:CustomizeOnInstantiate>
    </vcloud:CustomizationSection>
    <ovf:VirtualSystem ovf:id="Ubuntu1004">
        <ovf:Info>A virtual machine:</ovf:Info>
        <ovf:Name>Ubuntu1004</ovf:Name>
        <ovf:OperatingSystemSection xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="94" vmw:osType="ubuntu64Guest">
            <ovf:Info>Specifies the operating system installed</ovf:Info>
            <ovf:Description>Ubuntu Linux (64-bit)</ovf:Description>
        </ovf:OperatingSystemSection>
        <ovf:VirtualHardwareSection>
            <ovf:Info>Virtual hardware requirements</ovf:Info>
            <ovf:System>
                <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
                <vssd:InstanceID>0</vssd:InstanceID>
                <vssd:VirtualSystemIdentifier>Ubuntu1004</vssd:VirtualSystemIdentifier>
                <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
            </ovf:System>
            <ovf:Item>
                <rasd:Address>00:50:56:8c:00:13</rasd:Address>
                <rasd:AddressOnParent>0</rasd:AddressOnParent>
                <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
                <rasd:Connection vcloud:ipAddress="192.168.2.100" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">vAppNet-vApp Internal</rasd:Connection>
                <rasd:Description>PCNet32 ethernet adapter</rasd:Description>
                <rasd:ElementName>Network adapter 0</rasd:ElementName>
                <rasd:InstanceID>1</rasd:InstanceID>
                <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
                <rasd:ResourceType>10</rasd:ResourceType>
            </ovf:Item>
            <ovf:Item>
                <rasd:Address>0</rasd:Address>
                <rasd:Description>SCSI Controller</rasd:Description>
                <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
                <rasd:InstanceID>2</rasd:InstanceID>
                <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
                <rasd:ResourceType>6</rasd:ResourceType>
            </ovf:Item>
            <ovf:Item>
                <rasd:AddressOnParent>0</rasd:AddressOnParent>
                <rasd:Description>Hard disk</rasd:Description>
                <rasd:ElementName>Hard disk 1</rasd:ElementName>
                <rasd:HostResource vcloud:capacity="30720" vcloud:busType="6" vcloud:busSubType="lsilogic"/>
                <rasd:InstanceID>2000</rasd:InstanceID>
                <rasd:Parent>2</rasd:Parent>
                <rasd:ResourceType>17</rasd:ResourceType>
            </ovf:Item>
            <ovf:Item>
                <rasd:Address>0</rasd:Address>
                <rasd:Description>IDE Controller</rasd:Description>
                <rasd:ElementName>IDE Controller 0</rasd:ElementName>
                <rasd:InstanceID>3</rasd:InstanceID>
                <rasd:ResourceType>5</rasd:ResourceType>
            </ovf:Item>
            <ovf:Item>
                <rasd:AddressOnParent>0</rasd:AddressOnParent>
                <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
                <rasd:Description>CD/DVD Drive</rasd:Description>
                <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
                <rasd:HostResource/>
                <rasd:InstanceID>3002</rasd:InstanceID>
                <rasd:Parent>3</rasd:Parent>
                <rasd:ResourceType>15</rasd:ResourceType>
            </ovf:Item>
            <ovf:Item>
                <rasd:AddressOnParent>0</rasd:AddressOnParent>
                <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
                <rasd:Description>Floppy Drive</rasd:Description>
                <rasd:ElementName>Floppy Drive 1</rasd:ElementName>
                <rasd:HostResource/>
                <rasd:InstanceID>8000</rasd:InstanceID>
                <rasd:ResourceType>14</rasd:ResourceType>
            </ovf:Item>
            <ovf:Item>
                <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
                <rasd:Description>Number of Virtual CPUs</rasd:Description>
                <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
                <rasd:InstanceID>4</rasd:InstanceID>
                <rasd:Reservation>0</rasd:Reservation>
                <rasd:ResourceType>3</rasd:ResourceType>
                <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
                <rasd:Weight>0</rasd:Weight>
            </ovf:Item>
            <ovf:Item>
                <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
                <rasd:Description>Memory Size</rasd:Description>
                <rasd:ElementName>512 MB of memory</rasd:ElementName>
                <rasd:InstanceID>5</rasd:InstanceID>
                <rasd:Reservation>0</rasd:Reservation>
                <rasd:ResourceType>4</rasd:ResourceType>
                <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
                <rasd:Weight>0</rasd:Weight>
            </ovf:Item>
        </ovf:VirtualHardwareSection>
        <vcloud:NetworkConnectionSection ovf:required="false">
            <ovf:Info>Specifies the available VM network connections</ovf:Info>
            <vcloud:PrimaryNetworkConnectionIndex>0</vcloud:PrimaryNetworkConnectionIndex>
            <vcloud:NetworkConnection network="vAppNet-vApp Internal">
                <vcloud:NetworkConnectionIndex>0</vcloud:NetworkConnectionIndex>
                <vcloud:IpAddress>192.168.2.100</vcloud:IpAddress>
                <vcloud:IsConnected>true</vcloud:IsConnected>
                <vcloud:MACAddress>00:50:56:8c:00:13</vcloud:MACAddress>
                <vcloud:IpAddressAllocationMode>POOL</vcloud:IpAddressAllocationMode>
            </vcloud:NetworkConnection>
        </vcloud:NetworkConnectionSection>
        <vcloud:GuestCustomizationSection ovf:required="false">
            <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
            <vcloud:Enabled>true</vcloud:Enabled>
            <vcloud:ChangeSid>false</vcloud:ChangeSid>
            <vcloud:VirtualMachineId>172837194</vcloud:VirtualMachineId>
            <vcloud:JoinDomainEnabled>false</vcloud:JoinDomainEnabled>
            <vcloud:UseOrgSettings>false</vcloud:UseOrgSettings>
            <vcloud:AdminPasswordEnabled>true</vcloud:AdminPasswordEnabled>
            <vcloud:AdminPasswordAuto>true</vcloud:AdminPasswordAuto>
            <vcloud:AdminPassword>%3eD%gmF</vcloud:AdminPassword>
            <vcloud:ResetPasswordRequired>false</vcloud:ResetPasswordRequired>
            <vcloud:CustomizationScript>#!/bin/bash if [ "$1" = "postcustomization" ]; then echo "post customization" touch /root/.postcustomization sleep 30 #regenerate keys /bin/rm /etc/ssh/ssh_host_* /usr/sbin/dpkg-reconfigure openssh-server echo "completed" fi</vcloud:CustomizationScript>
            <vcloud:ComputerName>Ubuntu1004</vcloud:ComputerName>
        </vcloud:GuestCustomizationSection>
    </ovf:VirtualSystem>
</ovf:Envelope>