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

    xo-cli vm.importFromEsxi give error: JsonRpcError: can't get runtime of object devtest1 (Type: VirtualMachine)

    Scheduled Pinned Locked Moved Migrate to XCP-ng
    3 Posts 3 Posters 58 Views 3 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.
    • J Offline
      jcharles
      last edited by olivierlambert

      Hi, I am tying to migrate a test vm from ESXi 7 to xcp-ng but I get an error. I have tried moving the esxi VM to a different host and renaming the vm, Also tried reinstalling xo-cli.

      npm uninstall -g xo-cli
      npm install -g xo-cli

      But no luck.

      Here is my command:

      xo-cli vm.importFromEsxi host=x.x.x.x network=e5befe87-ed23-fcc2-1f1a-3883a1123dcb password=XXXXX sr=2e9ff937-6c4c-86c5-81d2-18331c69bbe5 sslVerify=false stopSource=true user=root template=39f341be-b9aa-c7fd-33a9-355312c2246a vm=devtest1
      āœ– JsonRpcError: can't get runtime of object devtest1 (Type: VirtualMachine)
          at Peer._callee$ (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\json-rpc-peer\dist\index.js:139:44)
          at tryCatch (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\@babel\runtime\helpers\regeneratorRuntime.js:45:16)
          at Generator.<anonymous> (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\@babel\runtime\helpers\regeneratorRuntime.js:133:17)
          at Generator.next (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\@babel\runtime\helpers\regeneratorRuntime.js:74:21)
          at asyncGeneratorStep (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\@babel\runtime\helpers\asyncToGenerator.js:3:17)
          at _next (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\@babel\runtime\helpers\asyncToGenerator.js:17:9)
          at C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\@babel\runtime\helpers\asyncToGenerator.js:22:7
          at new Promise (<anonymous>)
          at Peer.<anonymous> (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\@babel\runtime\helpers\asyncToGenerator.js:14:12)
          at Peer.exec (C:\Users\jcharles\AppData\Roaming\npm\node_modules\xo-cli\node_modules\json-rpc-peer\dist\index.js:182:20) {
        code: -32000,
        data: {
          message: "can't get runtime of object devtest1 (Type: VirtualMachine)",
          name: 'Error',
          stack: "Error: can't get runtime of object devtest1 (Type: VirtualMachine)\n" +
            '    at Esxi.fetchProperty (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:451:13)\n' +
            '    at processTicksAndRejections (node:internal/process/task_queues:95:5)',
          succeeded: {}
        }
      }
      
      florentF 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Ping @florent

        1 Reply Last reply Reply Quote 0
        • florentF Offline
          florent Vates 🪐 XO Team @jcharles
          last edited by

          @jcharles said in xo-cli vm.importFromEsxi give error: JsonRpcError: can't get runtime of object devtest1 (Type: VirtualMachine):

          ssword=XXXXX sr=2e9ff937-6c4c-86c5-81d2-18331c69bbe5 sslVerify=false stopSource=true user=root template=39f341be-b9aa-c7fd-33a9-355312c2246a vm=devtest1

          vm should be an number
          it is the id in the URL in esxi

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