xcp icon indicating copy to clipboard operation
xcp copied to clipboard

xe vbd-create incorrect param name

Open olivierlambert opened this issue 6 years ago • 4 comments

To create a VBD with xe, we use something like this:

xe vbd-create vdi-uuid=<VDI UUID> vm-uuid=<VM UUID> device=0

Here, device is the position of the VBD in the VM (0,1,2…), acting as an order. However, the param modified in XAPI is called userdevice and NOT device, which is the device name in the system (eg xvda).

xe should be corrected to use userdevice instead of device during vbd-create call.

olivierlambert avatar Feb 15 '19 18:02 olivierlambert

Reading this at the moment because it seems like I'm hitting this bug XCP-NG 8.2). Using orchestra don't yield the same results (ie: it's working properly with it).

Also while I'm using XCP-NG, I understand that even if xe is packaged by XCP-NG, it's a downstream package ? where should this bug be reported if we want to help it fixed ?

Additionally how is Orchestra doing to attatch a VBD properly ?

replicajune avatar Feb 24 '24 16:02 replicajune

xe is a tool made by the upstream XAPI project. I don't remember if we opened an issue there, but if we did not, then I'll be happy that you do :)

https://github.com/xapi-project/xen-api

olivierlambert avatar Feb 24 '24 20:02 olivierlambert

I'll try to ensure that I can reproduce the issue with the latest version first. it look like the upstream repo has recent updates whereas the version of xe in XCP-NG dates from last summer. once I get that running I should be able to open an issue on the upstream repository. I'll try to follow up!

replicajune avatar Feb 28 '24 01:02 replicajune

You can get a newer xe by running XCP-ng 8.3 beta.

stormi avatar Feb 28 '24 11:02 stormi