Enable replication failed - Hyper-V is not in a state to accept replication on the Replica server for virtual machine 'Servername'
-
Monday, December 17, 2012 12:59 PM
Hello,
I have two Windows 2012 Servers with Hyper-V installed. I have previously used replication for one of the virtual machines but had to turn it off momentarily for making some disk adjustments. Now I am trying to enable replication again, but is met with the error:
Enabling replcation failed
Hyper-V failed to enable replication.
Hyper-V is not in a state to accept replication on the replica server for virtual machine 'Servername'
Under the details an Virtual machine ID is listed, and using this ID I can find the replication files from the previous replication (under \Virtual Hard Disks\Hyper-V Replica\Virtual hard disks\<ID>\ and under \Virtual Hard Disks\Hyper-V Replica\Virtual Machines\<ID>.
Has anyone run into this before?
Maybe I should get rid of the old replica files and try to replicate anew?
Or perhaps an good old reboot might do the trick :PThankful for any insight.
All Replies
-
Monday, December 17, 2012 1:16 PM
Hello
Its poor info anyway, if you made changes to disks, should be better to start from scratch because depends on what you did.. there could be a conflict.
Regards
-
Tuesday, December 18, 2012 9:23 AMModerator
Hi,
> Hyper-V is not in a state to accept replication on the replica server for virtual machine 'Servername'
When you click Enable Replication for a Virtual Machine, it pops up Enable Replication wizard. There are some steps you should configure in the wizard, at which step did you encounter such issue?
Since you have disabled replication before, the replicated virtual machine is still exist in the replica serve; remove it in replica server and enable replication.
For more information please refer to following MS articles:
Hyper-V Replica Overview
http://technet.microsoft.com/en-us/library/jj134172.aspx
Demonstrate Planned Failover in Hyper-V Replica
http://technet.microsoft.com/en-us/library/hh831759.aspx?ppud=4
Understand and Troubleshoot Hyper-V Replica
http://www.microsoft.com/en-us/download/details.aspx?id=29016Lawrence
TechNet Community Support
- Marked As Answer by Lawrence LvMicrosoft Contingent Staff, Moderator Wednesday, December 26, 2012 6:28 AM
-
Tuesday, December 18, 2012 11:52 AM
Hi,
> Hyper-V is not in a state to accept replication on the replica server for virtual machine 'Servername'
When you click Enable Replication for a Virtual Machine, it pops up Enable Replication wizard. There are some steps you should configure in the wizard, at which step did you encounter such issue?
Since you have disabled replication before, the replicated virtual machine is still exist in the replica serve; remove it in replica server and enable replication.
For more information please refer to following MS articles:
Hyper-V Replica Overview
http://technet.microsoft.com/en-us/library/jj134172.aspx
Demonstrate Planned Failover in Hyper-V Replica
http://technet.microsoft.com/en-us/library/hh831759.aspx?ppud=4
Understand and Troubleshoot Hyper-V Replica
http://www.microsoft.com/en-us/download/details.aspx?id=29016
Lawrence
TechNet Community Support
Yes..
but if he has made changes to disks.. depends on what changes that error will comes out
-
Wednesday, December 19, 2012 7:34 AM
Hey,
Thanks for your answers. I get the error at the very end of the guide, when hitting Finish.
I tried renaming the <ID> folder under \Hyper-V Replica\Virtual Harddisk to see if the directories would be recreated, but it gave me the same error. There seem to be folders related to the same ID under \Hyper-V Replica\Virtual Machines\, but these seem to be in use. In order to remove all old objects and start over, do I just delete the virtual machine object in Hyper-V manager?
-
Wednesday, December 19, 2012 10:27 AM
If on hosts for any reason, you still have replica enabled for that particular vm, disable it, then on the replica server, delete your replica.
after on the source start from scratch..
Regards
- Marked As Answer by Lawrence LvMicrosoft Contingent Staff, Moderator Wednesday, December 26, 2012 6:27 AM
-
Friday, March 08, 2013 5:06 PM
I had this same problem but I couldn't delete my old replica because the files were in use.
Using SysInternals Process Explorer, I searched for handles with my machine GUID and found they were held by vmms.exe (makes sense!).
Of course, that "Enable replication wizard" has many screens, and I hadn't closed it before trying to delete the files... I was just trying to fix things and then get back there and lazily hit "Finish" once again.
If necessary, just do "stop-service vmms" in Powershell, then delete the old replica files (all of them! VHD, XML, ...), then do "start-service vmms".
... BUT after all this work deleting the files, I still get the same error enabling replication. :-(

