XCP-NG Usb Passthrought

Hi guys, ive just setup xcp-ng and XOA. Is there a way to set up a permanent USB passthrough for a specific device? It looks like this might be classed as “hot plug” although im not certain. Thanks!

You can pass through devices via the command line on the XCP-NG server.

Thanks Tom! Id assume that because i’m wanting to passthrough a USB device rather than controller the documentation I need is https://wiki.xenproject.org/wiki/Xen_USB_Passthrough ?

Following the section Host USB in xl ive attemtped to run

xl usbctrl-attach test_vm version=1 ports=8 (obviously with my vm name)

and i get

libxl: error: libxl_device.c:1408:device_addrm_aocomplete: unable to add device libxl_device_usbctrl_add failed.

Are the Xen Tools required for this to work?

Not sure, I never use passthrough in production.