XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Unable to convert VM to Template in Xen Orchestra ( VBD_IS_EMPTY )

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    11 Posts 4 Posters 2.1k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • brodiecyberB Offline
      brodiecyber
      last edited by

      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)"
      }
      
      1 Reply Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @josh383451
        last edited by

        @josh383451 The bug was fixed 3 days ago: https://github.com/vatesfr/xen-orchestra/commit/73d88cc5f1a5458c68e6935a9d5a9240616007b1

        0 julien-f committed to vatesfr/xen-orchestra
        fix(xo-server/vm.convertToTemplate): handle VBD_IS_EMPTY (#6808)
        
        Fixes https://xcp-ng.org/forum/post/61653
        1 Reply Last reply Reply Quote 3
        • olivierlambertO Online
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          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?

          brodiecyberB 1 Reply Last reply Reply Quote 0
          • olivierlambertO Online
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            I'm pretty sure it's a case we forgot to check. See https://github.com/vatesfr/xen-orchestra/pull/6769/files

            Since @julien-f is AFK, @pdonias could we fix this?

            julien-f opened this pull request in vatesfr/xen-orchestra

            closed feat(xo-server/vm.convertToTemplate): eject removable medias #6769

            julien-fJ brodiecyberB 2 Replies Last reply Reply Quote 0
            • julien-fJ Offline
              julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
              last edited by

              @olivierlambert I'm on it 🙂

              1 Reply Last reply Reply Quote 1
              • brodiecyberB Offline
                brodiecyber @olivierlambert
                last edited by

                @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

                1 Reply Last reply Reply Quote 0
                • brodiecyberB Offline
                  brodiecyber @olivierlambert
                  last edited by

                  @olivierlambert

                  Conversion in Xen orchestra works with the clone of the VM and the guest iso installed

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Online
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Julien will release a fix in master soon 🙂

                    brodiecyberB 1 Reply Last reply Reply Quote 0
                    • brodiecyberB Offline
                      brodiecyber @olivierlambert
                      last edited by

                      @olivierlambert

                      Roger Roger 🤖

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        josh383451 @brodiecyber
                        last edited by josh383451

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

                        julien-fJ 1 Reply Last reply Reply Quote 0
                        • olivierlambertO Online
                          olivierlambert Vates 🪐 Co-Founder CEO
                          last edited by

                          I think this is fixed now

                          1 Reply Last reply Reply Quote 1
                          • julien-fJ Offline
                            julien-f Vates 🪐 Co-Founder XO Team @josh383451
                            last edited by

                            @josh383451 The bug was fixed 3 days ago: https://github.com/vatesfr/xen-orchestra/commit/73d88cc5f1a5458c68e6935a9d5a9240616007b1

                            0 julien-f committed to vatesfr/xen-orchestra
                            fix(xo-server/vm.convertToTemplate): handle VBD_IS_EMPTY (#6808)
                            
                            Fixes https://xcp-ng.org/forum/post/61653
                            1 Reply Last reply Reply Quote 3
                            • olivierlambertO olivierlambert marked this topic as a question on
                            • olivierlambertO 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
                            • First post
                              Last post