USB configuration descriptor not passed on to Linux VM
Posted: 18. Nov 2020, 23:19
I am using Windows 10 Home as a host (Build 19041)
I am running Version 6.1.16 r140961 (Qt5.6.2)
I am running an Ubuntu 18.04 VM
The VirtualBox machine is set to use USB 3.0 (xHCI) Controller
I am trying to use a Ximea USB 3 xic camera MC124CG-SY-UB in the VM, and the camera works with the same software under Windows and Linux (native rather than virtual).
Currently I am able to connect the USB device to the virtual machine. However the USB configuration descriptor is not passed through to the virtual machine. As a result the device is not able to function. Is it possible to pass this additional information through to the underlying device? Please let me know if you require any additional information and I will attempt to obtain it from the manufacturer.
Relevant usb query commands show the following; however I don't know how to get additional USB configuration descriptor information (what is currently being made available to the Linux VM):
. I have then selected to connect the USB device to the Virtual Machine.
The following lines are shown in /var/log/syslog:
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.132578] usb 2-1: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.163095] usb 2-1: LPM exit latency is zeroed, disabling LPM.
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164187] usb 2-1: New USB device found, idVendor=20f7, idProduct=30b3, bcdDevice= 0.00
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164191] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=10
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164192] usb 2-1: Product: xiC
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164194] usb 2-1: Manufacturer: XIMEA
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164195] usb 2-1: SerialNumber: CUCAU2032005
Nov 9 23:10:23 richard-ubuntu mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:0c.0/usb2/2-1"
Nov 9 23:10:23 richard-ubuntu mtp-probe: bus: 2, device: 4 was not an MTP device
Nov 9 23:10:23 richard-ubuntu upowerd[1440]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:0c.0/usb2/2-1
Using lsusb gives the following output:
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 20f7:30b3 XIMEA Camera with CMOS sensor in Vision mode [MQ]
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Using usb-devices gives the following output:
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=05.04
S: Manufacturer=Linux 5.4.0-52-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0c.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=80ee ProdID=0021 Rev=01.00
S: Manufacturer=VirtualBox
S: Product=USB Tablet
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 6
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev=05.04
S: Manufacturer=Linux 5.4.0-52-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0c.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=5000 MxCh= 0
D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1
P: Vendor=20f7 ProdID=30b3 Rev=00.00
S: Manufacturer=XIMEA
S: Product=xiC
S: SerialNumber=CUCAU2032005
C: #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=400mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ef(misc ) Sub=05 Prot=00 Driver=(none)
I: If#= 1 Alt= 0 #EPs= 1 Cls=ef(misc ) Sub=05 Prot=02 Driver=(none)
I: If#= 2 Alt= 0 #EPs= 1 Cls=ef(misc ) Sub=05 Prot=01 Driver=(none)
I am running Version 6.1.16 r140961 (Qt5.6.2)
I am running an Ubuntu 18.04 VM
The VirtualBox machine is set to use USB 3.0 (xHCI) Controller
I am trying to use a Ximea USB 3 xic camera MC124CG-SY-UB in the VM, and the camera works with the same software under Windows and Linux (native rather than virtual).
Currently I am able to connect the USB device to the virtual machine. However the USB configuration descriptor is not passed through to the virtual machine. As a result the device is not able to function. Is it possible to pass this additional information through to the underlying device? Please let me know if you require any additional information and I will attempt to obtain it from the manufacturer.
Relevant usb query commands show the following; however I don't know how to get additional USB configuration descriptor information (what is currently being made available to the Linux VM):
. I have then selected to connect the USB device to the Virtual Machine.
The following lines are shown in /var/log/syslog:
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.132578] usb 2-1: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.163095] usb 2-1: LPM exit latency is zeroed, disabling LPM.
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164187] usb 2-1: New USB device found, idVendor=20f7, idProduct=30b3, bcdDevice= 0.00
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164191] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=10
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164192] usb 2-1: Product: xiC
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164194] usb 2-1: Manufacturer: XIMEA
Nov 9 23:10:23 richard-ubuntu kernel: [ 1795.164195] usb 2-1: SerialNumber: CUCAU2032005
Nov 9 23:10:23 richard-ubuntu mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:0c.0/usb2/2-1"
Nov 9 23:10:23 richard-ubuntu mtp-probe: bus: 2, device: 4 was not an MTP device
Nov 9 23:10:23 richard-ubuntu upowerd[1440]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:0c.0/usb2/2-1
Using lsusb gives the following output:
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 20f7:30b3 XIMEA Camera with CMOS sensor in Vision mode [MQ]
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Using usb-devices gives the following output:
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=05.04
S: Manufacturer=Linux 5.4.0-52-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0c.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=80ee ProdID=0021 Rev=01.00
S: Manufacturer=VirtualBox
S: Product=USB Tablet
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 6
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev=05.04
S: Manufacturer=Linux 5.4.0-52-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0c.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=5000 MxCh= 0
D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1
P: Vendor=20f7 ProdID=30b3 Rev=00.00
S: Manufacturer=XIMEA
S: Product=xiC
S: SerialNumber=CUCAU2032005
C: #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=400mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ef(misc ) Sub=05 Prot=00 Driver=(none)
I: If#= 1 Alt= 0 #EPs= 1 Cls=ef(misc ) Sub=05 Prot=02 Driver=(none)
I: If#= 2 Alt= 0 #EPs= 1 Cls=ef(misc ) Sub=05 Prot=01 Driver=(none)