When you attempt to run a replication job from a ESX Source host to a ESX Target host the job fails with the following Error Message: "VM lock failed. (Failed to acquire vm lock /vmfs/volumes/datastore/vm/.vzmutex due to an SSH connection issue.)"
Replication is failing with the above error because vRanger is unable to create .vzmutex lock file in the Replica VM's datastore because the datastore ran out of free disk space.
Please follow these steps to correct your issue.
1. Putty into the target ESX host and try to create /vzmutex lock file manually
a. Go to the Replica vm's folder /vmfs/volumes/datastore name/replica vm/
b. Run this command: touch .vzmutex
c. If the vzmutex lock fails please check for free disk space on Replica VM's datastore
2. To check free disk space, Go to this folder: cd /usr/sbin/ and run this command: vdf -h
a. If the datastore has not free space please free some space up, once that is done your replication issue will be resolved