XCP-NG USB passthrough howto

We show 3 ways in XCP-NG to attach USB devices to a guest.

  1. USB passthrough
  2. PCI-E passthrough of USB controller
  3. Passthrough of USB attached storage

PCI-E passthrough command lines: 1 . Identify USB PCI-E device:

lsusb | grep USB
  1. Exclude the PCI device from the XCP-Ng host and reboot
/opt/xensource/libexec/xen-cmdline --set-dom0 "xen-pciback.hide=(37:00.0)"
  1. Check device is available
xl pci-assignable-list
  1. Assign PCI-E card to guest
xe vm-param-set other-config:pci=0/0000:37:00.0,0 uuid=**GET FROM GUEST**
  1. boot guest and see the device