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

    Import Centos VM from VMware fails with must have required property

    Scheduled Pinned Locked Moved Advanced features
    15 Posts 5 Posters 918 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.
    • J Offline
      jkissane @456Q
      last edited by

      @456Q Apologies, I should have stated the VM is powered off.

      4 1 Reply Last reply Reply Quote 0
      • B Offline
        bufanda @456Q
        last edited by

        @456Q XenOrchestra will create a Snapshot during the migration as far as I understand the process.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jkissane @bufanda
          last edited by

          This worked in that it imported the VM before I updated to the latest version of xoa, my problem then was the VM didn't boot property but went into the emerency shell due to missing disks. Now the import fails immediately with the error about a required property.

          I've just tried the process again with a Windows VM (also powered off) & got the same error message.

          Can other people import from VMware succesfully via xoa?

          1 Reply Last reply Reply Quote 0
          • 4 Offline
            456Q @jkissane
            last edited by

            @jkissane You still need a shnapshot for the migration to work. Thats at least my expierence.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jkissane @456Q
              last edited by jkissane

              @456Q No problem I'll try that & report back. Thanks!

              Afraid that made no difference, it fails immediately with the same error. When I imported in the past, I didn't need to take a snapshot as the VM was powered off.

              4 1 Reply Last reply Reply Quote 0
              • 4 Offline
                456Q @jkissane
                last edited by 456Q

                @jkissane Create the snapshot, dont enable "stop the source vm" if your vm is shutdown already and it should work fine.

                3862bb19-1509-460e-a8f8-f12b0cc45076-image.png

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jkissane @456Q
                  last edited by

                  @456Q That button isn't checked as the source VM is already stopped so I didn't change the default.

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

                    I noticed there were some updates available for both xcp ( xcp-ng-release.x86_64 0:8.2.1-11) & xoa (5.9.1) so I applied those & tried the import again to see if might work but still getting the same error.

                    vm.importMultipleFromEsxi
                    {
                      "concurrency": 2,
                      "host": "vc.tyndall.ie",
                      "network": "5b7cfe55-d788-08b3-c70c-ad7e113840a8",
                      "password": "* obfuscated *",
                      "sr": "98a52525-862f-3bb1-3403-3dc334f2509d",
                      "sslVerify": false,
                      "stopOnError": true,
                      "stopSource": false,
                      "user": "john.kissane@x.y",
                      "vms": [
                        "vm-9656"
                      ]
                    }
                    {
                      "code": 10,
                      "data": {
                        "errors": [
                          {
                            "instancePath": "",
                            "schemaPath": "#/required",
                            "keyword": "required",
                            "params": {
                              "missingProperty": "template"
                            },
                            "message": "must have required property 'template'"
                          }
                        ]
                      },
                      "message": "invalid parameters",
                      "name": "XoError",
                      "stack": "XoError: invalid parameters
                        at Module.invalidParameters (/usr/local/lib/node_modules/xo-server/node_modules/xo-common/src/api-errors.js:21:32)
                        at Xo.call (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:90:22)
                        at Api.#callApiMethod (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:362:19)"
                    }
                    

                    This time I left the source VM running but the error is the same as when I had it powered off. It's not clear to me what the error about a template means or perhaps I'm missing something obvious.

                    DanpD 1 Reply Last reply Reply Quote 0
                    • DanpD Offline
                      Danp Pro Support Team @jkissane
                      last edited by

                      @jkissane said in Import Centos VM from VMware fails with must have required property:

                          "message": "must have required property 'template'"
                      

                      Newer versions of XOA allow for the selection of a template to be used with the migrated VM. Did you fail to select a template from the dropdown?

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jkissane @Danp
                        last edited by

                        @Danp That would appear to be it, thanks for pointing it out. Should have really spotted it myself of course!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post