Skip to content

Commit b703515

Browse files
authored
Merge pull request #106316 from rheslop/main-CNV-68758
CNV#68758 Procedural corrections
2 parents 72fe195 + 4de976b commit b703515

5 files changed

Lines changed: 7 additions & 55 deletions

modules/virt-about-changing-removing-mediated-devices.adoc

Lines changed: 0 additions & 23 deletions
This file was deleted.

modules/virt-about-using-virtual-gpus.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
= About using virtual GPUs with {VirtProductName}
88

99
[role="_abstract"]
10-
Some graphics processing unit (GPU) cards support the creation of virtual GPUs (vGPUs). {VirtProductName} can automatically create vGPUs and other mediated devices if an administrator provides configuration details in the `HyperConverged` custom resource (CR).
11-
12-
This automation is especially useful for large clusters.
10+
You can create vGPUs for your VMs using supported GPU cards. You can use the NVIDIA GPU Operator to manage the lifecycle and creation of these vGPUs on the cluster nodes. You must add these devices to the `HyperConverged` custom resource (CR) so that {VirtProductName} can discover and make them available to virtual machines.
1311

1412
[NOTE]
1513
====

modules/virt-creating-and-exposing-mediated-devices.adoc

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ $ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
9191

9292
. Create and expose the mediated devices by updating the configuration:
9393

94-
.. Create mediated devices by adding them to the `spec.mediatedDevicesConfiguration` stanza.
95-
9694
.. Expose the mediated devices to the cluster by adding the `mdevNameSelector` and `resourceName` values to the `spec.permittedHostDevices.mediatedDevices` stanza. The `resourceName` value is based on the `mdevNameSelector` value, but you use underscores instead of spaces.
9795
+
9896
Example `HyperConverged` CR:
@@ -105,14 +103,6 @@ metadata:
105103
name: kubevirt-hyperconverged
106104
namespace: {CNVNamespace}
107105
spec:
108-
mediatedDevicesConfiguration:
109-
mediatedDeviceTypes:
110-
- nvidia-745
111-
nodeMediatedDeviceTypes:
112-
- mediatedDeviceTypes:
113-
- nvidia-746
114-
nodeSelector:
115-
kubernetes.io/hostname: node-11.redhat.com
116106
permittedHostDevices:
117107
mediatedDevices:
118108
- mdevNameSelector: NVIDIA A2-2Q
@@ -126,18 +116,12 @@ spec:
126116
+
127117
where:
128118

129-
`mediatedDeviceTypes`:: Specifies global settings for the cluster and is required.
130-
131-
`nodeMediatedDeviceTypes`:: Specifies global configuration overrides for a specific node or group of nodes and is optional. Must be used with the global `mediatedDeviceTypes` configuration.
132-
133-
`mediatedDeviceTypes`:: Specifies an override to the global `mediatedDeviceTypes` configuration for the specified nodes. Required if you use `nodeMediatedDeviceTypes`.
134-
135-
`nodeSelector`:: Specifies the node selector and must include a `key:value` pair. Required if you use `nodeMediatedDeviceTypes`.
136-
137119
`mdevNameSelector`:: Specifies the mediated devices that map to this value on the host.
138120

139121
`resourceName`:: Specifies the matching resource name that is allocated on the node.
140122

123+
`externalResourceProvider`:: Specifies that the device is handled by an external provider, such as the NVIDIA GPU Operator.
124+
141125
. Save your changes and exit the editor.
142126

143127
.Verification

modules/virt-removing-mediated-device-from-cluster-cli.adoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
= Removing mediated devices from the cluster
88

99
[role="_abstract"]
10-
To remove a mediated device from the cluster, delete the information for that device from the `HyperConverged` custom resource (CR).
10+
As a cluster administrator you can remove mediated devices from the cluster so that you can reallocate GPU hardware. To remove a mediated device from the cluster, delete the information for that device from the `HyperConverged` CR.
1111

1212
.Prerequisites
1313

@@ -22,7 +22,7 @@ To remove a mediated device from the cluster, delete the information for that de
2222
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
2323
----
2424

25-
. Remove the device information from the `spec.mediatedDevicesConfiguration` and `spec.permittedHostDevices` stanzas of the `HyperConverged` CR. Removing both entries ensures that you can later create a new mediated device type on the same node. For example:
25+
. Remove the device information from the `spec.permittedHostDevices` stanza of the `HyperConverged` CR. For example:
2626
+
2727
[source,yaml,subs="attributes+"]
2828
----
@@ -32,15 +32,12 @@ metadata:
3232
name: kubevirt-hyperconverged
3333
namespace: {CNVNamespace}
3434
spec:
35-
mediatedDevicesConfiguration:
36-
mediatedDeviceTypes:
37-
- nvidia-231
3835
permittedHostDevices:
3936
mediatedDevices:
4037
- mdevNameSelector: GRID T4-2Q
4138
resourceName: nvidia.com/GRID_T4-2Q
39+
externalResourceProvider: true
4240
----
43-
** To remove the `nvidia-231` device type, delete it from the `mediatedDeviceTypes` array.
4441
** To remove the `GRID T4-2Q` device, delete the `mdevNameSelector` field and its corresponding `resourceName` field.
4542

4643
. Save your changes and exit the editor.

virt/managing_vms/advanced_vm_management/virt-configuring-virtual-gpus.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include::_attributes/common-attributes.adoc[]
77
toc::[]
88

99
[role="_abstract"]
10-
If you have graphics processing unit (GPU) cards, {VirtProductName} can automatically create virtual GPUs (vGPUs) that you can assign to virtual machines (VMs).
10+
Use the NVIDIA GPU operator to create virtual GPUs (vGPUs) and assign them to virtual machines (VMs) in {VirtProductName}.
1111

1212
include::modules/virt-about-using-virtual-gpus.adoc[leveloffset=+1]
1313

@@ -36,17 +36,13 @@ include::modules/virt-label-nodes-with-mig-backed-profile.adoc[leveloffset=+2]
3636
.Additional resources
3737
* xref:../../../virt/managing_vms/advanced_vm_management/virt-configuring-pci-passthrough.adoc#virt-configuring-pci-passthrough[Configuring PCI passthrough]
3838

39-
include::modules/virt-how-virtual-gpus-assigned-nodes.adoc[leveloffset=+1]
40-
4139
[id="managing-mediated-devices_{context}"]
4240
== Managing mediated devices
4341

4442
Before you can assign mediated devices to virtual machines, you must create the devices and expose them to the cluster. You can also reconfigure and remove mediated devices.
4543

4644
include::modules/virt-creating-and-exposing-mediated-devices.adoc[leveloffset=+2]
4745

48-
include::modules/virt-about-changing-removing-mediated-devices.adoc[leveloffset=+2]
49-
5046
include::modules/virt-removing-mediated-device-from-cluster-cli.adoc[leveloffset=+2]
5147

5248
[id="using-mediated-devices_{context}"]

0 commit comments

Comments
 (0)