"VM_LOCK_ERROR Cloud not obtain exclusive access to the Virtual Machine." error on replication

SUMMARY

VM_LOCK_ERROR Cloud not obtain exclusive access to the Virtual Machine

ISSUE

Boomerang reads VM disk data from ESXi or vCenter host using a standard protocol supported by VMware. The "lock" error occurs if VMware protocol informs Boomerang that it cannot get access to specific virtual machines in the Protection Group.

The error message observed will be:

VM_LOCK_ERROR Could not obtain exclusive access to the Virtual Machine. This could be due to a storage migration or vMotion in progress; or the previous replication task was not terminated properly. Check the Virtual Machine status in the VMware console or unlock this vm.

This could be caused by one of the following reasons:

  1. vMotion or storage migration of VMs in the Protection Group are in progress,
  2. The VMs are protected by other Protection Groups and another replication is in progress,
  3. The VMs were not unlocked properly when the previous replication run (e.g., the Boomerang virtual appliance shut down non-gracefully.)
  4. The VMs are also protected by other backup software and the backup task is in progress, or
  5. The VMs were not unlocked properly by other backup software

RESOLUTION

In order to address this issue, we recommend:

  1. If vMotion or storage migration is in progress, wait for the process finishes, and then restart the current Protection Group replication.
  2. If other backup software is in progress, wait for the backup task finishes, and then restart the current Protection Group replication. To avoid future conflicts, update the schedule set to the Protection Group.
  3. If no backup task (by Boomerang or other backup software) is running, the VMs need to be unlocked manually. In the Activity page, you can click "Unlock VMs" button to unlock VMs. After clicking the button, wait for another 5 mins, and then restart the replication.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact us