{"id":63,"date":"2018-12-21T20:22:35","date_gmt":"2018-12-21T20:22:35","guid":{"rendered":"http:\/\/www.theruralsysadmin.com\/?p=63"},"modified":"2020-09-05T12:31:24","modified_gmt":"2020-09-05T12:31:24","slug":"hyper-v-failed-to-enable-replication-for-virtual-machine","status":"publish","type":"post","link":"http:\/\/www.theruralsysadmin.com\/?p=63","title":{"rendered":"Hyper-V failed to enable replication for virtual machine"},"content":{"rendered":"<p>While trying to switch around my Hyper V replication scheme so I could take one of my servers offline for a while so I could expand its RAID 10 array and change the way I had it the array partitioned to &#8220;One Big RAID 10&#8221;. I ran into an issue where I wasn&#8217;t able to replicate to an old server I had stood up temporarily running Hyper V Server 2012r2, this was just the free hyper v server, not 2012r2 std. The error I got was &#8220;Hyper-V failed to enable replication for virtual machine &#8216;DC2&#8217;: The operation timed out (0x00002EE2).&#8221;After many failed attempts and lots of scratching on my rapidly balding head<a href=\"https:\/\/social.technet.microsoft.com\/Forums\/office\/en-US\/0893926a-2d96-409f-9b17-ddf0e0d81332\/hyperv-replication-failed-to-enable\"> I found this post on the microsoft technet forum<\/a> that fixed the issue for me. I was sceptical that it would work since I had already disabled the firewall, but adding these rules via powershell did the trick. Here is how I implemented the fix.<\/p>\n<ol>\n<li>log in to the offending server(s), either locally or via RDP, you could also run the commands remotely if you choose.<\/li>\n<li>open powershell, if you are running the free hyper-v server this can be done by just typing &#8220;powershell&#8221; at the command prompt. If you are running standard windows server or the like I&#8217;ll assume you know how to launch it from the menu or search.<\/li>\n<li>run the following commands:&nbsp;Enable-Netfirewallrule -displayname &#8220;Hyper-V Replica HTTP Listener (TCP-In)&#8221;&nbsp; &nbsp; then this one:&nbsp; Enable-Netfirewallrule -displayname &#8220;Hyper-V Replica HTTP Listener (TCP-In)&#8221;<\/li>\n<\/ol>\n<p>Now try to enable replication for one of your VMs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While trying to switch around my Hyper V replication scheme so I could take one of my servers offline for a while so I could expand its RAID 10 array and change the way I had it the array partitioned to &#8220;One Big RAID 10&#8221;. I ran into an issue where I wasn&#8217;t able to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,3,8,6,9,10],"tags":[74,11,71,70,73,72,69],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-hyper-v","category-it","category-microsoft","category-server","category-virtualization","category-vm","tag-firewall","tag-hyper-v-2","tag-posh","tag-powershell","tag-replication","tag-vm","tag-windows-server"],"_links":{"self":[{"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":3,"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":70,"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions\/70"}],"wp:attachment":[{"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.theruralsysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}