xo-cli vm.importFromEsxi give error: JsonRpcError: can't get runtime of object devtest1 (Type: VirtualMachine)
-
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-cliBut 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: {} } } -
Ping @florent
-
@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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login