We show 3 ways in XCP-NG to attach USB devices to a guest.
- USB passthrough
- PCI-E passthrough of USB controller
- Passthrough of USB attached storage
PCI-E passthrough command lines: 1 . Identify USB PCI-E device:
lsusb | grep USB
- Exclude the PCI device from the XCP-Ng host and reboot
/opt/xensource/libexec/xen-cmdline --set-dom0 "xen-pciback.hide=(37:00.0)"
- Check device is available
xl pci-assignable-list
- Assign PCI-E card to guest
xe vm-param-set other-config:pci=0/0000:37:00.0,0 uuid=**GET FROM GUEST**
- boot guest and see the device