-
Bug
-
Resolution: Done-Errata
-
Blocker
-
CNV v4.16.0
-
Quality / Stability / Reliability
-
0.42
-
False
-
-
False
-
None
-
-
No
Description of problem:
Hit an error when try to passthrough a usb device to VM.
Version-Release number of selected component (if applicable):
CNV4.16 RC3
How reproducible:
100%
Steps to Reproduce:
1.expose the USB device to clusteroc annotate --overwrite -n openshift-cnv hyperconverged kubevirt-hyperconverged kubevirt.kubevirt.io/jsonpatch='[{
"op": "add",
"path": "/spec/configuration/permittedHostDevices",
"value": {
"usb": [
{
"resourceName": "kubevirt.io/peripherals",
"selectors": [
{
"vendor": "045e",
"product": "078f"
}
]
}
]
}
}]'
2.add the hostdevice to VMspec:
domain:
devices:
hostDevices:
- deviceName: kubevirt.io/peripherals
name: usb-storage 2.
Actual results:
VM can not boot up, error message like that
qemu-kvm: -device {\"driver\":\"usb-host\",\"hostbus\":2,\"hostaddr\":50,\"id\":\"ua-usb-host-node-usb-to-vmi-storage\",\"bus\":\"usb.0\",\"port\":\"1\"}: 'usb-host' is not a valid device model name')"
Expected results:
VM boot up and the device can be found in the VM
Additional info:
PCI passthrough can pass the usb controller to the VM successfully, so this bz will not block SVVP testing
- links to
-
RHEA-2023:122979
OpenShift Virtualization 4.16.0 Images
- mentioned on