The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
Protecting a virtual machine using SRM and vSphere Replication fails with the error: Virtual machine is in an invalid state (2030132)
- Protecting a virtual machine using VMware vCenter Site Recovery Manager (SRM) and vSphere Replication fails
- On the protected site, thevirtual 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:
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.",
~ # vim-cmd hbrsvc/vmreplica.queryReplicationState 71
Querying VM running replication state:
Current replication state:
Progress: 0% (checksum: 0/37580963840; transfer: 0/0)
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. For more information about required open ports, see Port numbers that must be open for Site Recovery Manager and vCenter Server (1009562).
- 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.
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.