Skip to content

Commit 6313947

Browse files
committed
Merge remote-tracking branch 'apache/4.15' into main
2 parents f24de8c + 0085b0f commit 6313947

File tree

2 files changed

+49
-58
lines changed

2 files changed

+49
-58
lines changed

source/adminguide/virtual_machines.rst

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -127,33 +127,35 @@ To create a VM from a template:
127127

128128
#. Log in to the CloudStack UI as an administrator or user.
129129

130-
#. In the left navigation bar, click Instances.
130+
#. In the left navigation bar, click Compute -> Instances.
131131

132-
#. Click Add Instance.
132+
#. Click the Add Instance button.
133133

134134
#. Select a zone. Admin users will have the option to select a pod, cluster or host.
135135

136-
#. Select a template, then follow the steps in the wizard. For more
137-
information about how the templates came to be in this list, see
138-
`*Working with Templates* <templates.html>`_.
136+
#. Select a template or ISO. For more information about how the templates came
137+
to be in this list, see `*Working with Templates* <templates.html>`_.
139138

140139
#. Be sure that the hardware you have allows starting the selected
141140
service offering.
142141

142+
#. Select a disk offering.
143+
144+
#. Select/Add a network.
145+
146+
143147
.. note::
144148
VMware only: If the selected template contains OVF properties, different deployment options or configurations,
145149
multiple NICs or end-user license agreements, then the wizard will display these properties.
146150

147151
See `“Support for Virtual Appliances” <virtual_machines.html#support-for-virtual-appliances>`_.
148152

149-
#. Click Submit and your VM will be created and started.
153+
#. Click Launch Virtual Machine and your VM will be created and started.
150154

151155
.. note::
152156
For security reason, the internal name of the VM is visible
153157
only to the root admin.
154158

155-
To create a VM from an ISO:
156-
157159
.. note::
158160
**XenServer**
159161

@@ -163,19 +165,6 @@ To create a VM from an ISO:
163165
functions such as mounting additional volumes and ISO images,
164166
live migration, and graceful shutdown.
165167

166-
#. Log in to the CloudStack UI as an administrator or user.
167-
168-
#. In the left navigation bar, click Instances.
169-
170-
#. Click Add Instance.
171-
172-
#. Select a zone. Admin users will have the option to select a pod, cluster or host.
173-
174-
#. Select ISO Boot, and follow the steps in the wizard.
175-
176-
#. Click Submit and your VM will be created and started.
177-
178-
179168

180169
Install Required Tools and Drivers
181170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -217,7 +206,7 @@ To access a VM through the CloudStack UI:
217206

218207
#. Log in to the CloudStack UI as a user or admin.
219208

220-
#. Click Instances, then click the name of a running VM.
209+
#. Click Compute -> Instances, then click the name of a running VM.
221210

222211
#. Click the View Console button |console-icon.png|.
223212

@@ -272,7 +261,7 @@ To delete a virtual machine:
272261

273262
#. Log in to the CloudStack UI as a user or admin.
274263

275-
#. In the left navigation, click Instances.
264+
#. In the left navigation, click Compute -> Instances.
276265

277266
#. Choose the VM that you want to delete.
278267

source/plugins/ovs-plugin.rst

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,21 @@
1717
The OVS Plugin
1818
==============
1919

20+
.. warning::
21+
The OVS Plugin was not maintained in some CloudStack versions. Please use CloudStack
22+
4.16.0.0 and later. If you wish to use OVS as the default networking backend on Linux,
23+
only follow the Agent Configuration part of this guide.
24+
CloudStack will automatically detect it up based on the configuration in the
25+
agent.properties file. This in spite of the OVS Plugin not being shown in the
26+
Network Service Providers.
27+
28+
2029
Introduction to the OVS Plugin
2130
------------------------------
2231

2332
The OVS plugin is the native SDN
24-
implementations in CloudStack, using GRE isolation method. The plugin can be
25-
used by CloudStack to implement isolated guest networks and to provide
33+
implementations in CloudStack, using GRE isolation method. The plugin can be
34+
used by CloudStack to implement isolated guest networks and to provide
2635
additional services like NAT, port forwarding and load balancing.
2736

2837

@@ -48,12 +57,6 @@ the OVS Plugin.
4857

4958
Table: Supported Services
5059

51-
.. note::
52-
If you wish to use OVS as the default networking backend on Linux,
53-
just follow this guide and CloudStack will automatically pick it up
54-
based on the configuration in the agent.properties file. This in spite
55-
of the OVS Plugin not being shown in the Network Service Providers.
56-
5760
.. note::
5861
The Virtual Networking service was originally called 'Connectivity'
5962
in CloudStack 4.0
@@ -79,20 +82,19 @@ Configuring the OVS Plugin
7982
Prerequisites
8083
~~~~~~~~~~~~~
8184

