xen-orchestra icon indicating copy to clipboard operation
xen-orchestra copied to clipboard

How to map a USB port to a VM?

Open scumola opened this issue 7 years ago • 17 comments

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.

scumola avatar Oct 20 '16 15:10 scumola

Do you remember where it was in the v4? I can't remember having it (sorry, so much features to remember ^^)

olivierlambert avatar Oct 20 '16 15:10 olivierlambert

Yea, I can't remember either, sorry.

scumola avatar Oct 20 '16 15:10 scumola

pci_devices 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)

fufroma avatar Oct 20 '16 15:10 fufroma

It worked for real? I never had the occasion to test it.

olivierlambert avatar Oct 20 '16 15:10 olivierlambert

@olivierlambert you just made my day :laughing:

I may be able to test it, do you need a cobaye ? :mouse: :mouse:

fufroma avatar Oct 20 '16 16:10 fufroma

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 avatar Oct 20 '16 21:10 olivierlambert

@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.

fufroma avatar Oct 21 '16 07:10 fufroma

Closing, feel free to ask for reopen.

olivierlambert avatar Dec 24 '20 07:12 olivierlambert

any update? this can be done from the xe cli (or xcp-ng center) as well, but i wish it was possible in XO

mrsshr avatar Mar 28 '21 09:03 mrsshr

Hi @mrsshr

As you can see, because the lack of requests, we closed the issue. Do you need to use that feature often?

olivierlambert avatar Mar 28 '21 14:03 olivierlambert

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

mrsshr avatar Mar 28 '21 15:03 mrsshr

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.

olivierlambert avatar Mar 28 '21 18:03 olivierlambert

It is not as trivial to do this in XO, compared to Proxmox. I would really like this feature in the GUI.

psychogun avatar Nov 20 '21 22:11 psychogun

This is duly noted and will appear in XO 6 :)

olivierlambert avatar Nov 20 '21 22:11 olivierlambert

@olivierlambert Very good to hear. What is the timeline for that release?

psychogun avatar Nov 20 '21 22:11 psychogun

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:

olivierlambert avatar Nov 20 '21 22:11 olivierlambert

Adding some example commands used by someone on the forum: https://gist.github.com/gpoole/c89807e9de9cb5c87bbcc2da27e0c3e4

olivierlambert avatar Apr 11 '22 06:04 olivierlambert

This fixed yet?

czadikem avatar Feb 04 '23 18:02 czadikem

Another caveat using xcp-ng (versus Proxmox), is that you are unable to do a backup when you have USB attached :(

psychogun avatar Feb 04 '23 19:02 psychogun

+1 For having a GUI for USB passthrough (in XO).

gb-123-git avatar Dec 18 '23 19:12 gb-123-git

It is done on master.

olivierlambert avatar Mar 01 '24 20:03 olivierlambert