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

CNV4.16: Failed to passthrough usb device to VM

XMLWordPrintable

    • 0.42
    • False
    • Hide

      None

      Show
      None
    • 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

              zpeng1@redhat.com Zhe Peng
              leidwang Leidong Wang
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: