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

    Can't copy or move VM from host with xen 6.5 to host xcp-ng 8.2

    Scheduled Pinned Locked Moved Xen Orchestra
    13 Posts 5 Posters 807 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.
    • L Offline
      lukasz_s
      last edited by

      Danp said in Can't copy or move VM from host with xen 6.5 to host xcp-ng 8.2:

      https://github.com/vatesfr/xen-orchestra/issues/3506

      Thanks for reply.

      I tried to use "continous replication" but i got this error:

      Error: INTERNAL_ERROR(Db_exn.Empty_key_in_map)
      

      i tried to use XO restore from backup to new host and got this error:

      backupNg.importVmBackup
      {
        "id": "2fc3d5cc-5f53-4df0-88b0-32a83c059f5f//xo-vm-backups/98361714-d7da-ea55-196b-3bad93f23422/20230628T145640Z.json",
        "settings": {
          "mapVdisSrs": {},
          "newMacAddresses": false
        },
        "sr": "ee68ade2-858d-efe1-d4af-60bf2075adba"
      }
      {
        "code": "IMPORT_ERROR",
        "params": [
          "INTERNAL_ERROR: [ Xmlrpc.Parse_error(\"open_tag(value)\", \"close_tag(name)\", _) ]"
        ],
        "url": "",
        "task": {
          "uuid": "df77e19f-211e-3279-eb50-aaa93f732190",
          "name_label": "[XO] VM import",
          "name_description": "",
          "allowed_operations": [],
          "current_operations": {},
          "created": "20230705T13:30:51Z",
          "finished": "20230705T13:30:51Z",
          "status": "failure",
          "resident_on": "OpaqueRef:532e2a15-4159-45b4-9e43-ff974c3a840c",
          "progress": 1,
          "type": "<none/>",
          "result": "",
          "error_info": [
            "IMPORT_ERROR",
            "INTERNAL_ERROR: [ Xmlrpc.Parse_error(\"open_tag(value)\", \"close_tag(name)\", _) ]"
          ],
          "other_config": {},
          "subtask_of": "OpaqueRef:NULL",
          "subtasks": [],
          "backtrace": "(((process xapi)(filename lib/backtrace.ml)(line 210))((process xapi)(filename ocaml/xapi/import.ml)(line 2021))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 92)))"
        },
      
      DanpD 1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team @lukasz_s
        last edited by

        Similar issue found here, but no solution given. Maybe stormi will have some additional thoughts on this.

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

          Or julien-f maybe, dunno 🤷

          julien-fJ 1 Reply Last reply Reply Quote 0
          • L Offline
            lukasz_s
            last edited by

            when trying migration i've got only this error in xensource.log on xen 6.5 host:

            Server_helpers.exec exception_handler: Got exception INTERNAL_ERROR: [ Not_found ]
            

            when trying to copy vm:

            VM export R:8d962d9e711d|dispatcher] Server_helpers.exec exception_handler: Got exception CLIENT_ERROR: [ INTERNAL_ERROR: [ Unix.Unix_error(31, "write", "") ] ]
            
            |xapi] Unhandled Api_errors.Server_error(CLIENT_ERROR, [ INTERNAL_ERROR: [ Unix.Unix_error(31, "write", "") ] ])
            
            

            i wonder if this error could be connected with fact that this is only of my vms was crated years ago on xen 6.5 with template Windows 7 (than vm was upgraded to windows 10 when it became available) which template is absent on xcp-ng 8.2 (it has only windows 10 templates)
            Other vms are windows10 templates and there was no problem to copy them to xcp-ng.

            any thoughts on this ?

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

              olivierlambert This looks like a host error, not an XO one.

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

                lukasz_s what about warm migration?

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lukasz_s
                  last edited by

                  it's strange , target exist for sure all other vm's were copied to that sr on new host:

                  vm.warmMigration
                  {
                    "deleteSourceVm": false,
                    "sr": "1949fb9f-8730-508c-558d-dd7fe531b0c3",
                    "startDestinationVm": false,
                    "vm": "98361714-d7da-ea55-196b-3bad93f23422"
                  }
                  {
                    "message": "Vm target of warm migration not found for 98361714-d7da-ea55-196b-3bad93f23422 on SR 1949fb9f-8730-508c-558d-dd7fe531b0c3 ",
                    "name": "Error",
                    "stack": "Error: Vm target of warm migration not found for 98361714-d7da-ea55-196b-3bad93f23422 on SR 1949fb9f-8730-508c-558d-dd7fe531b0c3 
                      at MigrateVm.warmMigrateVm (file:///home/node/xen-orchestra/packages/xo-server/src/xo-mixins/migrate-vm.mjs:98:13)
                      at Xo.warmMigration (file:///home/node/xen-orchestra/packages/xo-server/src/api/vm.mjs:608:3)
                      at Api.#callApiMethod (file:///home/node/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:417:20)"
                  }
                  
                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    I would restart the toolstack on the both sides, in case there's a host issue.

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      lukasz_s
                      last edited by

                      restarting toolstack does nothing 😞

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        dave.opc @lukasz_s
                        last edited by

                        lukasz_s

                        If your Windows system restarts with no issues, you can try and go to Control Panel - File History - System Image Backup and create a copy of your system. Then create a new VM on 8.2 and Restore it there

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          lukasz_s
                          last edited by

                          thanks for all advices
                          just moved all services to new vm, that makes topic is closed.

                          for last try i updated xen 6.5 to 7.4 but problem remains

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