summaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel/upstream-backports/0004-Fuel-rework-for-multiple-libvirt.patch
blob: 271e0fa027577aa6217add018485326a06652b1f (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
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
From: cristinapauna <cristina.pauna@enea.com>
Date: Fri, 25 Nov 2016 16:38:46 +0200
Subject: [PATCH] Fuel rework for multiple libvirt

The current fuel arhitecture assumes that all the VMs
(Jenkins slave, Fuel master and Target nodes) are all on
the same server. There is code that allows the Fuel master
to be on a different machine, but nothing for the Target nodes.
In Enea-Arm lab we have a different server for each.

This commit also adds specific templates for a virtual pod in
the Enea-Arm lab.

Therefore, the following changes are done:
- The default libvirt URI is the machine on which the Target nodes are
- The parameter libvirtUri was added in the dha.yaml file for fuel master
- All virsh calls have "-c" option to explicitly specify the uri; this parameter
  is set only when libvirtUri is explicitly set in the yaml file
- The scenarios dha override now point to the arm template files
- The network templates are not needed for ARM, as the network infra is provided
  by the server on which the Target node VMs reside; the folder is added here
  just for consistency
- The target nodes are created with virsh rather than quemu when the nodes are
  not on the same machine as Jenkins slave (similar logic to what is done for
  remote Fuel master)

Initially only ha scenarios were successfully deployed on virtual pods
The default configuration is for ha scenarios and those have 5 target nodes
while on the noha scenarios there are 4. The noha scenarios failed because
it was trying to parse one extra node.

The dea and dha files need to be modified for each noha scenario so that the
nodes are properly configured.

Signed-off-by: cristinapauna <cristina.pauna@enea.com>
---
 deploy/dha_adapters/hardware_adapter.py            |  5 ++
 deploy/dha_adapters/libvirt_adapter.py             | 42 ++++-----
 deploy/environments/execution_environment.py       | 19 +++--
 deploy/environments/libvirt_environment.py         | 59 ++++++++++++-
 deploy/environments/virtual_fuel.py                |  8 +-
 deploy/install_fuel_master.py                      |  2 +-
 deploy/scenario/ha_heat_ceilometer_scenario.yaml   | 13 +--
 .../ha_nfv-kvm_heat_ceilometer_scenario.yaml       | 13 +--
 .../ha_nfv-ovs_heat_ceilometer_scenario.yaml       | 13 +--
 deploy/scenario/ha_odl-bgpvpn_scenario.yaml        | 13 +--
 .../ha_odl-l2_heat_ceilometer_scenario.yaml        | 13 +--
 .../ha_odl-l2_sfc_heat_ceilometer_scenario.yaml    | 13 +--
 .../ha_odl-l3_heat_ceilometer_scenario.yaml        | 13 +--
 ...ha_onos_nofeature_heat_ceilometer_scenario.yaml | 13 +--
 .../ha_onos_sfc_heat_ceilometer_scenario.yaml      | 13 +--
 .../scenario/ha_vlan_heat_ceilometer_scenario.yaml | 13 +--
 .../scenario/no-ha_heat_ceilometer_scenario.yaml   | 25 ++++++
 .../no-ha_nfv-kvm_heat_ceilometer_scenario.yaml    | 25 ++++++
 ...a_nfv-kvm_nfv-ovs_heat_ceilometer_scenario.yaml | 25 ++++++
 .../no-ha_nfv-ovs_heat_ceilometer_scenario.yaml    | 26 +++++-
 deploy/scenario/no-ha_odl-bgpvpn_scenario.yaml     | 25 ++++++
 .../no-ha_odl-l2_heat_ceilometer_scenario.yaml     | 25 ++++++
 .../no-ha_odl-l2_sfc_heat_ceilometer_scenario.yaml | 25 ++++++
 .../no-ha_odl-l3_heat_ceilometer_scenario.yaml     | 25 ++++++
 ...ha_onos_nofeature_heat_ceilometer_scenario.yaml | 26 ++++++
 .../no-ha_onos_sfc_heat_ceilometer_scenario.yaml   | 25 ++++++
 .../no-ha_vlan_heat_ceilometer_scenario.yaml       | 25 ++++++
 .../arm/virtual_environment/networks/.gitkeep      |  0
 .../arm/virtual_environment/vms/compute.xml        | 57 +++++++++++++
 .../arm/virtual_environment/vms/controller.xml     | 57 +++++++++++++
 .../templates/arm/virtual_environment/vms/fuel.xml | 99 ++++++++++++++++++++++
 31 files changed, 658 insertions(+), 97 deletions(-)
 create mode 100644 deploy/templates/arm/virtual_environment/networks/.gitkeep
 create mode 100644 deploy/templates/arm/virtual_environment/vms/compute.xml
 create mode 100644 deploy/templates/arm/virtual_environment/vms/controller.xml
 create mode 100644 deploy/templates/arm/virtual_environment/vms/fuel.xml

diff --git a/deploy/dha_adapters/hardware_adapter.py b/deploy/dha_adapters/hardware_adapter.py
index aa59581..cf3d77a 100644
--- a/deploy/dha_adapters/hardware_adapter.py
+++ b/deploy/dha_adapters/hardware_adapter.py
@@ -63,3 +63,8 @@ class HardwareAdapter(object):
         vm_definition = self.dha_struct.get('define_vms')
         if vm_definition:
             return vm_definition.get(role)
+    def get_node_uri(self, node_id):
+        vm_libvirt_uri = self.get_node_property(node_id, 'libvirtUri')
+        if vm_libvirt_uri:
+            return '-c %s' % vm_libvirt_uri
+        return ''
diff --git a/deploy/dha_adapters/libvirt_adapter.py b/deploy/dha_adapters/libvirt_adapter.py
index a00f091..34535d1 100644
--- a/deploy/dha_adapters/libvirt_adapter.py
+++ b/deploy/dha_adapters/libvirt_adapter.py
@@ -43,21 +43,21 @@ class LibvirtAdapter(HardwareAdapter):
     def node_power_off(self, node_id):
         vm_name = self.get_node_property(node_id, 'libvirtName')
         log('Power OFF Node %s' % vm_name)
-        state = exec_cmd('virsh domstate %s' % vm_name)
+        state = exec_cmd('virsh %s domstate %s' % (self.get_node_uri(node_id), vm_name))
         if state == 'running':
-            exec_cmd('virsh destroy %s' % vm_name, False)
+            exec_cmd('virsh %s destroy %s' % (self.get_node_uri(node_id), vm_name), False)
 
     def node_power_on(self, node_id):
         vm_name = self.get_node_property(node_id, 'libvirtName')
         log('Power ON Node %s' % vm_name)
-        state = exec_cmd('virsh domstate %s' % vm_name)
+        state = exec_cmd('virsh %s domstate %s' % (self.get_node_uri(node_id), vm_name))
         if state == 'shut off':
-            exec_cmd('virsh start %s' % vm_name)
+            exec_cmd('virsh %s start %s' % (self.get_node_uri(node_id), vm_name))
 
     def node_reset(self, node_id):
         vm_name = self.get_node_property(node_id, 'libvirtName')
         log('Reset Node %s' % vm_name)
-        exec_cmd('virsh reset %s' % vm_name)
+        exec_cmd('virsh %s reset %s' % (self.get_node_uri(node_id), vm_name))
 
     def translate(self, boot_order_list):
         translated = []
@@ -73,7 +73,7 @@ class LibvirtAdapter(HardwareAdapter):
         vm_name = self.get_node_property(node_id, 'libvirtName')
         temp_dir = tempfile.mkdtemp()
         log('Set boot order %s on Node %s' % (boot_order_list, vm_name))
-        resp = exec_cmd('virsh dumpxml %s' % vm_name)
+        resp = exec_cmd('virsh %s dumpxml %s' % (self.get_node_uri(node_id), vm_name))
         xml_dump = etree.fromstring(resp, self.parser)
         os = xml_dump.xpath('/domain/os')
         for o in os:
@@ -92,12 +92,12 @@ class LibvirtAdapter(HardwareAdapter):
         xml_file = temp_dir + '/%s.xml' % vm_name
         with open(xml_file, 'w') as f:
             tree.write(f, pretty_print=True, xml_declaration=True)
-        exec_cmd('virsh define %s' % xml_file)
+        exec_cmd('virsh %s define %s' % (self.get_node_uri(node_id), xml_file))
         delete(temp_dir)
 
     def node_zero_mbr(self, node_id):
         vm_name = self.get_node_property(node_id, 'libvirtName')
-        resp = exec_cmd('virsh dumpxml %s' % vm_name)
+        resp = exec_cmd('virsh %s dumpxml %s' % (self.get_node_uri(node_id), vm_name))
         xml_dump = etree.fromstring(resp)
         disks = xml_dump.xpath('/domain/devices/disk')
         for disk in disks:
@@ -114,20 +114,20 @@ class LibvirtAdapter(HardwareAdapter):
 
     def node_eject_iso(self, node_id):
         vm_name = self.get_node_property(node_id, 'libvirtName')
-        device = self.get_name_of_device(vm_name, 'cdrom')
-        exec_cmd('virsh change-media %s --eject %s --config --live'
-                 % (vm_name, device), False)
+        device = self.get_name_of_device(vm_name, 'cdrom', node_id)
+        exec_cmd('virsh %s change-media %s --eject %s --config --live'
+                 % (self.get_node_uri(node_id), vm_name, device), False)
 
     def node_insert_iso(self, node_id, iso_file):
         vm_name = self.get_node_property(node_id, 'libvirtName')
-        device = self.get_name_of_device(vm_name, 'cdrom')
-        exec_cmd('virsh change-media %s --insert %s %s'
-                 % (vm_name, device, iso_file))
+        device = self.get_name_of_device(vm_name, 'cdrom', node_id)
+        exec_cmd('virsh %s change-media %s --insert %s %s'
+                 % (self.get_node_uri(node_id), vm_name, device, iso_file))
 
     def get_node_pxe_mac(self, node_id):
         mac_list = []
         vm_name = self.get_node_property(node_id, 'libvirtName')
-        resp = exec_cmd('virsh dumpxml %s' % vm_name)
+        resp = exec_cmd('virsh %s dumpxml %s' % (self.get_node_uri(node_id), vm_name))
         xml_dump = etree.fromstring(resp)
         interfaces = xml_dump.xpath('/domain/devices/interface')
         for interface in interfaces:
@@ -136,8 +136,8 @@ class LibvirtAdapter(HardwareAdapter):
                 mac_list.append(mac.get('address').lower())
         return mac_list
 
-    def get_name_of_device(self, vm_name, device_type):
-        resp = exec_cmd('virsh dumpxml %s' % vm_name)
+    def get_name_of_device(self, vm_name, device_type, node_id):
+        resp = exec_cmd('virsh %s dumpxml %s' % (self.get_node_uri(node_id), vm_name))
         xml_dump = etree.fromstring(resp)
         disks = xml_dump.xpath('/domain/devices/disk')
         for disk in disks:
@@ -151,7 +151,7 @@ class LibvirtAdapter(HardwareAdapter):
     def get_virt_net_conf_dir(self):
         return self.dha_struct['virtNetConfDir']
 
-    def upload_iso(self, iso_file):
+    def upload_iso(self, node_id, iso_file):
         size = os.path.getsize(iso_file)
         vol_name = os.path.basename(iso_file)
         vol_xml = VOL_XML_TEMPLATE.format(name=vol_name, unit='bytes',
@@ -162,10 +162,10 @@ class LibvirtAdapter(HardwareAdapter):
 
         log(vol_xml)
         pool = DEFAULT_POOL # FIXME
-        exec_cmd('virsh vol-create --pool %s %s' % (pool, fname))
-        vol_path = exec_cmd('virsh vol-path --pool %s %s' % (pool, vol_name))
+        exec_cmd('virsh %s vol-create --pool %s %s' % (self.get_node_uri(node_id), pool, fname))
+        vol_path = exec_cmd('virsh %s vol-path --pool %s %s' % (self.get_node_uri(node_id), pool, vol_name))
 
-        exec_cmd('virsh vol-upload %s %s' % (vol_path, iso_file),
+        exec_cmd('virsh %s vol-upload %s %s' % (self.get_node_uri(node_id), vol_path, iso_file),
                  attempts=5, delay=10, verbose=True)
 
         delete(fname)
diff --git a/deploy/environments/execution_environment.py b/deploy/environments/execution_environment.py
index 7a0b474..db25229 100644
--- a/deploy/environments/execution_environment.py
+++ b/deploy/environments/execution_environment.py
@@ -29,12 +29,12 @@ class ExecutionEnvironment(object):
 
     def delete_vm(self, node_id):
         vm_name = self.dha.get_node_property(node_id, 'libvirtName')
-        r, c = exec_cmd('virsh dumpxml %s' % vm_name, False)
+        r, c = exec_cmd('virsh %s dumpxml %s' % (self.dha.get_node_uri(node_id), vm_name), False)
         if c:
             return
-        self.undefine_vm_delete_disk(r, vm_name)
+        self.undefine_vm_delete_disk(r, vm_name, node_id)
 
-    def undefine_vm_delete_disk(self, printout, vm_name):
+    def undefine_vm_delete_disk(self, printout, vm_name, node_id):
         disk_files = []
         xml_dump = etree.fromstring(printout, self.parser)
         disks = xml_dump.xpath('/domain/devices/disk')
@@ -45,8 +45,13 @@ class ExecutionEnvironment(object):
                 if source_file:
                     disk_files.append(source_file)
         log('Deleting VM %s with disks %s' % (vm_name, disk_files))
-        exec_cmd('virsh destroy %s' % vm_name, False)
-        exec_cmd('virsh undefine --managed-save --remove-all-storage %s' % vm_name, False)
+        exec_cmd('virsh %s destroy %s' % (self.dha.get_node_uri(node_id), vm_name), False)
+        r, c = exec_cmd('virsh %s undefine --managed-save --remove-all-storage %s' %
+                        (self.dha.get_node_uri(node_id), vm_name), False)
+        if c:
+            exec_cmd('virsh %s undefine --managed-save --remove-all-storage --nvram %s' %
+                     (self.dha.get_node_uri(node_id), vm_name), False)
+
         for file in disk_files:
             delete(file)
 
@@ -75,7 +80,7 @@ class ExecutionEnvironment(object):
                 self.overwrite_xml(xml_element, value)
 
     def define_vm(self, vm_name, temp_vm_file, disk_path,
-                  vm_definition_overwrite):
+                  vm_definition_overwrite, node_id):
         log('Creating VM %s with disks %s' % (vm_name, disk_path))
         with open(temp_vm_file) as f:
             vm_xml = etree.parse(f)
@@ -99,4 +104,4 @@ class ExecutionEnvironment(object):
                 disk.append(source)
         with open(temp_vm_file, 'w') as f:
             vm_xml.write(f, pretty_print=True, xml_declaration=True)
-        exec_cmd('virsh define %s' % temp_vm_file)
+        exec_cmd('virsh %s define %s' % (self.dha.get_node_uri(node_id), temp_vm_file))
diff --git a/deploy/environments/libvirt_environment.py b/deploy/environments/libvirt_environment.py
index 07a47fd..08d669b 100644
--- a/deploy/environments/libvirt_environment.py
+++ b/deploy/environments/libvirt_environment.py
@@ -12,6 +12,9 @@ from lxml import etree
 import glob
 from execution_environment import ExecutionEnvironment
 import tempfile
+import os
+import re
+import time
 
 from common import (
     exec_cmd,
@@ -21,6 +24,25 @@ from common import (
     delete,
 )
 
+VOL_XML_TEMPLATE = '''<volume type='file'>
+  <name>{name}</name>
+  <capacity unit='{unit}'>{size!s}</capacity>
+  <target>
+    <format type='{format_type}'/>
+  </target>
+</volume>'''
+
+DEFAULT_POOL = 'jenkins'
+
+def get_size_and_unit(s):
+    p = re.compile('^(\d+)\s*(\D+)')
+    m = p.match(s)
+    if m == None:
+        return None, None
+    size = m.groups()[0]
+    unit = m.groups()[1]
+    return size, unit
+
 
 class LibvirtEnvironment(ExecutionEnvironment):
 
@@ -33,10 +55,39 @@ class LibvirtEnvironment(ExecutionEnvironment):
         self.node_ids = self.dha.get_all_node_ids()
         self.net_names = self.collect_net_names()
 
-    def create_storage(self, node_id, disk_path, disk_sizes):
+    def create_volume(self, pool, name, su, node_id, temp_dir, img_type='raw'):
+        log('Creating image using Libvirt volumes in pool %s, name: %s, uri: %s' %
+            (pool, name, self.dha.get_node_uri(node_id)))
+        size, unit = get_size_and_unit(su)
+        if size == None:
+            err('Could not determine size and unit of %s' % s)
+
+        vol_xml = VOL_XML_TEMPLATE.format(name=name, unit=unit, size=size,
+                                          format_type=img_type)
+        fname = os.path.join(temp_dir, '%s_vol.xml' % name)
+        with file(fname, 'w') as f:
+            f.write(vol_xml)
+
+        exec_cmd('virsh %s vol-create --pool %s %s' %
+                 (self.dha.get_node_uri(node_id), pool, fname))
+        vol_path = exec_cmd('virsh %s vol-path --pool %s %s' %
+                            (self.dha.get_node_uri(node_id), pool, name))
+
+        delete(fname)
+        return vol_path
+
+
+    def create_storage(self, node_id, disk_path, disk_sizes, temp_dir):
         role = self.dea.get_node_main_role(node_id, self.fuel_node_id)
         disk_size = disk_sizes[role]
-        exec_cmd('qemu-img create -f raw %s %s' % (disk_path, disk_size))
+        if os.environ.get('LIBVIRT_DEFAULT_URI') == None:
+            exec_cmd('qemu-img create -f raw %s %s' % (disk_path, disk_size))
+        else:
+            pool = DEFAULT_POOL # FIXME
+            name = os.path.basename(disk_path)
+            disk_path = self.create_volume(pool, name, disk_size, node_id, temp_dir)
+        return disk_path
+
 
     def create_vms(self):
         temp_dir = tempfile.mkdtemp()
@@ -48,13 +99,13 @@ class LibvirtEnvironment(ExecutionEnvironment):
                                          node_id, 'libvirtTemplate'))
             check_file_exists(vm_template)
             disk_path = '%s/%s.raw' % (self.storage_dir, vm_name)
-            self.create_storage(node_id, disk_path, disk_sizes)
+            disk_path = self.create_storage(node_id, disk_path, disk_sizes, temp_dir)
             temp_vm_file = '%s/%s' % (temp_dir, vm_name)
             exec_cmd('cp %s %s' % (vm_template, temp_vm_file))
             vm_definition_overwrite = self.dha.get_vm_definition(
                  self.dea.get_node_main_role(node_id, self.fuel_node_id))
             self.define_vm(vm_name, temp_vm_file, disk_path,
-                           vm_definition_overwrite)
+                           vm_definition_overwrite, node_id)
         delete(temp_dir)
 
     def start_vms(self):
