A virtual machine (VM) fails to power on with an error indicating another task is in progress.
Symptoms:
Virtual machine power-on task hangs at 33% or 66%.
/vmfs/volumes/datastore_name/vm_name/vmware.log file contains the following entries:
DISKLIB-CTK : Could not open change tracking file "/vmfs/volumes/datastore_name/vm_folder/vm_name-ctk.vmdk": Change tracking invalid or disk in use.
DISKLIB-CTK : Error creating file ... 3 (The file already exists)
VMware vSphere ESXi 8.x
VMware vCenter Server 8.x
Stale or corrupted changed block tracking (CBT) files (-ctk.vmdk) from a previous snapshot or backup failure prevents the ESXi host from acquiring exclusive storage locks to initialize the virtual disks.
Connect to the ESXi host via SSH.
Verify that no active third-party backup appliance is holding a lock on the base disk: vmfsfilelockinfo -p /vmfs/volumes/datastore_name/vm_folder/vm_name-flat.vmdk
Navigate to the virtual machine directory: cd /vmfs/volumes/datastore_name/vm_folder/
Create a temporary folder and move all .vmsd and .ctk.vmdk files to a temporary directory:
mkdir temp
mv *-ctk.vmdk temp
mv *vmsd temp
Create a backup of the virtual machine's configuration file: cp vm-name.vmx vm-name.vmx.bak
Disable CBT in the configuration file (.vmx): Open the .vmx file with a text editor and set the following parameters to false:
ctkEnabled = "false"
scsix:x.ctkEnabled = "false"
Identify the VMID: vim-cmd vmsvc/getallvms
Reload the virtual machine configuration: vim-cmd vmsvc/reload <VMID>
Power on the virtual machine via the vSphere Client.