You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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)
288
290
289
291
::
290
-
292
+
291
293
openvswitch.dpdk.enabled=true
292
294
openvswitch.dpdk.ovs.path=OVS_PATH
293
295
@@ -296,15 +298,15 @@ Agent should be restarted for actions to take effect.
296
298
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:
297
299
298
300
::
299
-
301
+
300
302
list hosts id=HOST_ID filter=capabilities
301
303
302
304
Additional VM configurations
303
305
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
304
306
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:
305
307
306
308
::
307
-
309
+
308
310
enable.additional.vm.configuration
309
311
310
312
Users are able to pass extra configurations as part of the 'deployVirtualMachine' or 'updateVirtualMachine' API methods.
@@ -324,7 +326,7 @@ Example:
324
326
In order to pass the below extra configuration to the VM, named 'config-1'
325
327
326
328
::
327
-
329
+
328
330
config-1:
329
331
<tag>
330
332
<inner-tag>VALUE</inner-tag>
@@ -333,26 +335,26 @@ In order to pass the below extra configuration to the VM, named 'config-1'
333
335
The 'extraconfig' parameter should receive the UTF-8 URL encoded string:
On 'user_vm_details' table the additional configuration is persisted with key: 'extraconfig-config-1'
340
342
341
343
342
-
Additional configurations to enable DPDK on VMs
344
+
Additional configurations to enable DPDK on VMs
343
345
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
344
346
To enable DPDK on VM deployments:
345
347
346
348
- Set the global configuration to 'true' (as global setting or account setting)
347
349
348
350
::
349
-
351
+
350
352
enable.additional.vm.configuration
351
353
352
354
- Generate the UTF-8 URL encoded additional configuration to enable huge pages and NUMA, examples below:
353
355
354
356
::
355
-
357
+
356
358
dpdk-hugepages:
357
359
<memoryBacking>
358
360
<hugepages>
@@ -369,13 +371,13 @@ To enable DPDK on VM deployments:
369
371
- 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.
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
0 commit comments