82-
Before enabling the OVS plugin the hypervisor needs to be install OpenvSwitch.
83-
Default, XenServer has already installed OpenvSwitch. However, you must
84-
install OpenvSwitch manually on KVM. CentOS 6.4 and OpenvSwitch 1.10 are
85+
Before enabling the OVS plugin the hypervisor needs to be install OpenvSwitch.
86+
Default, XenServer has already installed OpenvSwitch. However, you must
87+
install OpenvSwitch manually on KVM. CentOS 6.4 and OpenvSwitch 1.10 are
8588
recommended.
8689

8790
KVM hypervisor:
8891

8992
- CentOS 6.4 is recommended.
9093

91-
- To make sure that the native bridge module will not interfere with
92-
openvSwitch the bridge module should be added to the denylist. See the
93-
modprobe documentation for your distribution on where to find the denylist
94-
(likely named 'denylist').
95-
Make sure the module is not loaded either by rebooting or executing rmmod
94+
- To make sure that the native bridge module will not interfere with
95+
openvSwitch the bridge module should be added to the blacklist. See the
96+
modprobe documentation for your distribution on where to find the blacklist.
97+
Make sure the module is not loaded either by rebooting or executing rmmod
9698
bridge before executing next steps.
9799

98100

@@ -105,7 +107,7 @@ traffic type.
105107

106108
.. note::
107109
With KVM, the traffic type should be configured with the traffic label
108-
that matches the name of the Integration Bridge on the hypervisor. For
110+
that matches the name of the Integration Bridge on the hypervisor. For
109111
example, you should set the traffic label as following:
110112

111113
- Management & Storage traffic: cloudbr0
@@ -128,7 +130,7 @@ Agent Configuration
128130
- Configure network interfaces:
129131

130132
::
131-
133+
132134
/etc/sysconfig/network-scripts/ifcfg-eth0
133135
DEVICE=eth0
134136
BOOTPROTO=none
@@ -138,7 +140,7 @@ Agent Configuration
138140
TYPE=OVSPort
139141
DEVICETYPE=ovs
140142
OVS_BRIDGE=cloudbr0
141-
143+
142144
/etc/sysconfig/network-scripts/ifcfg-eth1
143145
DEVICE=eth1
144146
BOOTPROTO=none
@@ -148,7 +150,7 @@ Agent Configuration
148150
TYPE=OVSPort
149151
DEVICETYPE=ovs
150152
OVS_BRIDGE=cloudbr1
151-
153+
152154
/etc/sysconfig/network-scripts/ifcfg-cloudbr0
153155
DEVICE=cloudbr0
154156
ONBOOT=yes
@@ -159,15 +161,15 @@ Agent Configuration
159161
GATEWAY=172.16.10.1
160162
NETMASK=255.255.255.0
161163
HOTPLUG=no
162-
164+
163165
/etc/sysconfig/network-scripts/ifcfg-cloudbr1
164166
DEVICE=cloudbr1
165167
ONBOOT=yes
166168
DEVICETYPE=ovs
167169
TYPE=OVSBridge
168170
BOOTPROTO=none
169171
HOTPLUG=no
170-
172+
171173
/etc/sysconfig/network
172174
NETWORKING=yes
173175
HOSTNAME=testkvm1
@@ -176,7 +178,7 @@ Agent Configuration
176178
- Edit /etc/cloudstack/agent/agent.properties
177179

178180
::
179-
181+
180182
network.bridge.type=openvswitch
181183
libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.OvsVifDriver
182184

@@ -287,7 +289,7 @@ Agent configuration
287289
- Edit /etc/cloudstack/agent/agent.properties to enable DPDK support on the agent and on ovs-vstcl commands for port creations as well as the path to OVS ports (usually: /var/run/openvswitch)
288290

289291
::
290-
292+
291293
openvswitch.dpdk.enabled=true
292294
openvswitch.dpdk.ovs.path=OVS_PATH
293295

@@ -296,15 +298,15 @@ Agent should be restarted for actions to take effect.
296298
When the host agent connects to the management server, it sends the list of hosts capabilities. When DPDK support is enabled on the host, the capability with name 'dpdk' is sent to the management server. The list of host capabilities are persisted on the 'capabilities' column on 'hosts' table, and can be retrieved by the 'listHosts' API method:
297299

298300
::
299-
301+
300302
list hosts id=HOST_ID filter=capabilities
301303

302304
Additional VM configurations
303305
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
304306
In order to enable DPDK on VM deployments, users should pass addition configuration to VMs. The required configurations are listed on the next section. Administrators can allow users to pass additional configurations to their VMs by the account scoped setting:
305307

306308
::
307-
309+
308310
enable.additional.vm.configuration
309311

310312
Users are able to pass extra configurations as part of the 'deployVirtualMachine' or 'updateVirtualMachine' API methods.
@@ -324,7 +326,7 @@ Example:
324326
In order to pass the below extra configuration to the VM, named 'config-1'
325327

