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

    Unable to migrate VM cross pool (duplicate_vm)

    Scheduled Pinned Locked Moved Xen Orchestra
    2 Posts 2 Posters 214 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.
    • mauzillaM Offline
      mauzilla
      last edited by

      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)"
      }
      
      1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        You may want to review this thread.

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