@fjen said in XCP-ng 7.5.0 Release Candidate:
@aimdev
Just wanted to chime in here and say that USB Passthrough is also non-functional for me. Can't pass through a USB Bluetooth dongle, even though I added an allow run to the usb-policy.conf
file and it shows up fine in the CLI and XCP-ng Center.
Hi
Thanks for the info.
My /etc/xensource/usb-policy.conf contained a DENY for class 2 devices
DENY: vid=17e9 # All DisplayLink USB displays
#DENY: class=02 # Communications and CDC-Control
ALLOW: class=02 subclass=02 # Communications and CDC-Control
ALLOW:vid=056a pid=0315 class=03 # Wacom Intuos tablet
ALLOW:vid=056a pid=0314 class=03 # Wacom Intuos tablet
ALLOW:vid=056a pid=00fb class=03 # Wacom DTU tablet
DENY: class=03 subclass=01 prot=01 # HID Boot keyboards
DENY: class=03 subclass=01 prot=02 # HID Boot mice
DENY: class=0a # CDC-Data
DENY: class=0b # Smartcard
DENY: class=e0 # Wireless controller
DENY: class=ef subclass=04 # Miscellaneous network devices
ALLOW:vid=1546 pid=01a8 class=02 # Ublox
ALLOW: # Otherwise allow everything else
My device is a class 2 device.
Aug 2 06:02:38 localhost usb_scan.py DEBUG: UsbDevice: (u'3-2', {'idVendor': '1546', 'ID_VENDOR_FROM_DATABASE': u'U-Blox AG', 'bConfigurationValue': '1', 'bDeviceClass': '02', 'ID_MODEL_FROM_DATABASE': '', 'version': ' 1.10', 'idProduct': '01a8', 'bNumInterfaces': ' 2', 'serial': '', 'bcdDevice': '0301'})#012#011|__ UsbInterface: (u'3-2:1.0', {'bInterfaceNumber': '00', 'bInterfaceClass': '02', 'bInterfaceProtocol': '01', 'bInterfaceSubClass': '02'})#012#011|__ UsbInterface: (u'3-2:1.1', {'bInterfaceNumber': '01', 'bInterfaceClass': '0a', 'bInterfaceProtocol': 'ff', 'bInterfaceSubClass': '00'})
I commented out the DENY, added an ALLOW for class 2, added the line for the UBLOX, which basically is a serial
device (its a gps receiver I am going to use as the source for a time server)
Rebooted
The result of the /opt/xensource/libexec/usb_scan.py -d command does not show the UBLOX, only the UPS.
Not sure if I have got the configuration correct.
I looked at the citrix docs, but until the scan shows the device, I cannot proceed any further.
I will take a look at the usb_scan.py to try and determine the rules.
Thanks
Aimee