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.