question

PaulTulloch-6756 avatar image
0 Votes"
PaulTulloch-6756 asked ElevenYu-MSFT commented

Using replication on Hyper-V 2019 bare metal

Hi

I have some questions about Hyper-V 2019 bare metal replication that I hope someone might be able to assist with:

  1. can the destination server be a regular Hyper-V host, running live VMs while still receiving replicated VMs from another host?

  2. the VM I want to replicate must have the same GUID for licensing reasons - does the replication instance maintain the same GUID?

  3. I see that I need to enable some firewall rules on the destination server, does anyone have the commands for doing this via CLI on a bare metal install of 2019 (standalone server)?

Any help much appreciated.
Thanks
Paul



windows-server-hyper-v
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Have you checked if the latest answer helps?

If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

0 Votes 0 ·

Hi,

Do you have any further question? Please feel free to update.

It will be much appreciated and encouraged if you could click "Accept Answer" and upvote the helpful reply.

0 Votes 0 ·
LimitlessTechnology-0326 avatar image
0 Votes"
LimitlessTechnology-0326 answered

Hi PaulTulloch-6756,

The destination server can be a regular Hyper-V server, but you will need to configure it with "Enable this computer as a Replica server".

They will have the same GUID when replicated, but they can be renamed if required.

This article will help further with the set up of replication:

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/set-up-hyper-v-replica


I hope this answers your question.

Thanks.



--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PaulTulloch-6756 avatar image
0 Votes"
PaulTulloch-6756 answered

Hi @LimitlessTechnology-0326

Thanks so much for your reply.

I'd already seen the article you've linked to but in terms of the firewall settings necessary, it advises either using the GUI, which isn't possible, or provides commands for a cluster, which also doesn't match my situation. So, I need the commands to make the necessary changes to the firewall via Powershell. Hope you or someone else can help!

Cheers
Paul

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ElevenYu-MSFT avatar image
1 Vote"
ElevenYu-MSFT answered

Hi,

Please kindly check below article about PowerShell commands to enable firewall rules.

Enable-NetFirewallRule

Also, there is a thread contains the CMD command to enable firewall rules.
How do I enable or disable Windows Firewall rules using the command prompt


Best regards,


If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PaulTulloch-6756 avatar image
0 Votes"
PaulTulloch-6756 answered ElevenYu-MSFT commented

Hi @ElevenYu-MSFT

Thanks for your response above. I used your link to conclude that the command I needed was:

 Enable-NetFirewallRule -DisplayName "Hyper-V Replica HTTP Listener (TCP-In)"

To test this, I enabled Hyper V on a Windows 10 machine, noted that the firewall rules appeared in the GUI firewall console, then used the above command. The rule did change to enabled. I then used the command on the bare-metal Hyper V server and have now tested replication. All seems fine!

Paul

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PaulTulloch-6756 ,

Glad to know the command is helpful for you.

But could you please accept my answer (ElevenYu-MSFT) instead of LimitlessTechnology's.

Thank you very much.

0 Votes 0 ·