vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
789 stars 267 forks source link

Error on vm.migrate (XCP-NG 8.2 => XCP-NG 8.3 Beta) #7433

Closed RHuehne closed 7 months ago

RHuehne commented 8 months ago
vm.migrate
{
  "vm": "8a265b3b-0f1a-1fc1-a3b6-6ce1a1545d7f",
  "mapVifsNetworks": {
    "3b255537-a736-8ff7-0914-7ddccef60072": "00c828be-d0e1-0751-071f-8f0b968b83d5",
    "4119a399-efe9-77a7-0e65-470b66e765d4": "00c828be-d0e1-0751-071f-8f0b968b83d5"
  },
  "migrationNetwork": "00c828be-d0e1-0751-071f-8f0b968b83d5",
  "sr": "297b4c32-a2f5-df87-35b8-aa72e0cf08b9",
  "targetHost": "06d85bea-0ebe-4b46-9a21-8a224ca5c2f3"
}
{
  "code": 21,
  "data": {
    "objectId": "8a265b3b-0f1a-1fc1-a3b6-6ce1a1545d7f",
    "code": "IMPORT_ERROR"
  },
  "message": "operation failed",
  "name": "XoError",
  "stack": "XoError: operation failed
    at operationFailed (/opt/xen-orchestra/packages/xo-common/api-errors.js:26:11)
    at file:///opt/xen-orchestra/packages/xo-server/src/api/vm.mjs:559:15
    at Xo.migrate (file:///opt/xen-orchestra/packages/xo-server/src/api/vm.mjs:545:3)
    at Api.#callApiMethod (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:401:20)"
}
julien-f commented 8 months ago

Please upgrade your xo-server, a change made 3 months ago made the API throw an error clearer than operation failed.

RHuehne commented 8 months ago

OK, thanks will update my xo-server. However, I found my problem. The VM was first copied to another host (without even trying to boot it on there, was just a temp location), which went fine. From there I wanted to migrate it to a 3rd host , which triggered the error. My issue was, that the VM still had a passthrough gpu configured. This was fine for a copy, but not for migrating.