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
= Configuring a virtual machine for real-time workloads
8
8
9
-
You can configure a virtual machines (VM) to run real-time workloads.
9
+
You can configure a virtual machine (VM) to run real-time workloads.
10
10
11
11
.Prerequisites
12
12
* Your cluster is configured to run real-time workloads.
@@ -23,12 +23,13 @@ kind: VirtualMachine
23
23
metadata:
24
24
name: realtime-vm
25
25
spec:
26
+
running: true
26
27
template:
27
28
metadata:
28
29
annotations:
29
-
cpu-load-balancing.crio.io: disable <1>
30
-
cpu-quota.crio.io: disable <2>
31
-
irq-load-balancing.crio.io: disable <3>
30
+
cpu-load-balancing.crio.io: disable # <1>
31
+
cpu-quota.crio.io: disable # <2>
32
+
irq-load-balancing.crio.io: disable # <3>
32
33
spec:
33
34
domain:
34
35
cpu:
@@ -38,8 +39,8 @@ spec:
38
39
numa:
39
40
guestMappingPassthrough: {}
40
41
realtime: {}
41
-
sockets: 1 <4>
42
-
cores: 4 <5>
42
+
sockets: 1 # <4>
43
+
cores: 4 # <5>
43
44
threads: 1
44
45
devices:
45
46
autoattachGraphicsDevice: false
@@ -49,56 +50,138 @@ spec:
49
50
memory:
50
51
guest: 4Gi
51
52
hugepages:
52
-
pageSize: 1Gi <6>
53
+
pageSize: 1Gi # <6>
53
54
terminationGracePeriodSeconds: 0
54
55
# ...
55
56
----
56
57
<1> This annotation specifies that load balancing is disabled for CPUs that are used by the container.
57
58
<2> This annotation specifies that the CPU quota is disabled for CPUs that are used by the container.
58
59
<3> This annotation specifies that interrupt request (IRQ) load balancing is disabled for CPUs that are used by the container.
59
-
<4> The number of sockets inside the VM.
60
+
<4> The number of sockets inside the VM.
60
61
<5> The number of cores inside the VM. This must be a value greater than or equal to `1`.
61
62
<6> The size of the huge pages. The possible values for x86-64 architectures are `1Gi` and `2Mi`. In this example, the request is for 4 huge pages of size 1 Gi.
62
-
63
63
. Apply the `VirtualMachine` manifest:
64
64
+
65
65
[source,terminal]
66
66
----
67
67
$ oc apply -f <file_name>.yaml
68
68
----
69
-
70
-
. Configure the guest operating system. The following example shows the configuration steps for a {op-system-base} 8 operating system:
69
+
. Configure the guest operating system. The following example shows the configuration steps for a {op-system-base} 9 operating system:
71
70
.. Run the following command to connect to the VM console:
72
71
+
73
72
[source,terminal]
74
73
----
75
74
$ virtctl console <vm_name>
76
75
----
77
-
78
-
.. Configure huge pages by using the GRUB boot loader command-line interface. In the following example, 8 1G huge pages are specified.
76
+
.. If you are not already logged in as a root user, switch to the root user account to execute the remaining configuration steps.
77
+
.. Disable the `irqbalance` service by using the following command:
0 commit comments