326328
::
327-
329+
328330
config-1:
329331
<tag>
330332
<inner-tag>VALUE</inner-tag>
@@ -333,26 +335,26 @@ In order to pass the below extra configuration to the VM, named 'config-1'
333335
The 'extraconfig' parameter should receive the UTF-8 URL encoded string:
334336

335337
::
336-
338+
337339
config-1%3A%0A%3Ctag%3E%0A%20%20%20%3Cinner-tag%3EVALUE%3C%2Finner-tag%3E%0A%3C%2Ftag%3E
338340

339341
On 'user_vm_details' table the additional configuration is persisted with key: 'extraconfig-config-1'
340342

341343

342-
Additional configurations to enable DPDK on VMs
344+
Additional configurations to enable DPDK on VMs
343345
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
344346
To enable DPDK on VM deployments:
345347

346348
- Set the global configuration to 'true' (as global setting or account setting)
347349

348350
::
349-
351+
350352
enable.additional.vm.configuration
351353

352354
- Generate the UTF-8 URL encoded additional configuration to enable huge pages and NUMA, examples below:
353355

354356
::
355-
357+
356358
dpdk-hugepages:
357359
<memoryBacking>
358360
<hugepages>
@@ -369,13 +371,13 @@ To enable DPDK on VM deployments:
369371
- Pass the 'extraconfig' parameter to 'deployVirtualMachine' or 'updateVirtualMachine' API methods as a single UTF-8 URL encoded string containing multiple extra configurations (as shown above). Note: if multiple extra configurations are needed, follow the example above and add new sections separated by an empty line, encode the whole string and pass it as a single string to the APIs as 'extraconfig' parameter.
370372

371373
::
372-
374+
373375
deployVirtualMachine extraconfig=dpdk-hugepages%3A%0A%3CmemoryBacking%3E%0A%20%20%20%3Chugepages%3E%0A%20%20%20%20%3C%2Fhugepages%3E%0A%3C%2FmemoryBacking%3E%0A%0Adpdk-numa%3A%0A%3Ccpu%20mode%3D%22host-passthrough%22%3E%0A%20%20%20%3Cnuma%3E%0A%20%20%20%20%20%20%20%3Ccell%20id%3D%220%22%20cpus%3D%220%22%20memory%3D%229437184%22%20unit%3D%22KiB%22%20memAccess%3D%22shared%22%2F%3E%0A%20%20%20%3C%2Fnuma%3E%0A%3C%2Fcpu%3E%0A
374376

375377
- Additionally, users can pass extra configuration named 'dpdk-interface-TAG' to be included on VMs interfaces definition. Example below:
376378

377379
::
378-
380+
379381
dpdk-interface-model:
380382
<model type='virtio'/>
381383

@@ -404,7 +406,7 @@ It is possible to avoid passing additional configuration on each VM deployment,
404406
For example, applying DPDK additional configurations via service offering:
405407

406408
::
407-
409+
408410
create serviceoffering name=<NAME> displaytext=<NAME> serviceofferingdetails[0].key=extraconfig-dpdk-hugepages serviceofferingdetails[0].value=%3CmemoryBacking%3E%20%3Chugepages%2F%3E%20%3C%2FmemoryBacking%3E serviceofferingdetails[1].key=extraconfig-dpdk-numa serviceofferingdetails[1].value=%3Ccpu%20mode%3D%22host-passthrough%22%3E%20%3Cnuma%3E%20%3Ccell%20id%3D%220%22%20cpus%3D%220%22%20memory%3D%229437184%22%20unit%3D%22KiB%22%20memAccess%3D%22shared%22%2F%3E%20%3C%2Fnuma%3E%20%3C%2Fcpu%3E
409411

410412
The preferred DPDK vHost User Mode must be passed as a service offering detail, with special key name: "DPDK-VHOSTUSER". Possible values are: "client" or "server". The following table illustrates the expected behaviour on DPDK ports and VM guest interfaces.
@@ -420,7 +422,7 @@ By default, the server mode is assumed if it is not passed as a service offering
420422
+----------------------+------------------------+-------------------------+
421423

422424
::
423-
425+
424426
create serviceoffering name=<NAME> displaytext=<NAME> serviceofferingdetails[0].key=DPDK-VHOSTUSER serviceofferingdetails[0].value=client serviceofferingdetails[1].key=extraconfig-dpdk-hugepages serviceofferingdetails[1].value=%3CmemoryBacking%3E%20%3Chugepages%2F%3E%20%3C%2FmemoryBacking%3E serviceofferingdetails[2].key=extraconfig-dpdk-numa serviceofferingdetails[2].value=%3Ccpu%20mode%3D%22host-passthrough%22%3E%20%3Cnuma%3E%20%3Ccell%20id%3D%220%22%20cpus%3D%220%22%20memory%3D%229437184%22%20unit%3D%22KiB%22%20memAccess%3D%22shared%22%2F%3E%20%3C%2Fnuma%3E%20%3C%2Fcpu%3E
425427

426428
DPDK VMs live migrations

0 commit comments

Comments
 (0)