Join GitHub today
Starting a VM with USB passthrough results in Internal Server Error #108
After attaching a USB device to a VM using the procedure detailed here https://github.com/xcp-ng/xcp/wiki/USB-Pass-Through. I see the following error when trying to start the VM:
[root@ahf-test1 ~]# xe vm-start uuid=03c084c3-6165-25a8-d983-3cd5b11816a0
It looks like /opt/xensource/libexec/usb_reset.py is being passed the -r argument but no value for it. I assume RESET_ONLY is a constant.
I have found a work around for this but it is not a solution.
I have modified /opt/xensource/libexec/usb_reset.py to add a default for the -r argument if non is supplied:
The underlying problem must be with whatever code calls usb_reset.py, but I can't work out where it is called from when a VM with USB is started.
For future reference, forum thread about USB passthrough issues: https://xcp-ng.org/forum/topic/266/usb-passthrough-test-reports-in-7-5rc1