Howto – Manually enable changed block tracking on a vSphere VM

How can I enable CBT manually?

Answer

Changed Block Tracking speeds up incremental backup and replication. 
Due to technical limitations, CBT cannot be enabled in Free ESXi automatically.

ESXi 5.1 and earlier

CBT can be enabled manually by editing the VM settings.
To enable CBT in a virtual machine on Free ESXi 5.1 and earlier, follow the steps below:

  1. Power off the virtual machine. 
  2. Right-click the virtual machine and click Edit Settings.
  3. Click the Options tab.
  4. Click General under the Advanced section and then click Configuration Parameters. The Configuration Parameters dialog opens.
  5. Click Add Row.
  6. Add the “ctkEnabled” parameter and then set its value to “true”.
  7. Click Add Row, add “scsi0:0.ctkEnabled”, and set its value to “true”.
    NOTE: The “scsi0:0” parameter in the “scsi0:0.ctkEnabled” value indicates the SCSI device assigned to the hard disk that is added to the virtual machine. Every hard disk added to the virtual machine is given a SCSI device that appears similar to scsi0:0, scsi0:1, or scsi 1:1.  
  8. Power on the virtual machine.

ESXi 5.5

CBT cannot be enabled without removing the VM from Inventory. 
To enable CBT in a virtual machine on Free ESXi 5.5, follow the steps below:

  1. Power off the virtual machine.
  2. Right-click the virtual machine and click Remove from Inventory.
  3. Open Datastore Browser and browse the datastore where the virtual machine configuration file <VM name>.vmx is located.
  4. Open the virtual machine folder on the datastore and download the <VM name>.vmx file.
  5. Open the downloaded file using a text editor.
  6. Manually add the ctkEnabled = “true” attribute.
  7. Manually add the scsi0:0.ctkEnabled = “true” attribute.
    NOTE: The “scsi0:0” parameter in the “scsi0:0.ctkEnabled” value indicates the SCSI device assigned to the hard disk that is added to the virtual machine. Every hard disk added to the virtual machine is given a SCSI device that appears similar to scsi0:0, scsi0:1, or scsi 1:1.
  8. Save the modified file.
  9. Upload the modified <VM name>.vmx file back to the datastore.
  10. Right-click the uploaded file and click Add to Inventory. The wizard for adding to inventory opens.
  11. Follow the wizard and complete adding the virtual machine to Inventory.
  12. Power on the virtual machine.

More information on Enabling CBT in VMware VMs can be found in VMware KB 1031873.

Advertisement

Published by

Ronny Van den Broeck

I'm a network and system engineer for more than 20 years now. During this period I became a pro in hunting down one's and zero's, with an eager mindset to help people accomplish the same or abstract them away from the matrix.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s