xen-orchestra
xen-orchestra copied to clipboard
How to map a USB port to a VM?
I can't seem to find the location in the new UI to map a raw USB port/device to a VM. Has this been removed or am I just dense and can't find it anywhere? I'm not talking about adding a USB SR, but mapping a physical USB port to a VM's USB port.
Do you remember where it was in the v4? I can't remember having it (sorry, so much features to remember ^^)
Yea, I can't remember either, sorry.
I think it was labelled as "PCI Devices" in the VM page in the V4 (there is a CONNECT button when the mouse is hover)
It worked for real? I never had the occasion to test it.
@olivierlambert you just made my day :laughing:
I may be able to test it, do you need a cobaye ? :mouse: :mouse:
I'll have to read again the server code behind that to see how "hard" it would be to re-implement it in the UI
@olivierlambert View in v4: https://github.com/vatesfr/xo-web/blob/v4/app/modules/vm/view.jade#L818-L839 Controller in v4: https://github.com/vatesfr/xo-web/blob/v4/app/node_modules/xo/index.js#L338-L343 Server side: https://github.com/vatesfr/xo-server/blob/247c66ef4baa6441773c69ce909f09ae1a5c1fa0/src/api/vm.coffee#L1138-L1174
If you need a cobaye, tell me I'll setup a local XS for test.
Closing, feel free to ask for reopen.
any update? this can be done from the xe cli (or xcp-ng center) as well, but i wish it was possible in XO
Hi @mrsshr
As you can see, because the lack of requests, we closed the issue. Do you need to use that feature often?
i use it occasionally. but i wish XO could completely replace the xcp-ng center.
~~or it would be nice if there is a guide to usb passthrough using xe cli in the xcp-ng documentation. i found the url below, but i was sad that there was no page. https://github.com/xcp-ng/xcp/wiki/USB-Pass-Through~~
for future travelers: https://xcp-ng.org/docs/compute.html#usb-passthrough
Yeah, we documented it for xe
usage, which seems a good answer for casual needs.
However, I hear you and we should probably expose this in our next gen UI, in XO 6.
It is not as trivial to do this in XO, compared to Proxmox. I would really like this feature in the GUI.
This is duly noted and will appear in XO 6 :)
@olivierlambert Very good to hear. What is the timeline for that release?
Somewhere in 2022. We started to work on the first UX/UI concept with an UX specialist, and XO Lite is also the occasion to test some technologies/components.
Before that, we are also open to contributions on XO 5 obviously :+1:
Adding some example commands used by someone on the forum: https://gist.github.com/gpoole/c89807e9de9cb5c87bbcc2da27e0c3e4
This fixed yet?
Another caveat using xcp-ng (versus Proxmox), is that you are unable to do a backup when you have USB attached :(
+1 For having a GUI for USB passthrough (in XO).
It is done on master.