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

    Unable to migrate VM: HANDLE_INVALID(SR, OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394)

    Scheduled Pinned Locked Moved Management
    2 Posts 1 Posters 434 Views 1 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.
    • K Offline
      Kajetan321
      last edited by Kajetan321

      I'm trying to migrate a powered off VM from one host to another and when I try to migrate I get the error below:

      The source host is xcp-ng 8.2 and the destination host is xcp-ng 8.3

      vm.migrate
      {
        "vm": "78938c32-eb52-491f-1fbf-3ad5d2e374f0",
        "mapVifsNetworks": {
          "b56126a8-85ab-80de-9db8-4864ec5618e5
      
      ": "99b40169-8dab-6e9d-db96-23277b405b4a
      
      "
        },
        "migrationNetwork": "99b40169-8dab-6e9d-db96-23277b405b4a
      
      ",
        "sr": "18850841-5eb8-6b28-73ba-cae1c40af157",
        "targetHost": "69c0c257-a547-4d49-8270-b49eafe35c2c"
      }
      {
        "code": "HANDLE_INVALID",
        "params": [
          "SR",
          "OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394
      
      "
        ],
        "task": {
          "uuid": "b0365bf6-8275-0194-fa8d-463cd966463c
      
      ",
          "name_label": "Async.VM.migrate_send",
          "name_description": "",
          "allowed_operations": [],
          "current_operations": {},
          "created": "20250131T19:17:57Z",
          "finished": "20250131T19:17:58Z",
          "status": "failure",
          "resident_on": "OpaqueRef:e3f0dcf1-42a7-4ed2-afed-1d387e305657",
          "progress": 1,
          "type": "<none/>",
          "result": "",
          "error_info": [
            "HANDLE_INVALID",
            "SR",
            "OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394
      
      "
          ],
          "other_config": {},
          "subtask_of": "OpaqueRef:NULL",
          "subtasks": [],
          "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_migrate.ml)(line 1573))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 131))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 1228))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 2298))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))"
        },
        "message": "HANDLE_INVALID(SR, OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394
      
      )",
        "name": "XapiError",
        "stack": "XapiError: HANDLE_INVALID(SR, OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394
      
      )
          at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_XapiError.mjs:16:12)
          at default (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_getTaskResult.mjs:13:29)
          at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1068:24)
          at file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1102:14
          at Array.forEach (<anonymous>)
          at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1092:12)
          at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1265:14)"
      }
      

      I tried to move the VM between hosts using XCP-ng Center and also got an error:

      Migrating VM 'IPM-ova on 'xcp-m90t'' to 'xcp-m83 in 'xcp-m83''
      Object has been deleted.SR:OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394
      Time: 00:00:01	xcp-m83	Jan 31, 2025 2:35 PM	Dismiss
      

      I'm able to move other VMs around just fine.

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        Kajetan321 @Kajetan321
        last edited by

        Update: I was able to move the VM to a different host that is also xcp-ng 8.2. When I tried moving the VM back to where it came from now I'm getting: NO_HOSTS_AVAILABLE()

        vm.migrate
        {
          "mapVdisSrs": {
            "f4d88025-9e26-44a1-8028-4d5d9c11c994
        
        ": "18850841-5eb8-6b28-73ba-cae1c40af157"
          },
          "mapVifsNetworks": {
            "b56126a8-85ab-80de-9db8-4864ec5618e5
        
        ": "99b40169-8dab-6e9d-db96-23277b405b4a
        
        "
          },
          "migrationNetwork": "99b40169-8dab-6e9d-db96-23277b405b4a
        
        ",
          "sr": "18850841-5eb8-6b28-73ba-cae1c40af157",
          "targetHost": "69c0c257-a547-4d49-8270-b49eafe35c2c",
          "vm": "78938c32-eb52-491f-1fbf-3ad5d2e374f0"
        }
        {
          "code": "NO_HOSTS_AVAILABLE",
          "params": [],
          "task": {
            "uuid": "4eb56a28-ffa7-cee6-31e1-87209af8de75
        
        ",
            "name_label": "Async.VM.migrate_send",
            "name_description": "",
            "allowed_operations": [],
            "current_operations": {},
            "created": "20250131T20:51:54Z",
            "finished": "20250131T20:51:54Z",
            "status": "failure",
            "resident_on": "OpaqueRef:72cbec6b-d489-49ca-a8a8-e623e3c5f4e4",
            "progress": 1,
            "type": "<none/>",
            "result": "",
            "error_info": [
              "NO_HOSTS_AVAILABLE"
            ],
            "other_config": {},
            "subtask_of": "OpaqueRef:NULL",
            "subtasks": [],
            "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_placement.ml)(line 104))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 1199))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/helpers.ml)(line 1356))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 1191))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 2279))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))"
          },
          "message": "NO_HOSTS_AVAILABLE()",
          "name": "XapiError",
          "stack": "XapiError: NO_HOSTS_AVAILABLE()
            at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_XapiError.mjs:16:12)
            at default (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_getTaskResult.mjs:13:29)
            at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1068:24)
            at file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1102:14
            at Array.forEach (<anonymous>)
            at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1092:12)
            at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1265:14)"
        }
        

        I rebooted XO and tried moving the VM to the xcp-ng 8.3 machine again. It looks like the task started but now it's hung at "Connection to VM console (on xcp-m83) 0%" and I can't "Cancel" or "Destroy" the task 😞

        1 Reply Last reply Reply Quote 0

        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