diff --git a/deploy/environments/virtual_fuel.py b/deploy/environments/virtual_fuel.py
index fcfa532..5f50f40 100644
--- a/deploy/environments/virtual_fuel.py
+++ b/deploy/environments/virtual_fuel.py
@@ -99,8 +99,10 @@ class VirtualFuel(ExecutionEnvironment):
         with file(fname, 'w') as f:
             f.write(vol_xml)
 
-        exec_cmd('virsh vol-create --pool %s %s' % (pool, fname))
-        vol_path = exec_cmd('virsh vol-path --pool %s %s' % (pool, name))
+        exec_cmd('virsh %s vol-create --pool %s %s' %
+                 (self.dha.get_node_uri(self.fuel_node_id), pool, fname))
+        vol_path = exec_cmd('virsh %s vol-path --pool %s %s' %
+                            (self.dha.get_node_uri(self.fuel_node_id), pool, name))
 
         delete(fname)
 
@@ -131,7 +133,7 @@ class VirtualFuel(ExecutionEnvironment):
         vm_definition_overwrite = self.dha.get_vm_definition('fuel')
 
         self.define_vm(self.vm_name, self.temp_vm_file, disk_path,
-                       vm_definition_overwrite)
+                       vm_definition_overwrite, self.fuel_node_id)
 
     def setup_environment(self):
         self.cleanup_environment()
