Unable to convert VM to Template in Xen Orchestra ( VBD_IS_EMPTY )
-
Hello
Ive created a VM that Im converting to a template in Xen Orchestra (xo-server 5.113.0) but i get the following error.
The storage of the vm disk is an nfs share from TrueNAS scale mounted to a 3 node XCP-ng 8.2 cluster
I will note that i can convert to template in XCP-ng Center with no error.
My logs for the error is as follows
vm.convertToTemplate { "id": "e6b3db34-f90f-5a9d-16cf-aeaeaf27c55c" } { "code": "VBD_IS_EMPTY", "params": [ "OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70" ], "task": { "uuid": "ce2df32b-d7d6-ff50-f484-78e51d81fde7", "name_label": "Async.VBD.eject", "name_description": "", "allowed_operations": [], "current_operations": {}, "created": "20230502T09:29:59Z", "finished": "20230502T09:29:59Z", "status": "failure", "resident_on": "OpaqueRef:b2fad3ee-05d6-474b-a3ec-47534ffb3627", "progress": 1, "type": "<none/>", "result": "", "error_info": [ "VBD_IS_EMPTY", "OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70" ], "other_config": {}, "subtask_of": "OpaqueRef:NULL", "subtasks": [], "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vbd_helpers.ml)(line 308))((process xapi)(filename ocaml/xapi/xapi_vbd_helpers.ml)(line 317))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 5190))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 199))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 203))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 233))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 104)))" }, "message": "VBD_IS_EMPTY(OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70)", "name": "XapiError", "stack": "XapiError: VBD_IS_EMPTY(OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70) at Function.wrap (/home/serveradmin/xen-orchestra/packages/xen-api/src/_XapiError.js:16:12) at _default (/home/serveradmin/xen-orchestra/packages/xen-api/src/_getTaskResult.js:11:29) at Xapi._addRecordToCache (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:998:37) at forEach (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:1032:14) at Array.forEach (<anonymous>) at Xapi._processEvents (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:1022:12) at Xapi._watchEvents (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:1195:14)" } -
@josh383451 The bug was fixed 3 days ago: https://github.com/vatesfr/xen-orchestra/commit/73d88cc5f1a5458c68e6935a9d5a9240616007b1
-
So the conversion doesn't work?
To me, it's probably a stupid bug after we added a CD eject from template conversion. For the sake of testing, can you insert an ISO into the VM and then try to convert it into a template?
-
I'm pretty sure it's a case we forgot to check. See https://github.com/vatesfr/xen-orchestra/pull/6769/files
-
@olivierlambert I'm on it

-
@olivierlambert Morning i will clone the same VM and try to conversion with an iso installed.
Will update this post in the next few hours
-
Conversion in Xen orchestra works with the clone of the VM and the guest iso installed
-
Julien will release a fix in
mastersoon
-
Roger Roger

-
@brodiecyber I've had this issue also. I found another workaround for this is to create a snapshot of the VM then convert the snapshot to a template
. This worked without any ISO mounted. -
I think this is fixed now
-
@josh383451 The bug was fixed 3 days ago: https://github.com/vatesfr/xen-orchestra/commit/73d88cc5f1a5458c68e6935a9d5a9240616007b1
-
O olivierlambert marked this topic as a question on
-
O olivierlambert has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login