fog-vcloud-director 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/docs/examples-vapp-instantiate.md +120 -0
- data/docs/web-server-with-db-vapp.xml +364 -0
- data/lib/fog/vcloud_director.rb +1 -0
- data/lib/fog/vcloud_director/generators/compute/compose_common.rb +144 -8
- data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +15 -13
- data/lib/fog/vcloud_director/version.rb +1 -1
- data/spec/vcloud_director/generators/compute/compose_common_spec.rb +72 -0
- data/spec/vcloud_director/generators/compute/instantiate_vapp_template_params_spec.rb +529 -51
- data/spec/vcloud_director/spec_helper.rb +2 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8cce23ebff03f8333820fc34c63ea0a9ca7917e
|
4
|
+
data.tar.gz: d45fb869193aae14daaf73eb10c0f385007df1d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aedf368f4fbd14980c5a8880ce4ccd8bf247d8b165ee0d3ba67e3035cdb39a84b6d5bde847c011463d9dd56e5ab320d82d7d93ffe400a387cfd65788342376ec
|
7
|
+
data.tar.gz: 7237b54dc5d1c627d731a0fc964eaa3535b2f5c23448fb67a1a643e4085118db32dbb008aae9d57f0b7cf54e5cbfa2c798e64384a9b30421d22d01ae54f5e402
|
data/README.md
CHANGED
@@ -0,0 +1,120 @@
|
|
1
|
+
# vApp Instantiate Examples
|
2
|
+
In this document we provide examples of vapp instantiation.
|
3
|
+
|
4
|
+
## Minimal Example (no customization)
|
5
|
+
|
6
|
+
```ruby
|
7
|
+
service = Fog::Compute::VcloudDirector.new(...)
|
8
|
+
options = {
|
9
|
+
:stack_name => 'miha-test-vapp',
|
10
|
+
:template => 'vappTemplate-e269eba3-f7d4-449c-b960-a313807b3925',
|
11
|
+
:deploy => false,
|
12
|
+
:powerOn => false,
|
13
|
+
:vdc_id => 'cf6ea964-a67f-4ba1-b69e-3dd5d6cb0c89'
|
14
|
+
}
|
15
|
+
service.instantiate_template(options)
|
16
|
+
```
|
17
|
+
|
18
|
+
## Real-world Example
|
19
|
+
Example below instantiates vApp named "my-vapp" based on a vApp template provided
|
20
|
+
[here](./web-server-with-db-vapp.xml). Two virtual machines are defined in template
|
21
|
+
("DB VM" and "Web VM") and with this provisioning request we customize both.
|
22
|
+
|
23
|
+
We also customize vApp networks: we edit existing one ("Private network 43") and
|
24
|
+
add a new one ("Default Network"). For each NIC on each VM we then specify what
|
25
|
+
network does it connect to and how.
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
service = Fog::Compute::VcloudDirector.new(...)
|
29
|
+
options = {
|
30
|
+
:stack_name => 'my-vapp',
|
31
|
+
:template => 'vappTemplate-e269eba3-f7d4-449c-b960-a313807b3925',
|
32
|
+
:deploy => false,
|
33
|
+
:powerOn => false,
|
34
|
+
:vdc_id => 'cf6ea964-a67f-4ba1-b69e-3dd5d6cb0c89',
|
35
|
+
:source_vms => [
|
36
|
+
# First VM (DB VM).
|
37
|
+
{
|
38
|
+
:name => 'DB VM',
|
39
|
+
:vm_id => 'vm-595416d8-2b1a-4f45-86c7-56244a548f1a',
|
40
|
+
# Hostname.
|
41
|
+
:guest_customization => { :ComputerName => 'db-vm' },
|
42
|
+
:networks => [
|
43
|
+
# NIC 0 (we connect to Default Network in DHCP mode).
|
44
|
+
{
|
45
|
+
:networkName => 'Default Network',
|
46
|
+
:IpAddressAllocationMode => 'DHCP',
|
47
|
+
:IpAddress => nil,
|
48
|
+
:IsConnected => false
|
49
|
+
}
|
50
|
+
],
|
51
|
+
:hardware => {
|
52
|
+
:cpu => { :num_cores => 1, :cores_per_socket => 1 },
|
53
|
+
# Increase MEM capacity to 1 GB.
|
54
|
+
:memory => { :quantity_mb => 1024 },
|
55
|
+
# Increase disk capacity to 40 GB.
|
56
|
+
:disk => [{ :id => '2000', :capacity_mb => 40960 }]
|
57
|
+
}
|
58
|
+
},
|
59
|
+
# Second VM (Web VM).
|
60
|
+
{
|
61
|
+
:name => 'Web VM',
|
62
|
+
:vm_id => 'vm-a436a184-b2cd-4c6d-b274-98caa6c3c7a1',
|
63
|
+
:guest_customization => { :ComputerName => 'web-vm' },
|
64
|
+
:networks=>[
|
65
|
+
# NIC 0 (we connect to Private network 43 in static IP mode).
|
66
|
+
{
|
67
|
+
:networkName => 'Private network 43',
|
68
|
+
:IpAddressAllocationMode => 'MANUAL',
|
69
|
+
:IpAddress => '192.168.43.100',
|
70
|
+
:IsConnected => true
|
71
|
+
},
|
72
|
+
# NIC 1 (we connect to Default Network in DHCP mode).
|
73
|
+
{
|
74
|
+
:networkName => 'Default Network',
|
75
|
+
:IpAddressAllocationMode => 'DHCP',
|
76
|
+
:IpAddress => nil,
|
77
|
+
:IsConnected => false
|
78
|
+
}
|
79
|
+
],
|
80
|
+
:hardware => {
|
81
|
+
:cpu => { :num_cores => 1, :cores_per_socket => 1 },
|
82
|
+
:memory => { :quantity_mb => 512 },
|
83
|
+
:disk => [{ :id => "2000", :capacity_mb => 5120 }]
|
84
|
+
}
|
85
|
+
}
|
86
|
+
],
|
87
|
+
# Customize vApp networks that the two VMs connect to.
|
88
|
+
:vapp_networks => [
|
89
|
+
# Modify existing vApp network.
|
90
|
+
{
|
91
|
+
:name => 'Private network 43',
|
92
|
+
:parent => 'b915be99-1471-4e51-bcde-da2da791b98f',
|
93
|
+
:fence_mode => 'bridged',
|
94
|
+
:subnet => [
|
95
|
+
{
|
96
|
+
:gateway => '192.168.43.1',
|
97
|
+
:netmask => '255.255.255.0',
|
98
|
+
:dns1 => '192.168.43.1',
|
99
|
+
:dns2 => nil
|
100
|
+
}
|
101
|
+
]
|
102
|
+
},
|
103
|
+
# Add a new vApp network (is not specified in template).
|
104
|
+
{
|
105
|
+
:name => 'Default Network',
|
106
|
+
:parent => nil,
|
107
|
+
:fence_mode => 'isolated',
|
108
|
+
:subnet => [
|
109
|
+
{
|
110
|
+
:gateway => '192.168.10.1',
|
111
|
+
:netmask => '255.255.255.0',
|
112
|
+
:dns1 => nil,
|
113
|
+
:dns2 => nil
|
114
|
+
}
|
115
|
+
]
|
116
|
+
}
|
117
|
+
]
|
118
|
+
}
|
119
|
+
service.instantiate_template(options)
|
120
|
+
```
|
@@ -0,0 +1,364 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ovf:Envelope xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" 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:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://10.12.0.18/api/v1.5/schema/master.xsd http://www.vmware.com/schema/ovf http://www.vmware.com/schema/ovf 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://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">
|
3
|
+
<ovf:References/>
|
4
|
+
<ovf:NetworkSection>
|
5
|
+
<ovf:Info>The list of logical networks</ovf:Info>
|
6
|
+
<ovf:Network ovf:name="Private network 43">
|
7
|
+
<ovf:Description/>
|
8
|
+
</ovf:Network>
|
9
|
+
<ovf:Network ovf:name="none">
|
10
|
+
<ovf:Description>This is a special place-holder used for disconnected network interfaces.</ovf:Description>
|
11
|
+
</ovf:Network>
|
12
|
+
</ovf:NetworkSection>
|
13
|
+
<vcloud:CustomizationSection goldMaster="false" ovf:required="false">
|
14
|
+
<ovf:Info>VApp template customization section</ovf:Info>
|
15
|
+
<vcloud:CustomizeOnInstantiate>true</vcloud:CustomizeOnInstantiate>
|
16
|
+
</vcloud:CustomizationSection>
|
17
|
+
<vcloud:NetworkConfigSection ovf:required="false">
|
18
|
+
<ovf:Info>The configuration parameters for logical networks</ovf:Info>
|
19
|
+
<vcloud:NetworkConfig networkName="Private network 43">
|
20
|
+
<vcloud:Description/>
|
21
|
+
<vcloud:Configuration>
|
22
|
+
<vcloud:IpScopes>
|
23
|
+
<vcloud:IpScope>
|
24
|
+
<vcloud:IsInherited>true</vcloud:IsInherited>
|
25
|
+
<vcloud:Gateway>192.168.43.1</vcloud:Gateway>
|
26
|
+
<vcloud:Netmask>255.255.255.0</vcloud:Netmask>
|
27
|
+
<vcloud:Dns1>192.168.43.1</vcloud:Dns1>
|
28
|
+
<vcloud:IsEnabled>true</vcloud:IsEnabled>
|
29
|
+
<vcloud:IpRanges>
|
30
|
+
<vcloud:IpRange>
|
31
|
+
<vcloud:StartAddress>192.168.43.2</vcloud:StartAddress>
|
32
|
+
<vcloud:EndAddress>192.168.43.99</vcloud:EndAddress>
|
33
|
+
</vcloud:IpRange>
|
34
|
+
</vcloud:IpRanges>
|
35
|
+
</vcloud:IpScope>
|
36
|
+
</vcloud:IpScopes>
|
37
|
+
<vcloud:ParentNetwork href="" name="Private network 43"/>
|
38
|
+
<vcloud:FenceMode>bridged</vcloud:FenceMode>
|
39
|
+
<vcloud:RetainNetInfoAcrossDeployments>false</vcloud:RetainNetInfoAcrossDeployments>
|
40
|
+
</vcloud:Configuration>
|
41
|
+
<vcloud:IsDeployed>false</vcloud:IsDeployed>
|
42
|
+
</vcloud:NetworkConfig>
|
43
|
+
<vcloud:NetworkConfig networkName="none">
|
44
|
+
<vcloud:Description>This is a special place-holder used for disconnected network interfaces.</vcloud:Description>
|
45
|
+
<vcloud:Configuration>
|
46
|
+
<vcloud:IpScopes>
|
47
|
+
<vcloud:IpScope>
|
48
|
+
<vcloud:IsInherited>false</vcloud:IsInherited>
|
49
|
+
<vcloud:Gateway>196.254.254.254</vcloud:Gateway>
|
50
|
+
<vcloud:Netmask>255.255.0.0</vcloud:Netmask>
|
51
|
+
<vcloud:Dns1>196.254.254.254</vcloud:Dns1>
|
52
|
+
</vcloud:IpScope>
|
53
|
+
</vcloud:IpScopes>
|
54
|
+
<vcloud:FenceMode>isolated</vcloud:FenceMode>
|
55
|
+
</vcloud:Configuration>
|
56
|
+
<vcloud:IsDeployed>false</vcloud:IsDeployed>
|
57
|
+
</vcloud:NetworkConfig>
|
58
|
+
</vcloud:NetworkConfigSection>
|
59
|
+
<vcloud:LeaseSettingsSection ovf:required="false">
|
60
|
+
<ovf:Info>Lease settings section</ovf:Info>
|
61
|
+
<vcloud:StorageLeaseInSeconds>7776000</vcloud:StorageLeaseInSeconds>
|
62
|
+
<vcloud:StorageLeaseExpiration>2018-05-21T10:31:09.897+02:00</vcloud:StorageLeaseExpiration>
|
63
|
+
</vcloud:LeaseSettingsSection>
|
64
|
+
<ovf:VirtualSystemCollection ovf:id="web-server-with-db-vapp">
|
65
|
+
<ovf:Info>A collection of virtual machines</ovf:Info>
|
66
|
+
<ovf:Name>web-server-with-db-vapp</ovf:Name>
|
67
|
+
<ovf:StartupSection>
|
68
|
+
<ovf:Info>VApp startup section</ovf:Info>
|
69
|
+
<ovf:Item ovf:id="Web VM" ovf:order="0" ovf:startAction="powerOn" ovf:startDelay="0" ovf:stopAction="powerOff" ovf:stopDelay="0"/>
|
70
|
+
<ovf:Item ovf:id="DB VM" ovf:order="0" ovf:startAction="powerOn" ovf:startDelay="0" ovf:stopAction="powerOff" ovf:stopDelay="0"/>
|
71
|
+
</ovf:StartupSection>
|
72
|
+
<ovf:VirtualSystem ovf:id="DB VM">
|
73
|
+
<ovf:Info>A virtual machine</ovf:Info>
|
74
|
+
<ovf:Name>DB VM</ovf:Name>
|
75
|
+
<ovf:OperatingSystemSection ovf:id="94" vmw:osType="ubuntu64Guest">
|
76
|
+
<ovf:Info>Specifies the operating system installed</ovf:Info>
|
77
|
+
<ovf:Description>Ubuntu Linux (64-bit)</ovf:Description>
|
78
|
+
</ovf:OperatingSystemSection>
|
79
|
+
<ovf:VirtualHardwareSection ovf:transport="">
|
80
|
+
<ovf:Info>Virtual hardware requirements</ovf:Info>
|
81
|
+
<ovf:System>
|
82
|
+
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
|
83
|
+
<vssd:InstanceID>0</vssd:InstanceID>
|
84
|
+
<vssd:VirtualSystemIdentifier>DB VM</vssd:VirtualSystemIdentifier>
|
85
|
+
<vssd:VirtualSystemType>vmx-13</vssd:VirtualSystemType>
|
86
|
+
</ovf:System>
|
87
|
+
<ovf:Item>
|
88
|
+
<rasd:Address>00:50:56:01:00:5e</rasd:Address>
|
89
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
90
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
91
|
+
<rasd:Connection vcloud:ipAddressingMode="NONE" vcloud:primaryNetworkConnection="true">none</rasd:Connection>
|
92
|
+
<rasd:Description>Vmxnet3 ethernet adapter on "none"</rasd:Description>
|
93
|
+
<rasd:ElementName>Network adapter 0</rasd:ElementName>
|
94
|
+
<rasd:InstanceID>1</rasd:InstanceID>
|
95
|
+
<rasd:ResourceSubType>VMXNET3</rasd:ResourceSubType>
|
96
|
+
<rasd:ResourceType>10</rasd:ResourceType>
|
97
|
+
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true"/>
|
98
|
+
</ovf:Item>
|
99
|
+
<ovf:Item>
|
100
|
+
<rasd:Address>0</rasd:Address>
|
101
|
+
<rasd:Description>SCSI Controller</rasd:Description>
|
102
|
+
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
|
103
|
+
<rasd:InstanceID>2</rasd:InstanceID>
|
104
|
+
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
|
105
|
+
<rasd:ResourceType>6</rasd:ResourceType>
|
106
|
+
</ovf:Item>
|
107
|
+
<ovf:Item>
|
108
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
109
|
+
<rasd:Description>Hard disk</rasd:Description>
|
110
|
+
<rasd:ElementName>Hard disk 1</rasd:ElementName>
|
111
|
+
<rasd:HostResource vcloud:busType="6" vcloud:busSubType="lsilogic" vcloud:capacity="5120"/>
|
112
|
+
<rasd:InstanceID>2000</rasd:InstanceID>
|
113
|
+
<rasd:Parent>2</rasd:Parent>
|
114
|
+
<rasd:ResourceType>17</rasd:ResourceType>
|
115
|
+
<rasd:VirtualQuantity>5368709120</rasd:VirtualQuantity>
|
116
|
+
<rasd:VirtualQuantityUnits>byte</rasd:VirtualQuantityUnits>
|
117
|
+
<vmw:Config ovf:required="false" vmw:key="backing.writeThrough" vmw:value="false"/>
|
118
|
+
</ovf:Item>
|
119
|
+
<ovf:Item>
|
120
|
+
<rasd:Address>0</rasd:Address>
|
121
|
+
<rasd:Description>IDE Controller</rasd:Description>
|
122
|
+
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
|
123
|
+
<rasd:InstanceID>3</rasd:InstanceID>
|
124
|
+
<rasd:ResourceType>5</rasd:ResourceType>
|
125
|
+
</ovf:Item>
|
126
|
+
<ovf:Item>
|
127
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
128
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
129
|
+
<rasd:Description>Floppy Drive</rasd:Description>
|
130
|
+
<rasd:ElementName>Floppy Drive 1</rasd:ElementName>
|
131
|
+
<rasd:HostResource/>
|
132
|
+
<rasd:InstanceID>8000</rasd:InstanceID>
|
133
|
+
<rasd:ResourceType>14</rasd:ResourceType>
|
134
|
+
</ovf:Item>
|
135
|
+
<ovf:Item>
|
136
|
+
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
|
137
|
+
<rasd:Description>Number of Virtual CPUs</rasd:Description>
|
138
|
+
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
|
139
|
+
<rasd:InstanceID>4</rasd:InstanceID>
|
140
|
+
<rasd:Reservation>0</rasd:Reservation>
|
141
|
+
<rasd:ResourceType>3</rasd:ResourceType>
|
142
|
+
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
|
143
|
+
<rasd:Weight>0</rasd:Weight>
|
144
|
+
</ovf:Item>
|
145
|
+
<ovf:Item>
|
146
|
+
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
|
147
|
+
<rasd:Description>Memory Size</rasd:Description>
|
148
|
+
<rasd:ElementName>256 MB of memory</rasd:ElementName>
|
149
|
+
<rasd:InstanceID>5</rasd:InstanceID>
|
150
|
+
<rasd:Reservation>0</rasd:Reservation>
|
151
|
+
<rasd:ResourceType>4</rasd:ResourceType>
|
152
|
+
<rasd:VirtualQuantity>256</rasd:VirtualQuantity>
|
153
|
+
<rasd:Weight>0</rasd:Weight>
|
154
|
+
</ovf:Item>
|
155
|
+
<ovf:Item>
|
156
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
157
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
158
|
+
<rasd:Description>CD/DVD Drive</rasd:Description>
|
159
|
+
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
|
160
|
+
<rasd:HostResource/>
|
161
|
+
<rasd:InstanceID>3000</rasd:InstanceID>
|
162
|
+
<rasd:Parent>3</rasd:Parent>
|
163
|
+
<rasd:ResourceType>15</rasd:ResourceType>
|
164
|
+
<vmw:Config ovf:required="false" vmw:key="backing.exclusive" vmw:value="false"/>
|
165
|
+
</ovf:Item>
|
166
|
+
<vmw:Config ovf:required="false" vmw:key="cpuHotAddEnabled" vmw:value="false"/>
|
167
|
+
<vmw:Config ovf:required="false" vmw:key="cpuHotRemoveEnabled" vmw:value="false"/>
|
168
|
+
<vmw:Config ovf:required="false" vmw:key="firmware" vmw:value="bios"/>
|
169
|
+
<vmw:Config ovf:required="false" vmw:key="virtualICH7MPresent" vmw:value="false"/>
|
170
|
+
<vmw:Config ovf:required="false" vmw:key="virtualSMCPresent" vmw:value="false"/>
|
171
|
+
<vmw:Config ovf:required="false" vmw:key="memoryHotAddEnabled" vmw:value="false"/>
|
172
|
+
<vmw:Config ovf:required="false" vmw:key="nestedHVEnabled" vmw:value="false"/>
|
173
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.powerOffType" vmw:value="soft"/>
|
174
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.resetType" vmw:value="soft"/>
|
175
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.standbyAction" vmw:value="checkpoint"/>
|
176
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.suspendType" vmw:value="hard"/>
|
177
|
+
<vmw:Config ovf:required="false" vmw:key="tools.afterPowerOn" vmw:value="true"/>
|
178
|
+
<vmw:Config ovf:required="false" vmw:key="tools.afterResume" vmw:value="true"/>
|
179
|
+
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestShutdown" vmw:value="true"/>
|
180
|
+
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestStandby" vmw:value="true"/>
|
181
|
+
<vmw:Config ovf:required="false" vmw:key="tools.syncTimeWithHost" vmw:value="false"/>
|
182
|
+
<vmw:Config ovf:required="false" vmw:key="tools.toolsUpgradePolicy" vmw:value="manual"/>
|
183
|
+
<vmw:Config ovf:required="false" vmw:key="uuid" vmw:value="42205234-eef8-75f1-2f60-1c14b03559a5"/>
|
184
|
+
</ovf:VirtualHardwareSection>
|
185
|
+
<vcloud:GuestCustomizationSection ovf:required="false">
|
186
|
+
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
|
187
|
+
<vcloud:Enabled>false</vcloud:Enabled>
|
188
|
+
<vcloud:ChangeSid>false</vcloud:ChangeSid>
|
189
|
+
<vcloud:VirtualMachineId>595416d8-2b1a-4f45-86c7-56244a548f1a</vcloud:VirtualMachineId>
|
190
|
+
<vcloud:JoinDomainEnabled>false</vcloud:JoinDomainEnabled>
|
191
|
+
<vcloud:UseOrgSettings>false</vcloud:UseOrgSettings>
|
192
|
+
<vcloud:AdminPasswordEnabled>true</vcloud:AdminPasswordEnabled>
|
193
|
+
<vcloud:AdminPasswordAuto>true</vcloud:AdminPasswordAuto>
|
194
|
+
<vcloud:ResetPasswordRequired>false</vcloud:ResetPasswordRequired>
|
195
|
+
<vcloud:ComputerName>db-vm</vcloud:ComputerName>
|
196
|
+
</vcloud:GuestCustomizationSection>
|
197
|
+
<vcloud:NetworkConnectionSection ovf:required="false">
|
198
|
+
<ovf:Info>Specifies the available VM network connections</ovf:Info>
|
199
|
+
<vcloud:PrimaryNetworkConnectionIndex>0</vcloud:PrimaryNetworkConnectionIndex>
|
200
|
+
<vcloud:NetworkConnection needsCustomization="true" network="none">
|
201
|
+
<vcloud:NetworkConnectionIndex>0</vcloud:NetworkConnectionIndex>
|
202
|
+
<vcloud:IsConnected>false</vcloud:IsConnected>
|
203
|
+
<vcloud:MACAddress>00:50:56:01:00:5e</vcloud:MACAddress>
|
204
|
+
<vcloud:IpAddressAllocationMode>NONE</vcloud:IpAddressAllocationMode>
|
205
|
+
</vcloud:NetworkConnection>
|
206
|
+
</vcloud:NetworkConnectionSection>
|
207
|
+
</ovf:VirtualSystem>
|
208
|
+
<ovf:VirtualSystem ovf:id="Web VM">
|
209
|
+
<ovf:Info>A virtual machine</ovf:Info>
|
210
|
+
<ovf:Name>Web VM</ovf:Name>
|
211
|
+
<ovf:OperatingSystemSection ovf:id="1" vmw:osType="windows9Server64Guest">
|
212
|
+
<ovf:Info>Specifies the operating system installed</ovf:Info>
|
213
|
+
<ovf:Description>Microsoft Windows Server 2016 (64-bit)</ovf:Description>
|
214
|
+
</ovf:OperatingSystemSection>
|
215
|
+
<ovf:VirtualHardwareSection ovf:transport="">
|
216
|
+
<ovf:Info>Virtual hardware requirements</ovf:Info>
|
217
|
+
<ovf:System>
|
218
|
+
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
|
219
|
+
<vssd:InstanceID>0</vssd:InstanceID>
|
220
|
+
<vssd:VirtualSystemIdentifier>Web VM</vssd:VirtualSystemIdentifier>
|
221
|
+
<vssd:VirtualSystemType>vmx-13</vssd:VirtualSystemType>
|
222
|
+
</ovf:System>
|
223
|
+
<ovf:Item>
|
224
|
+
<rasd:Address>00:50:56:01:00:5c</rasd:Address>
|
225
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
226
|
+
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
|
227
|
+
<rasd:Connection vcloud:ipAddressingMode="MANUAL" vcloud:ipAddress="192.168.43.100" vcloud:primaryNetworkConnection="true">Private network 43</rasd:Connection>
|
228
|
+
<rasd:Description>E1000s ethernet adapter on "Private network 43"</rasd:Description>
|
229
|
+
<rasd:ElementName>Network adapter 0</rasd:ElementName>
|
230
|
+
<rasd:InstanceID>1</rasd:InstanceID>
|
231
|
+
<rasd:ResourceSubType>E1000E</rasd:ResourceSubType>
|
232
|
+
<rasd:ResourceType>10</rasd:ResourceType>
|
233
|
+
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true"/>
|
234
|
+
</ovf:Item>
|
235
|
+
<ovf:Item>
|
236
|
+
<rasd:Address>00:50:56:01:00:5d</rasd:Address>
|
237
|
+
<rasd:AddressOnParent>1</rasd:AddressOnParent>
|
238
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
239
|
+
<rasd:Connection vcloud:ipAddressingMode="NONE" vcloud:primaryNetworkConnection="false">none</rasd:Connection>
|
240
|
+
<rasd:Description>E1000s ethernet adapter on "none"</rasd:Description>
|
241
|
+
<rasd:ElementName>Network adapter 1</rasd:ElementName>
|
242
|
+
<rasd:InstanceID>2</rasd:InstanceID>
|
243
|
+
<rasd:ResourceSubType>E1000E</rasd:ResourceSubType>
|
244
|
+
<rasd:ResourceType>10</rasd:ResourceType>
|
245
|
+
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true"/>
|
246
|
+
</ovf:Item>
|
247
|
+
<ovf:Item>
|
248
|
+
<rasd:Address>0</rasd:Address>
|
249
|
+
<rasd:Description>SCSI Controller</rasd:Description>
|
250
|
+
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
|
251
|
+
<rasd:InstanceID>3</rasd:InstanceID>
|
252
|
+
<rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
|
253
|
+
<rasd:ResourceType>6</rasd:ResourceType>
|
254
|
+
</ovf:Item>
|
255
|
+
<ovf:Item>
|
256
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
257
|
+
<rasd:Description>Hard disk</rasd:Description>
|
258
|
+
<rasd:ElementName>Hard disk 1</rasd:ElementName>
|
259
|
+
<rasd:HostResource vcloud:busType="6" vcloud:busSubType="lsilogicsas" vcloud:capacity="5120"/>
|
260
|
+
<rasd:InstanceID>2000</rasd:InstanceID>
|
261
|
+
<rasd:Parent>3</rasd:Parent>
|
262
|
+
<rasd:ResourceType>17</rasd:ResourceType>
|
263
|
+
<rasd:VirtualQuantity>5368709120</rasd:VirtualQuantity>
|
264
|
+
<rasd:VirtualQuantityUnits>byte</rasd:VirtualQuantityUnits>
|
265
|
+
<vmw:Config ovf:required="false" vmw:key="backing.writeThrough" vmw:value="false"/>
|
266
|
+
</ovf:Item>
|
267
|
+
<ovf:Item>
|
268
|
+
<rasd:Address>0</rasd:Address>
|
269
|
+
<rasd:Description>IDE Controller</rasd:Description>
|
270
|
+
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
|
271
|
+
<rasd:InstanceID>4</rasd:InstanceID>
|
272
|
+
<rasd:ResourceType>5</rasd:ResourceType>
|
273
|
+
</ovf:Item>
|
274
|
+
<ovf:Item>
|
275
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
276
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
277
|
+
<rasd:Description>Floppy Drive</rasd:Description>
|
278
|
+
<rasd:ElementName>Floppy Drive 1</rasd:ElementName>
|
279
|
+
<rasd:HostResource/>
|
280
|
+
<rasd:InstanceID>8000</rasd:InstanceID>
|
281
|
+
<rasd:ResourceType>14</rasd:ResourceType>
|
282
|
+
</ovf:Item>
|
283
|
+
<ovf:Item>
|
284
|
+
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
|
285
|
+
<rasd:Description>Number of Virtual CPUs</rasd:Description>
|
286
|
+
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
|
287
|
+
<rasd:InstanceID>5</rasd:InstanceID>
|
288
|
+
<rasd:Reservation>0</rasd:Reservation>
|
289
|
+
<rasd:ResourceType>3</rasd:ResourceType>
|
290
|
+
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
|
291
|
+
<rasd:Weight>0</rasd:Weight>
|
292
|
+
</ovf:Item>
|
293
|
+
<ovf:Item>
|
294
|
+
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
|
295
|
+
<rasd:Description>Memory Size</rasd:Description>
|
296
|
+
<rasd:ElementName>512 MB of memory</rasd:ElementName>
|
297
|
+
<rasd:InstanceID>6</rasd:InstanceID>
|
298
|
+
<rasd:Reservation>0</rasd:Reservation>
|
299
|
+
<rasd:ResourceType>4</rasd:ResourceType>
|
300
|
+
<rasd:VirtualQuantity>512</rasd:VirtualQuantity>
|
301
|
+
<rasd:Weight>0</rasd:Weight>
|
302
|
+
</ovf:Item>
|
303
|
+
<ovf:Item>
|
304
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
305
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
306
|
+
<rasd:Description>CD/DVD Drive</rasd:Description>
|
307
|
+
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
|
308
|
+
<rasd:HostResource/>
|
309
|
+
<rasd:InstanceID>3000</rasd:InstanceID>
|
310
|
+
<rasd:Parent>4</rasd:Parent>
|
311
|
+
<rasd:ResourceType>15</rasd:ResourceType>
|
312
|
+
<vmw:Config ovf:required="false" vmw:key="backing.exclusive" vmw:value="false"/>
|
313
|
+
</ovf:Item>
|
314
|
+
<vmw:Config ovf:required="false" vmw:key="cpuHotAddEnabled" vmw:value="false"/>
|
315
|
+
<vmw:Config ovf:required="false" vmw:key="cpuHotRemoveEnabled" vmw:value="false"/>
|
316
|
+
<vmw:Config ovf:required="false" vmw:key="firmware" vmw:value="bios"/>
|
317
|
+
<vmw:Config ovf:required="false" vmw:key="virtualICH7MPresent" vmw:value="false"/>
|
318
|
+
<vmw:Config ovf:required="false" vmw:key="virtualSMCPresent" vmw:value="false"/>
|
319
|
+
<vmw:Config ovf:required="false" vmw:key="memoryHotAddEnabled" vmw:value="false"/>
|
320
|
+
<vmw:Config ovf:required="false" vmw:key="nestedHVEnabled" vmw:value="false"/>
|
321
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.powerOffType" vmw:value="soft"/>
|
322
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.resetType" vmw:value="soft"/>
|
323
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.standbyAction" vmw:value="checkpoint"/>
|
324
|
+
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.suspendType" vmw:value="hard"/>
|
325
|
+
<vmw:Config ovf:required="false" vmw:key="tools.afterPowerOn" vmw:value="true"/>
|
326
|
+
<vmw:Config ovf:required="false" vmw:key="tools.afterResume" vmw:value="true"/>
|
327
|
+
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestShutdown" vmw:value="true"/>
|
328
|
+
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestStandby" vmw:value="true"/>
|
329
|
+
<vmw:Config ovf:required="false" vmw:key="tools.syncTimeWithHost" vmw:value="false"/>
|
330
|
+
<vmw:Config ovf:required="false" vmw:key="tools.toolsUpgradePolicy" vmw:value="manual"/>
|
331
|
+
<vmw:Config ovf:required="false" vmw:key="uuid" vmw:value="4220da5d-6cef-a235-0694-d00c6efec85c"/>
|
332
|
+
</ovf:VirtualHardwareSection>
|
333
|
+
<vcloud:GuestCustomizationSection ovf:required="false">
|
334
|
+
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
|
335
|
+
<vcloud:Enabled>false</vcloud:Enabled>
|
336
|
+
<vcloud:ChangeSid>true</vcloud:ChangeSid>
|
337
|
+
<vcloud:VirtualMachineId>a436a184-b2cd-4c6d-b274-98caa6c3c7a1</vcloud:VirtualMachineId>
|
338
|
+
<vcloud:JoinDomainEnabled>false</vcloud:JoinDomainEnabled>
|
339
|
+
<vcloud:UseOrgSettings>false</vcloud:UseOrgSettings>
|
340
|
+
<vcloud:AdminPasswordEnabled>true</vcloud:AdminPasswordEnabled>
|
341
|
+
<vcloud:AdminPasswordAuto>true</vcloud:AdminPasswordAuto>
|
342
|
+
<vcloud:ResetPasswordRequired>false</vcloud:ResetPasswordRequired>
|
343
|
+
<vcloud:ComputerName>web-vm</vcloud:ComputerName>
|
344
|
+
</vcloud:GuestCustomizationSection>
|
345
|
+
<vcloud:NetworkConnectionSection ovf:required="false">
|
346
|
+
<ovf:Info>Specifies the available VM network connections</ovf:Info>
|
347
|
+
<vcloud:PrimaryNetworkConnectionIndex>0</vcloud:PrimaryNetworkConnectionIndex>
|
348
|
+
<vcloud:NetworkConnection needsCustomization="true" network="Private network 43">
|
349
|
+
<vcloud:NetworkConnectionIndex>0</vcloud:NetworkConnectionIndex>
|
350
|
+
<vcloud:IpAddress>192.168.43.100</vcloud:IpAddress>
|
351
|
+
<vcloud:IsConnected>true</vcloud:IsConnected>
|
352
|
+
<vcloud:MACAddress>00:50:56:01:00:5c</vcloud:MACAddress>
|
353
|
+
<vcloud:IpAddressAllocationMode>MANUAL</vcloud:IpAddressAllocationMode>
|
354
|
+
</vcloud:NetworkConnection>
|
355
|
+
<vcloud:NetworkConnection needsCustomization="true" network="none">
|
356
|
+
<vcloud:NetworkConnectionIndex>1</vcloud:NetworkConnectionIndex>
|
357
|
+
<vcloud:IsConnected>false</vcloud:IsConnected>
|
358
|
+
<vcloud:MACAddress>00:50:56:01:00:5d</vcloud:MACAddress>
|
359
|
+
<vcloud:IpAddressAllocationMode>NONE</vcloud:IpAddressAllocationMode>
|
360
|
+
</vcloud:NetworkConnection>
|
361
|
+
</vcloud:NetworkConnectionSection>
|
362
|
+
</ovf:VirtualSystem>
|
363
|
+
</ovf:VirtualSystemCollection>
|
364
|
+
</ovf:Envelope>
|