diff --git a/deploy/install_fuel_master.py b/deploy/install_fuel_master.py
index 2d89c8e..2615818 100644
--- a/deploy/install_fuel_master.py
+++ b/deploy/install_fuel_master.py
@@ -59,7 +59,7 @@ class InstallFuelMaster(object):
 
         if os.environ.get('LIBVIRT_DEFAULT_URI'):
             log('Upload ISO to pool')
-            self.iso_file = self.dha.upload_iso(self.iso_file)
+            self.iso_file = self.dha.upload_iso(self.fuel_node_id, self.iso_file)
         else:
             log('Zero the MBR')
             self.dha.node_zero_mbr(self.fuel_node_id)
diff --git a/deploy/scenario/ha_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_heat_ceilometer_scenario.yaml
index 4051c47..78fa80d 100644
--- a/deploy/scenario/ha_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_heat_ceilometer_scenario.yaml
@@ -58,22 +58,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_nfv-kvm_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_nfv-kvm_heat_ceilometer_scenario.yaml
index 1217f72..bcdda61 100644
--- a/deploy/scenario/ha_nfv-kvm_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_nfv-kvm_heat_ceilometer_scenario.yaml
@@ -145,22 +145,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_nfv-ovs_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_nfv-ovs_heat_ceilometer_scenario.yaml
index 51deb4e..bee2d1a 100644
--- a/deploy/scenario/ha_nfv-ovs_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_nfv-ovs_heat_ceilometer_scenario.yaml
@@ -107,22 +107,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_odl-bgpvpn_scenario.yaml b/deploy/scenario/ha_odl-bgpvpn_scenario.yaml
index 7d52e77..46efc4b 100644
--- a/deploy/scenario/ha_odl-bgpvpn_scenario.yaml
+++ b/deploy/scenario/ha_odl-bgpvpn_scenario.yaml
@@ -77,22 +77,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_odl-l2_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_odl-l2_heat_ceilometer_scenario.yaml
index 90c89ae..50dde30 100644
--- a/deploy/scenario/ha_odl-l2_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_odl-l2_heat_ceilometer_scenario.yaml
@@ -77,22 +77,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_odl-l2_sfc_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_odl-l2_sfc_heat_ceilometer_scenario.yaml
index c478948..e20ec1a 100644
--- a/deploy/scenario/ha_odl-l2_sfc_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_odl-l2_sfc_heat_ceilometer_scenario.yaml
@@ -95,22 +95,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_odl-l3_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_odl-l3_heat_ceilometer_scenario.yaml
index 967e7d2..322dd27 100644
--- a/deploy/scenario/ha_odl-l3_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_odl-l3_heat_ceilometer_scenario.yaml
@@ -93,22 +93,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_onos_nofeature_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_onos_nofeature_heat_ceilometer_scenario.yaml
index f813458..88b8f6b 100644
--- a/deploy/scenario/ha_onos_nofeature_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_onos_nofeature_heat_ceilometer_scenario.yaml
@@ -88,22 +88,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_onos_sfc_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_onos_sfc_heat_ceilometer_scenario.yaml
index 32fbfcf..c390172 100644
--- a/deploy/scenario/ha_onos_sfc_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_onos_sfc_heat_ceilometer_scenario.yaml
@@ -68,22 +68,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/ha_vlan_heat_ceilometer_scenario.yaml b/deploy/scenario/ha_vlan_heat_ceilometer_scenario.yaml
index d1d5191..65b8b20 100644
--- a/deploy/scenario/ha_vlan_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/ha_vlan_heat_ceilometer_scenario.yaml
@@ -102,22 +102,23 @@ dha-override-config:
   nodes:
   - id: 1
     libvirtName: controller1
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 2
     libvirtName: controller2
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 3
     libvirtName: controller3
