XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. redalert11
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 0

    redalert11

    @redalert11

    1
    Reputation
    23
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    redalert11 Unfollow Follow

    Best posts made by redalert11

    • RE: USB passthrough test reports in 7.5RC1

      working! i was able to pass through my AEOTEC zwave usb device.

      @fjen had a good write up i had to change it a little bit for me. follow step 1-4

      @fjen said in USB passthrough test reports in 7.5RC1:

      @olivierlambert Sure thing!

      Because I was passing through a USB Bluetooth dongle, I had to specifically create an "allow" entry in /etc/xensource/usb-policy.conf.

      1. Run lsusb and identify the device to be passed through.
      Bus 001 Device 002: ID 1b70:100f
      Bus 001 Device 003: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
      Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
      Bus 001 Device 005: ID 0557:7000 ATEN International Co., Ltd Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 001 Device 006: ID 0557:2419 ATEN International Co., Ltd
      

      ......

      what i did different

      [root@xcp-ng ~]# nano /etc/xensource/usb-policy.conf

      change DENY: class=02 # Communications and CDC-Control to ALLOW: class=02 # Communications and CDC-Control
      also don't add the class to to your new line ALLOW:vid=0658 pid=0200

      my usb-policy.conf

      # When you change this file, run 'xe pusb-scan' to confirm
      # the file can be parsed correctly.
      #
      # Syntax is an ordered list of case insensitive rules where # is line comment
      #  and each rule is (ALLOW | DENY) : ( match )*
      #  and each match is (class|subclass|prot|vid|pid|rel) = hex-number
      # Maximum hex value for class/subclass/prot is FF, and for vid/pid/rel is FFFF
      #
      # USB Hubs (class 09) are always denied, independently of the rules in this file
      DENY: vid=17e9 # All DisplayLink USB displays
      ALLOW:vid=0658 pid=0200
      ALLOW: class=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: # Otherwise allow everything else
      
      

      now run /opt/xensource/libexec/usb_scan.py -d

      [root@xcp-ng ~]# /opt/xensource/libexec/usb_scan.py -d
      [{"product-desc": "", "product-id": "0200", "description": "Sigma Designs, Inc.", "vendor-desc": "Sigma Designs, Inc.", "version": "2.00", "vendor-id": "0658", "path": "5-1", "serial": ""}]
      [root@xcp-ng ~]#
      
      

      reboot the server and you can now passthrough the usb using xcp-ng center

      posted in Development
      R
      redalert11

    Latest posts made by redalert11

    • RE: USB passthrough test reports in 7.5RC1

      working! i was able to pass through my AEOTEC zwave usb device.

      @fjen had a good write up i had to change it a little bit for me. follow step 1-4

      @fjen said in USB passthrough test reports in 7.5RC1:

      @olivierlambert Sure thing!

      Because I was passing through a USB Bluetooth dongle, I had to specifically create an "allow" entry in /etc/xensource/usb-policy.conf.

      1. Run lsusb and identify the device to be passed through.
      Bus 001 Device 002: ID 1b70:100f
      Bus 001 Device 003: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
      Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
      Bus 001 Device 005: ID 0557:7000 ATEN International Co., Ltd Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 001 Device 006: ID 0557:2419 ATEN International Co., Ltd
      

      ......

      what i did different

      [root@xcp-ng ~]# nano /etc/xensource/usb-policy.conf

      change DENY: class=02 # Communications and CDC-Control to ALLOW: class=02 # Communications and CDC-Control
      also don't add the class to to your new line ALLOW:vid=0658 pid=0200

      my usb-policy.conf

      # When you change this file, run 'xe pusb-scan' to confirm
      # the file can be parsed correctly.
      #
      # Syntax is an ordered list of case insensitive rules where # is line comment
      #  and each rule is (ALLOW | DENY) : ( match )*
      #  and each match is (class|subclass|prot|vid|pid|rel) = hex-number
      # Maximum hex value for class/subclass/prot is FF, and for vid/pid/rel is FFFF
      #
      # USB Hubs (class 09) are always denied, independently of the rules in this file
      DENY: vid=17e9 # All DisplayLink USB displays
      ALLOW:vid=0658 pid=0200
      ALLOW: class=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: # Otherwise allow everything else
      
      

      now run /opt/xensource/libexec/usb_scan.py -d

      [root@xcp-ng ~]# /opt/xensource/libexec/usb_scan.py -d
      [{"product-desc": "", "product-id": "0200", "description": "Sigma Designs, Inc.", "vendor-desc": "Sigma Designs, Inc.", "version": "2.00", "vendor-id": "0658", "path": "5-1", "serial": ""}]
      [root@xcp-ng ~]#
      
      

      reboot the server and you can now passthrough the usb using xcp-ng center

      posted in Development
      R
      redalert11