Unable to migrate VM cross pool (duplicate_vm)
-
I am trying to migrate a VM from a standalone to a pool but get the below. Worth noting that the VM I am trying to replicate has a CR task that replicates the VM into the pool (albeit different host and storage). I assume thus that the duplicate VM refers to the CR version that is already in the pool? If so, is it then safe to assume that I cannot use CR where my target host / pool is the same as that of the VM?
vm.migrate { "vm": "3e9cba1f-9880-9cee-4aa2-c1285ba84dd7", "mapVifsNetworks": { "f7993db1-a111-a36b-a936-4bac8c6433bd": "807d4cf6-474a-c852-78a5-77d40968b949", "3c74d96d-07f7-6b51-98d3-eaf71160e059": "cff91b21-b808-7ab1-8c0f-cc8b6ade9add" }, "migrationNetwork": "7b7e3a39-5543-1d6c-2973-54d6d70b6bfb", "sr": "90c393c6-4d12-f04a-38f1-f547268e9187", "targetHost": "e74d45d2-06c3-4cf5-b412-ddd25d1d780a" } { "code": 21, "data": { "objectId": "3e9cba1f-9880-9cee-4aa2-c1285ba84dd7", "code": "DUPLICATE_VM" }, "message": "operation failed", "name": "XoError", "stack": "XoError: operation failed at factory (/home/xo/xen-orchestra/packages/xo-common/src/api-errors.js:21:32) at /home/xo/xen-orchestra/packages/xo-server/src/api/vm.js:487:15 at Object.migrate (/home/xo/xen-orchestra/packages/xo-server/src/api/vm.js:474:3) at Api.callApiMethod (/home/xo/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:304:20)" }
-
You may want to review this thread.