vSphere Replication - Cannot replicate over the source virtual machine
search cancel

vSphere Replication - Cannot replicate over the source virtual machine

book

Article ID: 312709

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:

Adding VMs to replication throws the error - 

ERROR
Operation Failed
Cannot replicate over the source virtual machine.
Operation ID: 4d788172-912b-46d9-bed0-b6ef1ca988b3
3/15/24, 11:37:09 AM -0400


/opt/vmware/hms/logs/hms.log : 

2024-03-15 12:05:32.284 ERROR hms.TaskRunnable [hms-main-thread-401] (..jvsl.util.Slf4jUtil) [operationID=7246e36f-f335-43d2-b124-77a8
fc1a3823-HMS-395,sessionID=005E20E9, task=HTID-97f4dcb4-a434-4c3c-8e59-0399d438a66d] | runTask-failed name: "Configure replication"; class: com.vmware.hms.job.impl.PrimaryVc2VcConfigureReplicationWorkflow; groupMoId: GID-83b0e09d-7d0d-4a5e-8ede-b7e6e8643597; destinationSite: ManagedObjectReference: type = HmsRemoteHmsServer, value = HMSSRV-c01e6fe4-9122-4152-b889-78096a303f5f, serverGuid = null; pri
maryGroupInitialVersion: null; secondaryGroupInitialVersion: null; useAdminViews: false; eventPartitionId: null; optimizeReprotect: false; reverseReplication: false; err: Error found in the provided Group.Spec, property 'Spec.settings.vms.configFileLocation' value isincorrect. Invalid target location specified. Cannot replicate over the source virtual machine.; time: 206 ms com.vmware.vim.binding.hms.fault.InvalidSpecOverwriteSourceVmFault: Error found in the provided Group.Spec, property 'Spec.settings.vms.configFileLocation' value is incorrect. Invalid target location specified. Cannot replicate over the source virtual machine.
    at com.vmware.hms.replication.GroupSpecValidator.checkNotOverwriteSourceVm(GroupSpecValidator.java:757) ~[hms.jar:?]
    at com.vmware.hms.replication.GroupSpecValidator.validateVms(GroupSpecValidator.java:376) ~[hms.jar:?]
    at com.vmware.hms.replication.GroupSpecValidator.validateVcConfigSpec(GroupSpecValidator.java:191) ~[hms.jar:?]
    at com.vmware.hms.replication.GroupSpecValidator.validateConfigSpec(GroupSpecValidator.java:168) ~[hms.jar:?]
    at com.vmware.hms.job.impl.PrimaryVc2VcConfigureReplicationWorkflow.validateGroupSpec(PrimaryVc2VcConfigureReplicationWorkflow.java:145) ~[hms.jar:?]
    at com.vmware.hms.job.impl.ConfigureReplicationPrimaryBaseWorkflow.go(ConfigureReplicationPrimaryBaseWorkflow.java:171) ~[hms.jar:?]
    at com.vmware.hms.task.TaskRunnable.run(TaskRunnable.java:86) ~[hms.jar:?]
    at com.vmware.hms.HmsTaskManager.lambda$0(HmsTaskManager.java:235) ~[hms.jar:?]
    at com.vmware.hms.util.executor.LoggerOpIdConfigurator$RunnableWithDiagnosticContext.run(LoggerOpIdConfigurator.java:132) [hms.jar:?]
    at com.vmware.hms.util.executor.LoggerOpIdConfigurator$2.run(LoggerOpIdConfigurator.java:99) [hms.jar:?]
    at com.vmware.jvsl.sessions.net.impl.TlsPreservingWrapper$2.run(TlsPreservingWrapper.java:47) [jvsl-sessions-8.8.0.jar:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
    at java.lang.Thread.run(Unknown Source) [?:?]


Environment

VMware vSphere Replication 8.x

Cause


1. This happens when the source and target datastores have the same names. 

2. This also happens when you try replicating a VM to the same datastore the original VM resides on. 

Resolution


1. Rename the local datastores beloning to different hosts with distinct names. 

2. Don't replicate VMs to the same datastore where the original VM resides. 

Change Datastore Name


Additional Information


Renaming a datastore when virtual machines are running on the datastore (1006279) - https://kb.vmware.com/s/article/1006279


Impact/Risks:


Unable to replicate VMs.