Protecting a virtual machine using SRM and vSphere Replication fails with error: "Virtual machine is in an invalid state"
book
Article ID: 304529
calendar_today
Updated On:
Products
VMware Live Recovery
Issue/Introduction
Protecting a virtual machine using VMware vCenter Site Recovery Manager (SRM) and vSphere Replication fails
On the protected site, the virtual machine shows a protection status of Replication Warning
The protection group shows Not configured
The vmkernel.log file on the ESX host where the virtual machine was running shows entries where a connection could not be established to remote vSphere Replication server.
When checking the replication status or forcing a Sync on one of the virtual machines on the ESX host, you see:
~ # vim-cmd hbrsvc/vmreplica.sync 71 Force a replica synchronzation for the VM: (vim.fault.ReplicationVmFault) { dynamicType = , faultCause = (vmodl.MethodFault) null, reason = "invalidState", state = "syncing", instanceId = , vm = 'vim.VirtualMachine:71', msg = "vSphere Replication operation error: Virtual machine is in an invalid state.",
This issue can be caused by network connectivity problems between the ESX/ESXi host where the virtual machine is registered and the vSphere Replication Server at the recovery site.
It can also be caused by an incorrectly configured firewall blocking certain TCP connections that are required for SRM to function.
Resolution
To troubleshoot this issue:
Check the network connection between the ESX/ESXi host where the virtual machine is registered and the vSphere Replication server on the recovery site.
Check the connection both ways by using ping command.
Check with the telnet command that all required ports are open between ESX/SRM/vSphere Replication servers.
Attempt to isolate the replication failure to a particular host or group of hosts. Migrate the virtual machine that failed to replicate to a different host with vMotion, and try to initiate replication from there. If it works, the network connectivity problem may be confined to a single host.