-    libvirtTemplate: templates/virtual_environment/vms/controller.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
   - id: 4
     libvirtName: compute1
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 5
     libvirtName: compute2
-    libvirtTemplate: templates/virtual_environment/vms/compute.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
   - id: 6
     libvirtName: fuel-master
-    libvirtTemplate: templates/virtual_environment/vms/fuel.xml
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
     isFuel: yes
     username: root
     password: r00tme
diff --git a/deploy/scenario/no-ha_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_heat_ceilometer_scenario.yaml
index 3dd5f84..d738154 100644
--- a/deploy/scenario/no-ha_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_heat_ceilometer_scenario.yaml
@@ -41,17 +41,42 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_nfv-kvm_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_nfv-kvm_heat_ceilometer_scenario.yaml
index 4661a26..7ade095 100644
--- a/deploy/scenario/no-ha_nfv-kvm_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_nfv-kvm_heat_ceilometer_scenario.yaml
@@ -48,15 +48,19 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: compute
+    transformations: transformations_2
 
   settings:
     editable:
@@ -141,6 +145,27 @@ dea-override-config:
           weight: 10
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_nfv-kvm_nfv-ovs_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_nfv-kvm_nfv-ovs_heat_ceilometer_scenario.yaml
index 87364e8..a3f0864 100644
--- a/deploy/scenario/no-ha_nfv-kvm_nfv-ovs_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_nfv-kvm_nfv-ovs_heat_ceilometer_scenario.yaml
@@ -55,15 +55,19 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   settings:
     editable:
       additional_components:
