This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
vm-xml.go
437 lines (436 loc) · 18.9 KB
/
vm-xml.go
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
package main
const VM_XML = `<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
<configuration>
<_2497f4de-e9fa-4204-80e4-4b75c46419c0_>
<VDEVVersion type="integer">256</VDEVVersion>
</_2497f4de-e9fa-4204-80e4-4b75c46419c0_>
<_2a34b1c2-fd73-4043-8a5b-dd2159bc743f_>
<VDEVVersion type="integer">256</VDEVVersion>
</_2a34b1c2-fd73-4043-8a5b-dd2159bc743f_>
<_55225880-49c0-4438-9ce2-5a01402fd8cb_>
<ChannelInstanceGuid type="string">{b57a8519-55d4-47aa-be66-018ecb6260ff}</ChannelInstanceGuid>
<ClusterMonitored type="bool">True</ClusterMonitored>
<Connection>
<AltPortName type="string">Dynamic Ethernet Switch Port</AltPortName>
<AltSwitchName type="string">Virtual External Switch</AltSwitchName>
<AuthorizationScope type="string"></AuthorizationScope>
<ChimneyOffloadWeight type="integer">0</ChimneyOffloadWeight>
<Feature_C885BFD1-ABB7-418F-8163-9F379C9F7166>
<DisplayName type="string"></DisplayName>
<Flags type="integer">0</Flags>
<Setting_A0B25B27-C698-4120-AD49-4CBE3DC028C5>
<Data type="bytes">AAIAAGQAAAAAAAAAAQAAAAAAAAA=
</Data>
<Version type="integer">256</Version>
</Setting_A0B25B27-C698-4120-AD49-4CBE3DC028C5>
<Settings>
<Id type="string">A0B25B27-C698-4120-AD49-4CBE3DC028C5</Id>
</Settings>
</Feature_C885BFD1-ABB7-418F-8163-9F379C9F7166>
<Features>
<Id type="string">C885BFD1-ABB7-418F-8163-9F379C9F7166</Id>
</Features>
<HostResources>
<HostResource type="string">438B7B13-6180-4155-B7BF-08709CCF234D</HostResource>
</HostResources>
<PoolId type="string"></PoolId>
<PreventIPSpoofing type="bool">False</PreventIPSpoofing>
<TestReplicaPoolId type="string"></TestReplicaPoolId>
<TestReplicaSwitchName type="string"></TestReplicaSwitchName>
</Connection>
<FriendlyName type="string">Network Adapter</FriendlyName>
<IsConnected type="bool">True</IsConnected>
<MacAddress type="string">00-15-5D-01-07-DC</MacAddress>
<MacAddressIsStatic type="bool">False</MacAddressIsStatic>
<PortName type="string">87279691-8C7B-4C18-A0CB-52B86BD450D5</PortName>
<SwitchName type="string">438B7B13-6180-4155-B7BF-08709CCF234D</SwitchName>
<VDEVVersion type="integer">256</VDEVVersion>
<VpciInstanceGuid type="string">{CAD85457-9B61-44A0-B29F-15AD80A59E19}</VpciInstanceGuid>
</_55225880-49c0-4438-9ce2-5a01402fd8cb_>
<_58f75a6d-d949-4320-99e1-a2a2576d581c_>
<VDEVVersion type="integer">512</VDEVVersion>
</_58f75a6d-d949-4320-99e1-a2a2576d581c_>
<_5ced1297-4598-4915-a5fc-ad21bb4d02a4_>
<VDEVVersion type="integer">256</VDEVVersion>
</_5ced1297-4598-4915-a5fc-ad21bb4d02a4_>
<_655bc5c5-a784-46b7-81bc-e26328f7eb0e_>
<VDEVVersion type="integer">512</VDEVVersion>
</_655bc5c5-a784-46b7-81bc-e26328f7eb0e_>
<_6c09bb55-d683-4da0-8931-c9bf705f6480_>
<Enabled type="bool">False</Enabled>
<VDEVVersion type="integer">256</VDEVVersion>
</_6c09bb55-d683-4da0-8931-c9bf705f6480_>
<_6c5addb9-a11a-4e8e-84cb-e6208201db63_>
<VDEVVersion type="integer">512</VDEVVersion>
</_6c5addb9-a11a-4e8e-84cb-e6208201db63_>
<_7d80d3db-61ee-4879-8879-5609f1100ad0_>
<VDEVVersion type="integer">512</VDEVVersion>
<address type="string">5353,00000000,00</address>
</_7d80d3db-61ee-4879-8879-5609f1100ad0_>
<_83f8638b-8dca-4152-9eda-2ca8b33039b4_>
<VDEVVersion type="integer">1280</VDEVVersion>
<controller0>
<drive0>
<iops_limit type="integer">0</iops_limit>
<iops_reservation type="integer">0</iops_reservation>
<pathname type="string">INSERT_VHD_PATH_HERE</pathname>
<persistent_reservations_supported type="bool">False</persistent_reservations_supported>
<type type="string">VHD</type>
<weight type="integer">100</weight>
</drive0>
<drive1>
<pathname type="string"></pathname>
<type type="string">NONE</type>
</drive1>
</controller0>
<controller1>
<drive0>
<pathname type="string"></pathname>
<type type="string">ISO</type>
</drive0>
<drive1>
<pathname type="string"></pathname>
<type type="string">NONE</type>
</drive1>
</controller1>
</_83f8638b-8dca-4152-9eda-2ca8b33039b4_>
<_84eaae65-2f2e-45f5-9bb5-0e857dc8eb47_>
<VDEVVersion type="integer">256</VDEVVersion>
</_84eaae65-2f2e-45f5-9bb5-0e857dc8eb47_>
<_8e3a359f-559a-4b6a-98a9-1690a6100ed7_>
<VDEVVersion type="integer">512</VDEVVersion>
<port0>
<connection type="string"></connection>
</port0>
<port1>
<connection type="string"></connection>
</port1>
</_8e3a359f-559a-4b6a-98a9-1690a6100ed7_>
<_8f0d2762-0b00-4e04-af4f-19010527cb93_>
<VDEVVersion type="integer">256</VDEVVersion>
<controller0>
<drive0>
<pathname type="string"></pathname>
<type type="string">VFD</type>
</drive0>
</controller0>
</_8f0d2762-0b00-4e04-af4f-19010527cb93_>
<_9f8233ac-be49-4c79-8ee3-e7e1985b2077_>
<VDEVVersion type="integer">256</VDEVVersion>
</_9f8233ac-be49-4c79-8ee3-e7e1985b2077_>
<_ac6b8dc1-3257-4a70-b1b2-a9c9215659ad_>
<VDEVVersion type="integer">512</VDEVVersion>
<base_board>
<serial_number type="string">1981-9952-3234-1295-3674-7651-98</serial_number>
</base_board>
<bios_guid type="string">{7FFEE066-9755-4950-9A16-4C94AC67AD00}</bios_guid>
<bios_serial_number type="string">1981-9952-3234-1295-3674-7651-98</bios_serial_number>
<boot>
<device0 type="string">Optical</device0>
<device1 type="string">HardDrive</device1>
<device2 type="string">Network</device2>
<device3 type="string">Floppy</device3>
</boot>
<chassis>
<asset_tag type="string">1981-9952-3234-1295-3674-7651-98</asset_tag>
<serial_number type="string">1981-9952-3234-1295-3674-7651-98</serial_number>
</chassis>
<num_lock type="bool">False</num_lock>
<pause_after_boot_failure type="bool">False</pause_after_boot_failure>
<pxe_preferred_protocol type="integer">4</pxe_preferred_protocol>
<secure_boot_enabled type="bool">False</secure_boot_enabled>
</_ac6b8dc1-3257-4a70-b1b2-a9c9215659ad_>
<_d7a36e9b-9256-4f0d-be2c-3a13887f7b03_>
<ChannelInstanceGuid type="string">{125506a8-a651-4852-87ad-3e7a29dd07fa}</ChannelInstanceGuid>
<VDEVVersion type="integer">256</VDEVVersion>
</_d7a36e9b-9256-4f0d-be2c-3a13887f7b03_>
<_de6cdc86-e1fb-4940-801b-c3c1a26c4da4_>
<VDEVVersion type="integer">256</VDEVVersion>
</_de6cdc86-e1fb-4940-801b-c3c1a26c4da4_>
<_e51b7ef6-4a7f-4780-aaae-d4b291aacd2e_>
<RtcDevice>
<CmosUtcSkew type="integer">-288005458208</CmosUtcSkew>
</RtcDevice>
<VDEVVersion type="integer">256</VDEVVersion>
</_e51b7ef6-4a7f-4780-aaae-d4b291aacd2e_>
<_f3cf6965-e8d3-44a9-9b7d-a04245ea7525_>
<VDEVVersion type="integer">256</VDEVVersion>
</_f3cf6965-e8d3-44a9-9b7d-a04245ea7525_>
<global_settings>
<devices>
<allow_reduced_fc_redundancy type="bool">False</allow_reduced_fc_redundancy>
<generation_id type="string">fd66d6917bb7cdbf9a906875a3cf499b</generation_id>
<storage_allow_full_scsi_command_set type="bool">False</storage_allow_full_scsi_command_set>
</devices>
<disk_merge_pending type="bool">False</disk_merge_pending>
<metrics>
<devicetype>
<deviceinstance>
<guid type="string">B637F346-6A0E-4DEC-AF52-BD70CB80A21D</guid>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">B637F347-6A0E-4DEC-AF52-BD70CB80A21D</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">3F6F1051-C8FC-47EF-9821-C07240848748;0</typecode>
<value type="integer">0</value>
</metric>
</deviceinstance>
<guid type="string">B637F346-6A0E-4DEC-AF52-BD70CB80A21D</guid>
</devicetype>
<devicetype>
<deviceinstance>
<guid type="string">4764334D-E001-4176-82EE-5594EC9B530E</guid>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">4764334E-E001-4176-82EE-5594EC9B530E</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">394DCE66-458F-4895-AE56-41D7C9602A49</typecode>
<value type="integer">0</value>
</metric>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">4764334E-E001-4176-82EE-5594EC9B530E</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">FF85EA46-9933-4436-BE5D-C96827399966</typecode>
<value type="integer">0</value>
</metric>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">4764334E-E001-4176-82EE-5594EC9B530E</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">04BDF59E-580D-4441-8828-FFFE44472D2D</typecode>
<value type="integer">0</value>
</metric>
</deviceinstance>
<guid type="string">4764334D-E001-4176-82EE-5594EC9B530E</guid>
</devicetype>
<devicetype>
<deviceinstance>
<guid type="string">83F8638B-8DCA-4152-9EDA-2CA8B33039B4</guid>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">70BB60D2-A9D3-46AA-B654-3DE53004B4F8</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">AD29978B-AAB6-44AE-81CD-0609BF929F18;0\0\L</typecode>
<value type="integer">0</value>
</metric>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">70BB60D2-A9D3-46AA-B654-3DE53004B4F8</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">A4BCA0D9-C27D-4BC8-A7E3-7ED13C89E373;0\0\L</typecode>
<value type="integer">0</value>
</metric>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">70BB60D2-A9D3-46AA-B654-3DE53004B4F8</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">72544D55-3035-41DA-B9D7-6C5A39BF8F35;0\0\L</typecode>
<value type="integer">0</value>
</metric>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">70BB60D2-A9D3-46AA-B654-3DE53004B4F8</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">A9DFBC22-E05F-438D-9405-22E2078353D6;0\0\L</typecode>
<value type="integer">0</value>
</metric>
<metric>
<enabled type="bool">False</enabled>
<lastcomputedtime type="integer">0</lastcomputedtime>
<peaktime type="integer">0</peaktime>
<poolid type="string"></poolid>
<resourcetypeid type="string">70BB60D2-A9D3-46AA-B654-3DE53004B4F8</resourcetypeid>
<starttime type="integer">0</starttime>
<typecode type="string">534FA8D7-9875-4FAB-BAA6-2424DF29B31E;0\0\L</typecode>
<value type="integer">0</value>
</metric>
</deviceinstance>
<guid type="string">83F8638B-8DCA-4152-9EDA-2CA8B33039B4</guid>
</devicetype>
</metrics>
<owner>
<sid type="string">S-1-5-21-805543585-96907229-3301423255-1001</sid>
</owner>
<power>
<host_shutdown>
<action type="integer">1</action>
</host_shutdown>
<host_startup>
<action type="integer">1</action>
</host_startup>
</power>
<snapshots>
<list>
<size type="integer">0</size>
</list>
</snapshots>
<unexpected_termination>
<action type="integer">1</action>
</unexpected_termination>
<vhd_path_acled type="bool">True</vhd_path_acled>
</global_settings>
<manifest>
<size type="integer">13</size>
<vdev001>
<device type="string">58f75a6d-d949-4320-99e1-a2a2576d581c</device>
<flags type="integer">1</flags>
<instance type="string">58F75A6D-D949-4320-99E1-A2A2576D581C</instance>
<name type="string">Microsoft Synthetic Mouse</name>
</vdev001>
<vdev002>
<device type="string">197f74e3-b84b-46de-8ae6-82f1cd181cdc</device>
<flags type="integer">1</flags>
<instance type="string">197F74E3-B84B-46DE-8AE6-82F1CD181CDC</instance>
<name type="string">Microsoft Synthetic Keyboard</name>
</vdev002>
<vdev003>
<device type="string">f3cf6965-e8d3-44a9-9b7d-a04245ea7525</device>
<flags type="integer">1</flags>
<instance type="string">F3CF6965-E8D3-44A9-9B7D-A04245EA7525</instance>
<name type="string">Microsoft Synthetic Video</name>
</vdev003>
<vdev004>
<device type="string">bc12c717-8898-4688-8ee4-2cd14894f8ea</device>
<flags type="integer">1</flags>
<instance type="string">BC12C717-8898-4688-8EE4-2CD14894F8EA</instance>
<name type="string">Microsoft Hyper-V Activation Component</name>
</vdev004>
<vdev005>
<device type="string">6c09bb55-d683-4da0-8931-c9bf705f6480</device>
<flags type="integer">1</flags>
<instance type="string">6C09BB55-D683-4DA0-8931-C9BF705F6480</instance>
<name type="string">Microsoft Guest Interface Component</name>
</vdev005>
<vdev006>
<device type="string">84eaae65-2f2e-45f5-9bb5-0e857dc8eb47</device>
<flags type="integer">1</flags>
<instance type="string">84EAAE65-2F2E-45F5-9BB5-0E857DC8EB47</instance>
<name type="string">Microsoft Heartbeat Component</name>
</vdev006>
<vdev007>
<device type="string">2a34b1c2-fd73-4043-8a5b-dd2159bc743f</device>
<flags type="integer">1</flags>
<instance type="string">2A34B1C2-FD73-4043-8A5B-DD2159BC743F</instance>
<name type="string">Microsoft Key-Value Pair Exchange Component</name>
</vdev007>
<vdev008>
<device type="string">9f8233ac-be49-4c79-8ee3-e7e1985b2077</device>
<flags type="integer">1</flags>
<instance type="string">9F8233AC-BE49-4C79-8EE3-E7E1985B2077</instance>
<name type="string">Microsoft Shutdown Component</name>
</vdev008>
<vdev009>
<device type="string">2497f4de-e9fa-4204-80e4-4b75c46419c0</device>
<flags type="integer">1</flags>
<instance type="string">2497F4DE-E9FA-4204-80E4-4B75C46419C0</instance>
<name type="string">Microsoft Time Synchronization Component</name>
</vdev009>
<vdev010>
<device type="string">5ced1297-4598-4915-a5fc-ad21bb4d02a4</device>
<flags type="integer">1</flags>
<instance type="string">5CED1297-4598-4915-A5FC-AD21BB4D02A4</instance>
<name type="string">Microsoft VSS Component</name>
</vdev010>
<vdev011>
<device type="string">6c5addb9-a11a-4e8e-84cb-e6208201db63</device>
<flags type="integer">1</flags>
<instance type="string">6C5ADDB9-A11A-4E8E-84CB-E6208201DB63</instance>
<name type="string">Microsoft RDV Component</name>
</vdev011>
<vdev012>
<device type="string">2fc216b0-d2e2-4967-9b6d-b8a5c9ca2778</device>
<flags type="integer">1</flags>
<instance type="string">55225880-49C0-4438-9CE2-5A01402FD8CB</instance>
<name type="string">Synthetic Ethernet Port</name>
</vdev012>
<vdev013>
<device type="string">d422512d-2bf2-4752-809d-7b82b5fcb1b4</device>
<flags type="integer">1</flags>
<instance type="string">D7A36E9B-9256-4F0D-BE2C-3A13887F7B03</instance>
<name type="string">Synthetic SCSI Controller</name>
</vdev013>
<version type="integer">260</version>
</manifest>
<properties>
<creation_time type="bytes">j3iz2977zwE=
</creation_time>
<global_id type="string">0AA394FA-7C4A-4070-BA32-773D43B28A68</global_id>
<highly_available type="bool">False</highly_available>
<last_powered_off_time type="integer">130599959406707888</last_powered_off_time>
<last_powered_on_time type="integer">130599954966442599</last_powered_on_time>
<last_state_change_time type="integer">130599962187797355</last_state_change_time>
<name type="string">INSERT_VM_NAME_HERE</name>
<notes type="string"></notes>
<subtype type="integer">0</subtype>
<type_id type="string">Virtual Machines</type_id>
<version type="integer">1280</version>
</properties>
<settings>
<global>
<logical_id type="string">0AA394FA-7C4A-4070-BA32-773D43B28A68</logical_id>
</global>
<memory>
<bank>
<dynamic_memory_enabled type="bool">False</dynamic_memory_enabled>
<limit type="integer">1048576</limit>
<priority type="integer">5000</priority>
<reservation type="integer">512</reservation>
<size type="integer">1024</size>
<target_memory_buffer type="integer">20</target_memory_buffer>
</bank>
<vnuma>
<max_size_per_node type="integer">6610</max_size_per_node>
</vnuma>
</memory>
<processors>
<count type="integer">1</count>
<features>
<limit type="bool">False</limit>
</features>
<limit type="integer">100000</limit>
<limit_cpuid type="bool">False</limit_cpuid>
<reservation type="integer">0</reservation>
<vnuma>
<count_per_node>
<max type="integer">4</max>
</count_per_node>
<node_per_socket>
<max type="integer">1</max>
</node_per_socket>
</vnuma>
<weight type="integer">100</weight>
</processors>
<stopped_at_host_shutdown type="bool">False</stopped_at_host_shutdown>
<topology>
<low_mmio_gap_mb type="integer">128</low_mmio_gap_mb>
</topology>
<vnuma>
<enabled type="bool">True</enabled>
</vnuma>
</settings>
</configuration>`