Skip to content

Commit 93eb1b8

Browse files
author
Audrey Spaulding
committed
CNV-64706
1 parent fd294ca commit 93eb1b8

File tree

1 file changed

+42
-7
lines changed

1 file changed

+42
-7
lines changed

modules/virt-adding-kernel-arguments-enable-iommu.adoc

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,23 @@ apiVersion: machineconfiguration.openshift.io/v1
2727
kind: MachineConfig
2828
metadata:
2929
labels:
30-
machineconfiguration.openshift.io/role: worker <1>
31-
name: 100-worker-iommu <2>
30+
machineconfiguration.openshift.io/role: worker
31+
name: 100-worker-iommu
3232
spec:
3333
config:
3434
ignition:
3535
version: 3.2.0
3636
kernelArguments:
37-
- intel_iommu=on <3>
37+
- intel_iommu=on
3838
# ...
3939
----
40-
<1> Applies the new kernel argument only to worker nodes.
41-
<2> The `name` indicates the ranking of this kernel argument (100) among the machine configs and its purpose. If you have an AMD CPU, specify the kernel argument as `amd_iommu=on`.
42-
<3> Identifies the kernel argument as `intel_iommu` for an Intel CPU.
40+
where:
41+
42+
<apiversion>:: Applies the new kernel argument only to worker nodes.
43+
44+
<name>:: Indicates the ranking of this kernel argument (100) among the machine configs and its purpose. If you have an AMD CPU, specify the kernel argument as `amd_iommu=on`.
45+
46+
<intel_iommu=o>:: Identifies the kernel argument as `intel_iommu` for an Intel CPU.
4347

4448
. Create the new `MachineConfig` object:
4549
+
@@ -50,9 +54,40 @@ $ oc create -f 100-worker-kernel-arg-iommu.yaml
5054

5155
.Verification
5256

53-
* Verify that the new `MachineConfig` object was added.
57+
. Verify that the new `MachineConfig` object was added by entering the following command and observing the output:
5458
+
5559
[source,terminal]
5660
----
5761
$ oc get MachineConfig
5862
----
63+
+
64+
.Example output
65+
[source,terminal]
66+
----
67+
NAME IGNITIONVERSION AGE
68+
00-master 3.5.0 164m
69+
00-worker 3.5.0 164m
70+
01-master-container-runtime 3.5.0 164m
71+
01-master-kubelet 3.5.0 164m
72+
01-worker-container-runtime 3.5.0 164m
73+
01-worker-kubelet 3.5.0 164m
74+
100-master-chrony-configuration 3.5.0 169m
75+
100-master-set-core-user-password 3.5.0 169m
76+
100-worker-chrony-configuration 3.5.0 169m
77+
100-worker-iommu 3.5.0 14s
78+
----
79+
80+
. Verify that IOMMU is enabled at the operating system (OS) level by entering the following command:
81+
+
82+
[source,terminal]
83+
----
84+
$ dmesg | grep -i iommu
85+
----
86+
* If IOMMU is enabled, output is displayed as shown in the following example:
87+
+
88+
.Example output
89+
[source,terminal]
90+
----
91+
Intel: [ 0.000000] DMAR: Intel(R) IOMMU Driver
92+
AMD: [ 0.000000] AMD-Vi: IOMMU Initialized
93+
----

0 commit comments

Comments
 (0)