2 # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
\r
3 # This file is part of openmano
\r
4 # All Rights Reserved.
\r
6 # Licensed under the Apache License, Version 2.0 (the "License"); you may
\r
7 # not use this file except in compliance with the License. You may obtain
\r
8 # a copy of the License at
\r
10 # http://www.apache.org/licenses/LICENSE-2.0
\r
12 # Unless required by applicable law or agreed to in writing, software
\r
13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
\r
14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
\r
15 # License for the specific language governing permissions and limitations
\r
16 # under the License.
\r
18 # For those usages not covered by the Apache License, Version 2.0 please
\r
19 # contact with: nfvlabs@tid.es
\r
24 description: This is a template to help in the creation of multi-VM VNFs
\r
25 # class: parent # Optional. Used to organize VNFs
\r
26 internal-connections:
\r
28 description: datanet
\r
31 - VNFC: VirtualMachine-1
\r
32 local_iface_name: xe0
\r
33 - VNFC: VirtualMachine-2
\r
34 local_iface_name: xe0
\r
36 description: controlnet
\r
39 - VNFC: VirtualMachine-1
\r
40 local_iface_name: ge0
\r
41 - VNFC: VirtualMachine-2
\r
42 local_iface_name: ge0
\r
43 external-connections:
\r
45 type: mgmt # "mgmt" (autoconnect to management net), "bridge", "data"
\r
46 VNFC: VirtualMachine-1 # Virtual Machine this interface belongs to
\r
47 local_iface_name: mgmt0 # interface name inside this Virtual Machine (must be defined in the VNFC section)
\r
48 description: Management interface 1
\r
50 type: mgmt # "mgmt" (autoconnect to management net), "bridge", "data"
\r
51 VNFC: VirtualMachine-2 # Virtual Machine this interface belongs to
\r
52 local_iface_name: mgmt0 # interface name inside this Virtual Machine (must be defined in the VNFC section)
\r
53 description: Management interface 2
\r
55 type: data # "mgmt" (autoconnect to management net), "bridge", "data"
\r
56 VNFC: VirtualMachine-1 # Virtual Machine this interface belongs to
\r
57 local_iface_name: xe1 # interface name inside this Virtual Machine (must be defined in the VNFC section)
\r
58 description: Data interface 1
\r
60 type: data # "mgmt" (autoconnect to management net), "bridge", "data"
\r
61 VNFC: VirtualMachine-2 # Virtual Machine this interface belongs to
\r
62 local_iface_name: xe1 # interface name inside this Virtual Machine (must be defined in the VNFC section)
\r
63 description: Data interface 2
\r
64 VNFC: # Virtual machine array
\r
65 # First Virtual Machine
\r
66 - name: VirtualMachine-1 # name of Virtual Machine
\r
67 description: VM 1 in the MultiVM template
\r
68 VNFC image: /path/to/imagefolder/TEMPLATE-2VM-VM1.qcow2
\r
69 # image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" } #Optional
\r
70 # processor: #Optional
\r
71 # model: Intel(R) Xeon(R) CPU E5-4620 0 @ 2.20GHz
\r
72 # features: ["64b", "iommu", "lps", "tlbps", "hwsv", "dioc", "ht"]
\r
73 # hypervisor: #Optional
\r
75 # version: "10002|12001|2.6.32-358.el6.x86_64"
\r
76 # vcpus: 1 # Only for traditional cloud VMs. Number of virtual CPUs (oversubscription is allowed).
\r
77 # ram: 1024 # Only for traditional cloud VMs. Memory in MBytes (not from hugepages, oversubscription is allowed)
\r
78 # disk: 10 # disk size in GiB, by default 1
\r
80 - paired-threads: 5 # "cores", "paired-threads", "threads"
\r
81 paired-threads-id: [ [0,1], [2,3], [4,5], [6,7], [8,9] ] # By default follows incremental order
\r
85 vpci: "0000:00:11.0"
\r
86 dedicated: "yes" # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)
\r
88 #mac_address: '20:33:45:56:77:44' #avoid this option if possible
\r
90 vpci: "0000:00:12.0"
\r
93 #mac_address: '20:33:45:56:77:45' #avoid this option if possible
\r
96 vpci: "0000:00:09.0" # Optional. Virtual PCI address
\r
97 bandwidth: 1 Mbps # Optional. Informative only
\r
98 # mac_address: '20:33:45:56:77:46' #avoid this option if possible
\r
99 # model: 'virtio' # ("virtio","e1000","ne2k_pci","pcnet","rtl8139") By default, it is automatically filled by libvirt
\r
101 vpci: "0000:00:10.0"
\r
103 # mac_address: '20:33:45:56:77:47' # avoid this option if possible
\r
104 # model: 'virtio' # ("virtio","e1000","ne2k_pci","pcnet","rtl8139") By default, it is automatically filled by libvirt
\r
105 devices: # Optional, order determines device letter asignation (hda, hdb, ...)
\r
106 - type: disk # "disk","cdrom","xml"
\r
107 image: /path/to/imagefolder/SECOND-DISK.qcow2
\r
108 # image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" }
\r
109 # vpci: "0000:00:03.0" # Optional, not for disk or cdrom
\r
111 image: /path/to/imagefolder/CDROM-IMAGE.qcow2
\r
112 # image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" }
\r
114 image: /path/to/imagefolder/ADDITIONAL-DISK.qcow2 # Optional, depending on the device type
\r
115 image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" } # Optional, depending on the device type
\r
116 vpci: "0000:00:03.0" # Optional, depending on the device type (not needed for disk or cdrom)
\r
117 xml: ' xml text for XML described devices. Do not use single quotes inside
\r
118 The following words, if found, will be replaced:
\r
119 __file__ by image path, (image must be provided)
\r
120 __format__ by qcow2 or raw (image must be provided)
\r
121 __dev__ by device letter (b, c, d ...)
\r
122 __vpci__ by vpci (vpci must be provided)
\r
124 # Second Virtual Machine
\r
125 - name: VirtualMachine-2 # name of Virtual Machine
\r
126 description: VM 2 in the MultiVM template
\r
127 VNFC image: /path/to/imagefolder/TEMPLATE-2VM-VM1.qcow2 # In this case, it is the same as VirtualMachine-1, but it could have been different
\r
128 # image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" } #Optional
\r
129 # processor: #Optional
\r
130 # model: Intel(R) Xeon(R) CPU E5-4620 0 @ 2.20GHz
\r
131 # features: ["64b", "iommu", "lps", "tlbps", "hwsv", "dioc", "ht"]
\r
132 # hypervisor: #Optional
\r
134 # version: "10002|12001|2.6.32-358.el6.x86_64"
\r
135 # vcpus: 1 # Only for traditional cloud VMs. Number of virtual CPUs (oversubscription is allowed).
\r
136 # ram: 1024 # Only for traditional cloud VMs. Memory in MBytes (not from hugepages, oversubscription is allowed)
\r
137 # disk: 10 # disk size in GiB, by default 1
\r
139 - paired-threads: 5 # "cores", "paired-threads", "threads"
\r
140 paired-threads-id: [ [0,1], [2,3], [4,5], [6,7], [8,9] ] # By default follows incremental order
\r
141 memory: 14 # GBytes
\r
144 vpci: "0000:00:11.0"
\r
145 dedicated: "yes" # "yes"(passthrough), "no"(sriov with vlan tags), "yes:sriov"(sriovi, but exclusive and without vlan tag)
\r
147 #mac_address: '20:33:45:56:77:44' #avoid this option if possible
\r
149 vpci: "0000:00:12.0"
\r
152 #mac_address: '20:33:45:56:77:45' #avoid this option if possible
\r
155 vpci: "0000:00:09.0" # Optional
\r
156 bandwidth: 1 Mbps # Optional, informative only
\r
157 # mac_address: '20:33:45:56:77:46' #avoid this option if possible
\r
158 # model: 'virtio' # ("virtio","e1000","ne2k_pci","pcnet","rtl8139") By default, it is automatically filled by libvirt
\r
160 vpci: "0000:00:10.0"
\r
162 # mac_address: '20:33:45:56:77:47' #avoid this option if possible
\r
163 # model: 'virtio' # ("virtio","e1000","ne2k_pci","pcnet","rtl8139") By default, it is automatically filled by libvirt
\r
164 devices: # Optional, order determines device letter asignation (hda, hdb, ...)
\r
165 - type: disk # "disk","cdrom","xml"
\r
166 image: /path/to/imagefolder/SECOND-DISK.qcow2
\r
167 # image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" }
\r
168 # vpci: "0000:00:03.0" # Optional, not for disk or cdrom
\r
170 image: /path/to/imagefolder/CDROM-IMAGE.qcow2
\r
171 #image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" }
\r
173 image: /path/to/imagefolder/ADDITIONAL-DISK.qcow2 # Optional, depending on the device type
\r
174 image metadata: {"bus":"ide", "os_type":"windows", "use_incremental": "no" } # Optional, depending on the device type
\r
175 vpci: "0000:00:03.0" # Optional, depending on the device type (not needed for disk or cdrom)
\r
176 xml: ' xml text for XML described devices. Do not use single quotes inside
\r
177 The following words, if found, will be replaced:
\r
178 __file__ by image path, (image must be provided)
\r
179 __format__ by qcow2 or raw (image must be provided)
\r
180 __dev__ by device letter (b, c, d ...)
\r
181 __vpci__ by vpci (vpci must be provided)
\r
183 # Additional Virtual Machines can be included here
\r