-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
CNV v4.18.0, CNV v4.19.0, CNV v4.20.0, CNV v4.21.0
-
None
-
Quality / Stability / Reliability
-
0.42
-
False
-
-
False
-
None
-
-
Important
-
None
Description of problem:
Step 3 in doc is asking to add usbHostDevices as "kubevirt.kubevirt.io/jsonpatch", but it is supported to add it in hco spec directly like below, and we don't have to go through unsupported jsonpatch:
oc patch hyperconverged kubevirt-hyperconverged \
-n openshift-cnv \
--type=merge \
-p '{
"spec": {
"permittedHostDevices": {
"usbHostDevices": [
{
"resourceName": "kubevirt.io/peripherals",
"selectors": [
{"vendor": "045e", "product": "07a5"}
]
}
]
}
}
}'
Step [2] is asking to edit VMI spec, but we have to add the device in the VM spec like below:
% oc get vm rhel9-kvm -o yaml |yq '.spec.template.spec.domain.devices'
hostDevices:
- deviceName: kubevirt.io/peripherals
name: test-usb