@@ -104,6 +108,27 @@ dea-override-config:
           weight: 30
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_nfv-ovs_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_nfv-ovs_heat_ceilometer_scenario.yaml
index 7ab76cb..f4e0adc 100644
--- a/deploy/scenario/no-ha_nfv-ovs_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_nfv-ovs_heat_ceilometer_scenario.yaml
@@ -56,19 +56,22 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_vlan
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_dpdk
     role: ceph-osd,compute
     attributes: attributes_1
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_dpdk
     role: ceph-osd,compute
     attributes: attributes_1
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_dpdk
     role: ceph-osd,compute
     attributes: attributes_1
-
+    transformations: transformations_2
   attributes_1:
     hugepages:
       dpdk:
@@ -102,6 +105,27 @@ dea-override-config:
       vlan_start: null
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_odl-bgpvpn_scenario.yaml b/deploy/scenario/no-ha_odl-bgpvpn_scenario.yaml
index 6f21ea2..e92a741 100644
--- a/deploy/scenario/no-ha_odl-bgpvpn_scenario.yaml
+++ b/deploy/scenario/no-ha_odl-bgpvpn_scenario.yaml
@@ -60,17 +60,42 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,opendaylight
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_odl-l2_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_odl-l2_heat_ceilometer_scenario.yaml
index f8787d7..1efa89a 100644
--- a/deploy/scenario/no-ha_odl-l2_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_odl-l2_heat_ceilometer_scenario.yaml
@@ -61,17 +61,42 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,opendaylight
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_odl-l2_sfc_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_odl-l2_sfc_heat_ceilometer_scenario.yaml
index 90a45d5..b1fe773 100644
--- a/deploy/scenario/no-ha_odl-l2_sfc_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_odl-l2_sfc_heat_ceilometer_scenario.yaml
@@ -80,17 +80,42 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller,tacker
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,opendaylight
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_odl-l3_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_odl-l3_heat_ceilometer_scenario.yaml
index 0c8415f..b59a049 100644
--- a/deploy/scenario/no-ha_odl-l3_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_odl-l3_heat_ceilometer_scenario.yaml
@@ -71,15 +71,19 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,opendaylight
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   settings:
     editable:
       public_network_assignment:
