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
Copy file name to clipboardExpand all lines: modules/virt-enabling-usb-host-passthrough.adoc
+21-37Lines changed: 21 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,54 +76,38 @@ Device: 3-7
76
76
----
77
77
78
78
79
-
. Add the required USB device to the `permittedHostDevices` stanza of the `HyperConvered` CR. The following example adds a device with vendor ID `045e` and product ID `07a5`:
79
+
. Open the `HyperConverged` CR in your default editor by running the following command:
* Ensure that the HCO CR contains the required USB devices:
98
-
+
99
-
[source,terminal]
100
-
----
101
-
$ oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv
102
-
----
103
-
+
104
-
*Example output*
87
+
. Add the required USB device to the `permittedHostDevices` stanza of the `HyperConvered` CR. The following example adds a device with vendor ID `045e` and product ID `07a5`:
105
88
+
106
-
[source,yaml,subs="attributes+"]
89
+
[source,yaml,highlight=11..12,subs="attributes+"]
107
90
----
108
91
apiVersion: hco.kubevirt.io/v1beta1
109
92
kind: HyperConverged
110
93
metadata:
111
-
name: kubevirt-hyperconverged
112
-
namespace: {CNVNamespace}
94
+
name: kubevirt-hyperconverged
95
+
namespace: {CNVNamespace}
113
96
spec:
114
-
permittedHostDevices:
115
-
usbHostDevices:
116
-
- resourceName: kubevirt.io/peripherals
117
-
selectors:
118
-
- vendor: "045e"
119
-
product: "07a5"
120
-
- vendor: "062a"
121
-
product: "4102"
122
-
- vendor: "072f"
123
-
product: "b100"
124
-
97
+
permittedHostDevices:
98
+
usbHostDevices:
99
+
- resourceName: kubevirt.io/peripherals
100
+
selectors:
101
+
- vendor: "045e"
102
+
product: "07a5"
103
+
- vendor: "062a"
104
+
product: "4102"
105
+
- vendor: "072f"
106
+
product: "b100"
125
107
----
126
108
+
127
109
* `spec.permittedHostDevices` defines the host devices that have permission to be used in the cluster.
128
-
* `spec.permittedHostDevices.usbHostDevices` defines the available USB devices.
129
-
* Use `resourceName: deviceName` for each device you want to add and assign to the VM. In this example, the resource is bound to three devices, each of which is identified by `vendor` and `product` and is known as a `selector`.
110
+
* `spec.permittedHostDevices.usbHostDevices` defines a list of available USB devices.
111
+
* `spec.permittedHostDevices.usbHostDevices.resourceName` defines the USB device that you want to add and assign to the
112
+
VM. In this example, the resource is bound to three devices, each of which is identified by `vendor` and `product` and
0 commit comments