Replication is already enabled - replication is already enabled on VM with id: HRID #######-####-####-####-############"No Connection to VR Server: Unknown".VMware HCX
We can check the status of the VM replication directly from the ESXi host and verify whether the HRID differs from the one shown in the failed task. You can verify the same by following the below steps,
[root@ESXi_Host_Name:~] vim-cmd vmsvc/getallvms | grep -i VM_Name Vmid Name File11 VM_Name [Datastore_Name] VM_Name/VM_Name.vmx[root@ESXi_Host_Name:~] vim-cmd hbrsvc/vmreplica.getState 11Retrieve VM running replication state: The VM is configured for replication. Current replication state: Group: HRID-#######-####-####-####-############ (generation=########################) Group State: full sync (0% done: checksummed 0 bytes of 1 TB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## GB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## GB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## GB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## GB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## TB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## TB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## GB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## TB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## GB, transferred 0 bytes of 0 bytes) DiskID RDID-#######-####-####-####-############ State: full sync (checksummed 0 bytes of ## GB, transferred 0 bytes of 0 bytes)To resolve the issue, please follow these steps:
[root@ESXi_Host_Name:~] vim-cmd hbrsvc/vmreplica.getState 11Retrieve VM running replication state:(vim.fault.ReplicationVmFault) { faultCause = (vmodl.MethodFault) null, faultMessage = <unset>, reason = "notConfigured", state = <unset>, instanceId = <unset>, vm = 'vim.VirtualMachine:11' msg = "Received SOAP response fault from [<<io_obj p:0x############, h:#, <TCP '############ : #####'>, <TCP '############ : ####'>>, /sdk>]: getGroupStatevSphere Replication operation error: Virtual machine is not configured for replication."}[root@ESXi_Host_Name:~]