Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-81479

[DOC] USB host passthrough doc have incorrect configuration data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • CNV v4.18.0, CNV v4.19.0, CNV v4.20.0, CNV v4.21.0
    • CNV Documentation
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Important
    • None

      Description of problem:

      Reference doc https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html-single/virtualization/index#virt-enabling-usb-host-passthrough_virt-configuring-usb-host-passthrough

      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"}
                  ]
                }
              ]
            }
          }
        }'

      Reference doc https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html-single/virtualization/index#virt-configuring-vm-use-usb-device_virt-configuring-usb-host-passthrough

      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

              Unassigned Unassigned
              rhn-support-nashok Nijin Ashok
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: