Error: Virtual machine is not configured for replication during initial sync - vSphere Replication
search cancel

Error: Virtual machine is not configured for replication during initial sync - vSphere Replication

book

Article ID: 434892

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:

  • In a deployment of VMware vSphere Replication, initial synchronization for virtual machines initiates successfully. However, after a short duration, the replication status changes to Not Active and subsequently reports the following error:

    The virtual machine is not configured for replication

  • Reconfiguring the replication may temporarily resume the synchronization, but the status reverts to the error state shortly thereafter. This behavior is consistent across all virtual machines configured for replication.
  • Review of hbrsrv.log on the active vSphere Replication appliance in case of legacy replication, reveals connection reset errors similar to the following:
    (Note: Same events are observed in the hbrsrv.log of the target ESXi host in case of enhanced replication)

    error hbrsrv [Originator@6876 sub=Main] request callback failed: Failed to read: End of file
    info hbrsrv [Originator@6876 sub=StatsLog] HbrEvent: {"eventID":"lwdConnectionReset"...

  • Additionally, in the vCenter envoy-access.log from the source site , reports API calls where replication is being rapidly enabled and then immediately disabled (vim.HbrManager.disableReplication) by different IP addresses.

    YYYY-MM-DDTHH:MM:SS.MSZ info envoy[2801] [Originator@6876 sub=Default] 2026-0x-0xT##:##:##.##Z POST /sdk 200 via_upstream - 799 492 gzip 6 6 0 10.###.###.151:47908 HTTP/1.1 TLSv1.2  {#IP address of HMS server}:443 127.0.0.1:34234 HTTP/2 - 127.0.0.1:8085 "#######-cbee-4285-9e19-#########-HMS-552103" "CreateTask"

    YYYY-MM-DDTHH:MM:SS.MSZ In(166) envoy-access[2314259]: POST /hgw/host-<MASKED MOID>/vpxa 200 via_upstream - 1007 261 gzip 1 1 0 ###.##.##.###:44596 HTTP/
    2 TLSv1.3 {#Different IP address of HMS server}:443  486 1129 ###.#.#.#:55871 HTTP/2 - ###.#.#.#:8089 "########-####-####-####-############-HMSINT-197839204-6d" "HbrDisableReplication_Task"

Environment

  • VMware ESXi 8.x
  • VMware vSphere Replication 9.0, 9.0.1, 9.0.2
  • VMware Live Recovery 9.0.4, 9.0.5

Cause

This issue occurs when multiple vSphere Replication Management Server (HMS) instances are registered to the same source vCenter Server. Only one HMS registration is supported per vCenter Server.

If a secondary, stale, or unknown vSphere Replication appliance is registered to the vCenter Lookup Service, it will conflict with the active appliance. The vSphere Replication logic dictates that if an HMS instance detects replications it does not manage, it will automatically clean them up by calling HbrManager.disableReplication. This causes the rogue appliance to actively break the replication connection shortly after the legitimate appliance establishes it.

Resolution

To resolve this issue, unregister the stale vSphere Replication instance from the Lookup Service and re-register the correct active instance.

Prerequisites: Take a snapshot of the vCenter Server and the active vSphere Replication Management Server appliance before making changes.

  1. Identify the IP address of the stale or rogue vSphere Replication Management Server (VRMS) by reviewing the envoy-access logs from source vCenter tasks to see which IP is issuing the disableReplication API calls.
  2. Break the site pair in the vSphere DR UI.
  3. Unregister the stale VRMS appliance from the vCenter Server Lookup Service.
  4. Re-configure your legitimate, active VRMS appliance to the vCenter Server.
  5. Re-connect the site pair.
  6. Configure the virtual machines for replication again.