简体   繁体   English

您能否在 Hyper-V 管理器中拥有跨 2 台服务器的单个域?

[英]Can you have a single domain across 2 servers within Hyper-V Manager?

I am running a Hyper-V lab for a client to test the functionality of a Powershell script and due to memory constraints, I would like to move my file and database VM servers off of my main desktop PC to my laptop.我正在为客户端运行 Hyper-V 实验室以测试 Powershell 脚本的功能,并且由于 memory 的限制,我想将我的文件和数据库 VM 服务器从我的主台式 PC 移到我的笔记本电脑上。 I set up Hyper-V on the laptop, and successfully exported/imported the VM's into the other Hyper-V server.我在笔记本电脑上设置了 Hyper-V,并成功地将 VM 导出/导入到另一台 Hyper-V 服务器中。 I can boot them, all the configuration and files are intact however, I am predictably having trouble reconnecting to the domain they were a part of prior to the move.我可以启动它们,所有配置和文件都完好无损,但是可以预见的是,我在重新连接到它们在移动之前所属的域时遇到了麻烦。 I understand I need an External virtual switch to handle that communication, as internal and private will not reach outside of the Hyper-V server they reside in. Obviously I would prefer to not use an external, but this is strictly to continue testing.我知道我需要一个外部虚拟交换机来处理该通信,因为内部和私有不会到达它们所在的 Hyper-V 服务器之外。显然我不想使用外部,但这严格来说是为了继续测试。 I've trouble-shooted entering different DNS server values from the client machine's IPv4 properties and changing the virtual switch to External for the existing Hyper-V server, and re-register the DNS records on the DC.我已经解决了从客户端机器的 IPv4 属性中输入不同的 DNS 服务器值并将现有 Hyper-V 服务器的虚拟开关更改为外部的问题,并在 DC 上重新注册 DNS 记录。 All result in the same error when I try to connect to the domain: "(error code 0x0000232B RCODE_NAME_ERROR) The query was for the SRV record for _ldap._tcp.dc."... "The DNS SRV records required to locate a AD DC for the domain are not registered in DNS".当我尝试连接到域时,所有结果都会导致相同的错误:“(错误代码 0x0000232B RCODE_NAME_ERROR)查询是针对 _ldap._tcp.dc 的 SRV 记录。”...“定位 AD 所需的 DNS SRV 记录域的 DC 未在 DNS 中注册”。

In summary, I want to move a VM from the first server listed to the second, and then re-connect to the domain they were part of previously.总之,我想将 VM 从列出的第一台服务器移动到第二台服务器,然后重新连接到它们之前所属的域。 Both machines are just running Windows 10, not Windows Servers, if that matters.两台机器都只运行 Windows 10,而不是 Windows 服务器,如果这很重要的话。 Another note, I can do remote sessions from the desktop to the laptop just fine which would lead to believe this is not related to a firewall.另请注意,我可以很好地进行从台式机到笔记本电脑的远程会话,这会导致人们相信这与防火墙无关。 Thanks!谢谢!

在此处输入图像描述

The best it to set up a VLAN.最好设置一个VLAN。 If you can't do that, change the network class of your AD lab machine (192.168.55.x?) to another in order to avoid conflicts.如果您不能这样做,请将您的 AD 实验室机器 (192.168.55.x?) 的网络 class 更改为另一个以避免冲突。 Your DNS server has to be AD to make your machines connecting to it.您的 DNS 服务器必须是 AD 才能使您的机器连接到它。 And last but not least, if you're on 2 different hyperV servers, you have to use external switch in hyperV: https://redmondmag.com/articles/2018/05/04/hyper-v-private-networks.aspx最后但同样重要的是,如果您在 2 个不同的 hyperV 服务器上,则必须在 hyperV 中使用外部交换机: https://redmondmag.com/articles/2018/05/04/hyper-v-private-networks.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM