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: {}
}
}