Cannot create property 'ctkEnabled' on string 'true' on trying to import from ESXi
-
I would recommend switching to the "latest" release channel in XOA since it will contain the latest fixes to the V2V process. Also, make sure the VM has at least one snapshot. If you still encounter problems afterwards, then be sure to post the full error log.
-
@Danp Thanks for the quick response
I have changed to the latest channel and am now on 5.93.1
The VM I am trying to import is shutdown
The successful imports of the Linux VM's were so quick I can do the same with the Windows boxes once its working - this can be done over a weekend so that time is not too critical
I have started the VM and created a snapshot then shut it down again but still get the same results
the detailed message is
vm.importMultipleFromEsxi { "concurrency": 2, "host": "10.94.1.42", "network": "a89a38ea-85fe-2496-bb1e-fa3f08ef861d", "password": "* obfuscated *", "sr": "f2906057-941a-a927-7772-bdafb20b3952", "sslVerify": false, "stopOnError": true, "stopSource": false, "user": "root", "vms": [ "7" ] } { "succeeded": {}, "message": "Cannot create property 'ctkEnabled' on string 'true'", "name": "TypeError", "stack": "TypeError: Cannot create property 'ctkEnabled' on string 'true' at set (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/parsers/vmx.mjs:30:16) at set (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/parsers/vmx.mjs:24:7) at file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/parsers/vmx.mjs:52:5 at Array.forEach (<anonymous>) at parseVmx (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/parsers/vmx.mjs:50:20) at Esxi.getTransferableVmMetadata (file:///usr/local/lib/node_modules/xo-server/node_modules/@xen-orchestra/vmware-explorer/esxi.mjs:276:17) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:158:22) at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:141:20) at MigrateVm.migrationfromEsxi (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/migrate-vm.mjs:179:28) at file:///usr/local/lib/node_modules/xo-server/src/api/vm.mjs:1457:34 at Task.runInside (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:158:22) at Task.run (/usr/local/lib/node_modules/xo-server/node_modules/@vates/task/index.js:141:20) at asyncEach.concurrency.concurrency (file:///usr/local/lib/node_modules/xo-server/src/api/vm.mjs:1455:15)" }
Any suggestions gratefully received
Thanks
Dave -
@parsedave Can you share the .vmx file here for @florent to review? I've not seen this error before, but it appears to be related to CBT from VMWare.
-
@Danp Hi, I can't see a method to attach a file so just pasted (sorry)
.encoding = "UTF-8" config.version = "8" virtualHW.version = "13" vmci0.present = "TRUE" floppy0.present = "FALSE" memSize = "8192" bios.bootRetry.delay = "10" sched.cpu.units = "mhz" sched.cpu.affinity = "all" powerType.suspend = "soft" tools.upgrade.policy = "manual" scsi0.virtualDev = "lsisas1068" scsi0.present = "TRUE" usb.present = "TRUE" ehci.present = "TRUE" scsi0:0.deviceType = "scsi-hardDisk" scsi0:0.fileName = "Server 2019_0-000001.vmdk" sched.scsi0:0.shares = "normal" sched.scsi0:0.throughputCap = "off" scsi0:0.present = "TRUE" ethernet0.virtualDev = "e1000e" ethernet0.networkName = "LAN" ethernet0.addressType = "generated" ethernet0.wakeOnPcktRcv = "FALSE" ethernet0.present = "TRUE" displayName = "Server 2019-RS1221-copy" guestOS = "windows9srv-64" toolScripts.afterPowerOn = "TRUE" toolScripts.afterResume = "TRUE" toolScripts.beforeSuspend = "TRUE" toolScripts.beforePowerOff = "TRUE" tools.syncTime = "FALSE" uuid.bios = "56 4d fd 10 e4 18 5e e1-4c 4b 20 52 f5 7c e9 8e" uuid.location = "56 4d fd 10 e4 18 5e e1-4c 4b 20 52 f5 7c e9 8e" vc.uuid = "52 cd f1 c2 a5 4e 20 7f-d0 6b ce 02 e1 b6 c4 0e" sched.cpu.min = "0" sched.cpu.shares = "normal" sched.mem.min = "0" sched.mem.minSize = "0" sched.mem.shares = "normal" ethernet0.generatedAddress = "00:0c:29:7c:e9:8e" vmci0.id = "233178283" cleanShutdown = "TRUE" extendedConfigFile = "Server 2019.vmxf" numvcpus = "2" scsi0:0 = "true" tools.guest.desktop.autolock = "FALSE" nvram = "Server 2019.nvram" pciBridge0.present = "TRUE" svga.present = "TRUE" pciBridge4.present = "TRUE" pciBridge4.virtualDev = "pcieRootPort" pciBridge4.functions = "8" pciBridge5.present = "TRUE" pciBridge5.virtualDev = "pcieRootPort" pciBridge5.functions = "8" pciBridge6.present = "TRUE" pciBridge6.virtualDev = "pcieRootPort" pciBridge6.functions = "8" pciBridge7.present = "TRUE" pciBridge7.virtualDev = "pcieRootPort" pciBridge7.functions = "8" hpet0.present = "TRUE" RemoteDisplay.maxConnections = "-1" sched.cpu.latencySensitivity = "normal" svga.autodetect = "TRUE" numa.autosize.vcpu.maxPerVirtualNode = "2" numa.autosize.cookie = "20001" sched.swap.derivedName = "/vmfs/volumes/2f81b305-3e8137a7/Server 2019 - copy/Server 2019/Server 2019-ec457cd0.vswp" pciBridge0.pciSlotNumber = "17" pciBridge4.pciSlotNumber = "21" pciBridge5.pciSlotNumber = "22" pciBridge6.pciSlotNumber = "23" pciBridge7.pciSlotNumber = "24" scsi0.pciSlotNumber = "160" usb.pciSlotNumber = "32" ethernet0.pciSlotNumber = "192" ehci.pciSlotNumber = "33" vmci0.pciSlotNumber = "34" sata0.pciSlotNumber = "-1" scsi0.sasWWID = "50 05 05 60 e4 18 5e e0" ethernet0.generatedAddressOffset = "0" vm.genid = "3994242881900222667" vm.genidX = "2250545467087269824" monitor.phys_bits_used = "43" vmotion.checkpointFBSize = "4194304" vmotion.checkpointSVGAPrimarySize = "16777216" softPowerOff = "FALSE" usb:1.speed = "2" usb:1.present = "TRUE" usb:1.deviceType = "hub" usb:1.port = "1" usb:1.parent = "-1" toolsInstallManager.lastInstallError = "0" svga.guestBackedPrimaryAware = "TRUE" tools.remindInstall = "TRUE" toolsInstallManager.updateCounter = "2" ctkEnabled = "FALSE" scsi0:0.ctkEnabled = "FALSE" migrate.hostLog = "./Server 2019-7655ca5d.hlog" guestinfo.driver.vmci.version = "9.8.18.0" scsi0:0.redo = "" svga.vramSize = "16777216" usb:0.present = "TRUE" usb:0.deviceType = "hid" usb:0.port = "0" usb:0.parent = "-1"
The above is after I tried editing the VM Guest settings to
ctkEnabled = "FALSE" scsi0:0.ctkEnabled = "FALSE"
from
ctkEnabled = "TRUE" scsi0:0.ctkEnabled = "TRUE"
Hope this helps
Happy to try anything you need me to
Not sure where you are - I'm in the UK but can be around for at least another hour. I will be around over the weekend but not always at my desk so responses may be a little slower
Thanks for your help so far
Dave
-
@parsedave Hi,
We worked on a branch that should fix it : https://github.com/vatesfr/xen-orchestra/pull/7583 It should be merged in master by the end of the week Thanks for your report
-
@florent Thanks
I don't seem to be able to login to XOA console - I have never done this so don't believe I have set a password for this which I believe will be different to the web UI username and password.I am assuming I need to login to the console to pull the change you have made but this may be integrated in to master soon so I don't need to do this to retrieve the change. Do you know when this may be done so I can just update orchestra from the web UI
Thanks
Dave -
@parsedave To set the SSH password, follow these instructions in our documentation.
If you want to test the pending fix, you need to deploy a separate instance of XO from sources. Otherwise, just wait for it to be officially released in XOA.
-
@Danp do you know when the fix will be integrated in to an update?
Thanks
Dave -
@parsedave said in Cannot create property 'ctkEnabled' on string 'true' on trying to import from ESXi:
@Danp do you know when the fix will be integrated in to an update?
Thanks
DaveIt is merged now, it will be released in XOA latest tomorrow
-
-
Excellent news!
-
-