I have several Hyper-V servers which are not in the same LAN. On every server are several Hyper-V guest VMs which are connected via an internal virtual switch. Now I want to to connect these two virtual switches so that the guest VMs (and hosts) can connect to each other as if they would all be plugged in one real switch.
- Hyper-V Host A public IP (physical NIC): 18.104.22.168
- Hyper-V Host A IP on virutal switch (virtual NIC): 10.0.0.10/24
- Hyper-V Guest A1 IP: 10.0.0.20/24
- Hyper-V Guest A2 IP: 10.0.0.30/24
- Hyper-V Host B public IP (physical NIC): 22.214.171.124
- Hyper-V Host B IP on virutal switch (virtual NIC): 10.0.0.100/24
- Hyper-V Guest B1 IP: 10.0.0.110/24
- Hyper-V Guest B2 IP: 10.0.0.120/24
Currently A and B machines cannot communicate with each other but only with other A or other B machines. And I want to connect Host A and B over their public IPs in a way so that they will act like on the same LAN/switch and Guest B1 for example could reach 10.0.0.20. Is this possible and if so what is the easiest way?
I know I could set up for example OpenVPN on every machine but I'd much prefer a solution which doesn't require any special setup on guest machines but only on Host A and B.