@@ -87,6 +91,27 @@ dea-override-config:
           value: true
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_onos_nofeature_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_onos_nofeature_heat_ceilometer_scenario.yaml
index f5c00f0..e51dd56 100644
--- a/deploy/scenario/no-ha_onos_nofeature_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_onos_nofeature_heat_ceilometer_scenario.yaml
@@ -68,21 +68,47 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller,onos
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   settings:
     editable:
       public_network_assignment:
         assign_to_all_nodes:
           value: true
+
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_onos_sfc_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_onos_sfc_heat_ceilometer_scenario.yaml
index 587346e..21a2be2 100644
--- a/deploy/scenario/no-ha_onos_sfc_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_onos_sfc_heat_ceilometer_scenario.yaml
@@ -48,21 +48,46 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller,onos
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   settings:
     editable:
       public_network_assignment:
         assign_to_all_nodes:
           value: true
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 #  disks:
 #    contrail: 500G
 
diff --git a/deploy/scenario/no-ha_vlan_heat_ceilometer_scenario.yaml b/deploy/scenario/no-ha_vlan_heat_ceilometer_scenario.yaml
index 567ea98..ada5b7e 100644
--- a/deploy/scenario/no-ha_vlan_heat_ceilometer_scenario.yaml
+++ b/deploy/scenario/no-ha_vlan_heat_ceilometer_scenario.yaml
@@ -45,15 +45,19 @@ dea-override-config:
   - id: 1
     interfaces: interfaces_1
     role: mongo,controller
