summaryrefslogtreecommitdiff
path: root/doc/ovf/environment.xml
blob: 492fa7155ae5a99c88688e844a01afebf44f9793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<Environment xmlns="http://schemas.dmtf.org/ovf/environment/1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:oe="http://schemas.dmtf.org/ovf/environment/1"
    xsi:schemaLocation="http://schemas.dmtf.org/ovf/environment/1 ../dsp8027.xsd"
    oe:id="WebTier">
    
    <!-- This example reference a local schema file, to validate against online schema use:
    xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8027_1.0.0.xsd"
    -->
    
    <!-- Information about hypervisor platform -->
    <oe:PlatformSection>
        <Kind>ESX Server</Kind>
        <Version>3.0.1</Version>
        <Vendor>VMware, Inc.</Vendor>
        <Locale>en_US</Locale>
    </oe:PlatformSection>

    <!--- Properties defined for this virtual machine -->
    <PropertySection>
        <!-- md.instance-id is required, a unique instance-id -->
        <Property oe:key="md.instance-id" oe:value="i-abcdefg"/>
        <!-- 
        md.seedfrom is optional, but indicates to 'seed' user-data
        and meta-data the given url.  In this example, pull
        http://tinyurl.com/sm-meta-data and http://tinyurl.com/sm-user-data
        -->
        <Property oe:key="md.seedfrom" oe:value="http://tinyurl.com/sm-"/>
        <!--
        md.public-keys is a public key to add to users authorized keys
        -->
        <Property oe:key="md.public-keys" oe:value="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3I7VUf2l5gSn5uavROsc5HRDpZdQueUq5ozemNSj8T7enqKHOEaFoU2VoPgGEWC9RyzSQVeyD6s7APMcE82EtmW4skVEgEGSbDc1pvxzxtchBj78hJP6Cf5TCMFSXw+Fz5rF1dR23QDbN1mkHs7adr8GW4kSWqU7Q7NDwfIrJJtO7Hi42GyXtvEONHbiRPOe8stqUly7MvUoN+5kfjBM8Qqpfl2+FNhTYWpMfYdPUnE7u536WqzFmsaqJctz3gBxH9Ex7dFtrxR4qiqEr9Qtlu3xGn7Bw07/+i1D+ey3ONkZLN+LQ714cgj8fRS4Hj29SCmXp5Kt5/82cD/VN3NtHw== smoser@brickies"/>
        <!-- md.local-hostname: the hostname to set -->
        <Property oe:key="md.local-hostname" oe:value="ubuntuhost"/>
        <!--
        The value for user-data can be either base64 encoded or url encoded.
        it will be decoded, and then processed normally as user-data.
        The following represents '#!/bin/sh\necho "hi world"'

        <Property oe:key="user-data" oe:value="IyEvYmluL3NoDQplY2hvICJoaSB3b3JsZCI="/>
        -->
        <Property oe:key="user-data" oe:value="%23!%2Fbin%2Fsh%0Aecho%20%22hi%20world%22"/>
    </PropertySection>

</Environment>