+    transformations: transformations_1
   - id: 2
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 3
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   - id: 4
     interfaces: interfaces_1
     role: ceph-osd,compute
+    transformations: transformations_2
   settings:
     editable:
       additional_components:
@@ -94,6 +98,27 @@ dea-override-config:
           weight: 30
 
 dha-override-config:
+ nodes:
+  - id: 1
+    libvirtName: controller1
+    libvirtTemplate: templates/arm/virtual_environment/vms/controller.xml
+  - id: 2
+    libvirtName: compute1
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 3
+    libvirtName: compute2
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 4
+    libvirtName: compute3
+    libvirtTemplate: templates/arm/virtual_environment/vms/compute.xml
+  - id: 5
+    libvirtName: fuel-master
+    libvirtTemplate: templates/arm/virtual_environment/vms/fuel.xml
+    libvirtUri: qemu+ssh://jenkins@10.0.2.5/system
+    isFuel: yes
+    username: root
+    password: r00tme
+
 # These overrides only take effect for virtual deployment scenarios
 
 ##############################################################################
diff --git a/deploy/templates/arm/virtual_environment/networks/.gitkeep b/deploy/templates/arm/virtual_environment/networks/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/deploy/templates/arm/virtual_environment/vms/compute.xml b/deploy/templates/arm/virtual_environment/vms/compute.xml
new file mode 100644
index 0000000..db3ba29
--- /dev/null
+++ b/deploy/templates/arm/virtual_environment/vms/compute.xml
@@ -0,0 +1,57 @@
+<domain type='kvm'>
+  <name>compute</name>
+  <memory unit='KiB'>8392704</memory>
+  <currentMemory unit='KiB'>8392704</currentMemory>
+  <vcpu placement='static'>6</vcpu>
+  <os>
+    <type arch='aarch64' machine='virt-2.6'>hvm</type>
+    <loader readonly='yes' type='pflash'>/usr/share/AAVMF/AAVMF_CODE.fd</loader>
+  </os>
+  <features>
+    <gic version='3'/>
+  </features>
+  <cpu mode='host-model'>
+    <model fallback='allow'/>
+  </cpu>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <devices>
+    <emulator>/usr/bin/kvm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='qemu' type='raw' cache='none' io='native'/>
+      <source file='disk.raw'/>
+      <target dev='vda' bus='virtio'/>
+      <boot order='2'/>
+      <address type='virtio-mmio'/>
+    </disk>
+    <controller type='scsi' index='0' model='virtio-scsi'>
+      <address type='virtio-mmio'/>
+    </controller>
+    <controller type='pci' index='0' model='pcie-root'/>
+    <interface type='bridge'>
+      <source bridge='admin8_br'/>
+      <model type='virtio'/>
+      <boot order='1'/>
+      <address type='virtio-mmio'/>
+    </interface>
+    <interface type='bridge'>
+      <source bridge='public8_br'/>
+      <model type='virtio'/>
+      <address type='virtio-mmio'/>
+    </interface>
+    <interface type='bridge'>
+      <source bridge='trunk8_br'/>
+      <model type='virtio'/>
+      <address type='virtio-mmio'/>
+    </interface>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <console type='pty'>
+      <target type='serial' port='0'/>
+    </console>
+  </devices>
+</domain>
+
diff --git a/deploy/templates/arm/virtual_environment/vms/controller.xml b/deploy/templates/arm/virtual_environment/vms/controller.xml
new file mode 100644
index 0000000..6bd0385
--- /dev/null
+++ b/deploy/templates/arm/virtual_environment/vms/controller.xml
@@ -0,0 +1,57 @@
+<domain type='kvm'>
+  <name>controller</name>
+  <memory unit='KiB'>8392704</memory>
+  <currentMemory unit='KiB'>8392704</currentMemory>
+  <vcpu placement='static'>6</vcpu>
+  <os>
+    <type arch='aarch64' machine='virt-2.6'>hvm</type>
+    <loader readonly='yes' type='pflash'>/usr/share/AAVMF/AAVMF_CODE.fd</loader>
+  </os>
+  <features>
+    <gic version='3'/>
+  </features>
+  <cpu mode='host-model'>
+    <model fallback='allow'/>
+  </cpu>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <devices>
+    <emulator>/usr/bin/kvm</emulator>
+    <disk type='file' device='disk'>
+      <driver name='qemu' type='raw' cache='none' io='native'/>
+      <source file='disk.raw'/>
+      <target dev='vda' bus='virtio'/>
+      <boot order='2'/>
+      <address type='virtio-mmio'/>
+    </disk>
+    <controller type='scsi' index='0' model='virtio-scsi'>
+      <address type='virtio-mmio'/>
+    </controller>
+    <controller type='pci' index='0' model='pcie-root'/>
+    <interface type='bridge'>
+      <source bridge='admin8_br'/>
+      <model type='virtio'/>
+      <boot order='1'/>
+      <address type='virtio-mmio'/>
+    </interface>
+    <interface type='bridge'>
+      <source bridge='public8_br'/>
+      <model type='virtio'/>
+      <address type='virtio-mmio'/>
+    </interface>
+    <interface type='bridge'>
+      <source bridge='trunk8_br'/>
+      <model type='virtio'/>
+      <address type='virtio-mmio'/>
+    </interface>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <console type='pty'>
+      <target type='serial' port='0'/>
+    </console>
+  </devices>
+</domain>
+
diff --git a/deploy/templates/arm/virtual_environment/vms/fuel.xml b/deploy/templates/arm/virtual_environment/vms/fuel.xml
new file mode 100644
index 0000000..ad7c67f
--- /dev/null
+++ b/deploy/templates/arm/virtual_environment/vms/fuel.xml
@@ -0,0 +1,99 @@
+<domain type='kvm'>
+  <name>fuel</name>
+  <memory unit='KiB'>8290304</memory>
+  <currentMemory unit='KiB'>8290304</currentMemory>
+  <vcpu placement='static'>4</vcpu>
+  <resource>
+    <partition>/machine</partition>
+  </resource>
+  <os>
+    <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
+    <boot dev='hd'/>
+    <boot dev='cdrom'/>
+    <bootmenu enable='no'/>
+  </os>
+  <features>
+    <acpi/>
+    <apic/>
+    <pae/>
+  </features>
+  <cpu mode='host-model'>
+    <model fallback='allow'/>
+  </cpu>
+  <clock offset='utc'>
+    <timer name='rtc' tickpolicy='catchup'/>
+    <timer name='pit' tickpolicy='delay'/>
+    <timer name='hpet' present='no'/>
+  </clock>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>restart</on_crash>
+  <pm>
+    <suspend-to-mem enabled='no'/>
+    <suspend-to-disk enabled='no'/>
+  </pm>
+  <devices>
+    <emulator>/usr/libexec/qemu-kvm</emulator>
+    <disk type='block' device='cdrom'>
+      <driver name='qemu' type='raw'/>
+      <target dev='hdc' bus='ide'/>
+      <readonly/>
+    </disk>
+    <disk type='file' device='disk'>
+      <driver name='qemu' type='raw' cache='none' io='native'/>
+      <source file='disk.raw'/>
+      <target dev='vda' bus='virtio'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
+    </disk>
+    <controller type='usb' index='0' model='ich9-ehci1'>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
+    </controller>
+    <controller type='usb' index='0' model='ich9-uhci1'>
+      <master startport='0'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
+    </controller>
+    <controller type='usb' index='0' model='ich9-uhci2'>
+      <master startport='2'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
+    </controller>
+    <controller type='usb' index='0' model='ich9-uhci3'>
+      <master startport='4'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
+    </controller>
+    <controller type='pci' index='0' model='pci-root'/>
+    <controller type='ide' index='0'>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
+    </controller>
+    <controller type='virtio-serial' index='0'>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
+    </controller>
+    <interface type='bridge'>
+      <source bridge='admin8_br0'/>
+      <model type='virtio'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
+    </interface>
+    <interface type='bridge'>
+      <source bridge='public8_br0'/>
+      <model type='virtio'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
+    </interface>
+    <serial type='pty'>
+      <target port='0'/>
+    </serial>
+    <console type='pty'>
+      <target type='serial' port='0'/>
+    </console>
+    <input type='mouse' bus='ps2'/>
+    <input type='keyboard' bus='ps2'/>
+    <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
+      <listen type='address' address='127.0.0.1'/>
+    </graphics>
+    <video>
+      <model type='vga' vram='16384' heads='1'/>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
+    </video>
+    <memballoon model='virtio'>
+      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
+    </memballoon>
+  </devices>
+</domain>