Build environment and add Hyper-V
Target
使用VMWare安装3台虚拟机,用来模拟3台物理主机。
DC是域控制器(Domain Controller,相关内容为Active Directory)。
Hyper1和Hyper2加入该域,并嵌套安装虚拟机。
tool
- Win10 computer (memory 16G)
- VMWare Player(或VMWare Workstation )
- The iso file of the Windows Server 2012 R2 x64 operating system (all 3 virtual machines use it)
Prepare the virtual environment
1. Create new virtual machines Hyper1 and Hyper2
Hyper1和Hyper2要嵌套安装虚拟机,故开启虚拟化。内存5G也可。
且要修改它俩的.vmx文件(新建过程中能看到所在路径),增加以下2行以开启嵌套虚拟化:
hypervisor.cpuid.v0 = "FALSE"
mce.enable = "TRUE"
2. Create a new virtual machine DC
DC不用开启虚拟化,也不用修改.vmx文件。内存2G也可。
Build a "domain"
1. Modify the computer name
启动各虚拟机,将计算机名分别修改为Hyper1、Hyper2、DC。
2. Create a password for the administrator account Administrator
3. Turn off the firewall
4. Both configure the network
3台都不使用IPv6。
According to the target configuration.
The subnet mask, default gateway, and preferred DNS server are all 255.255.255.0, 192.168.1.1, and 192.168.1.200.
machine | IP |
---|---|
DC | 192.168.1.200 |
Hyper1 | 192.168.1.201 |
Hyper2 | 192.168.1.202 |
5. Test network configuration
在DC(IP为200)上 ping Hyper1、Hyper2和网关。
ping 192.168.1.201
ping 192.168.1.202
ping 192.168.1.1
6. Add the domain service role (domain controller DC) to the virtual machine DC
以下是添加过程中的关键步骤的截图。无截图则按默认即不修改,以后同。
It is best to downgrade the functional level to 2008 for subsequent addition of 2008 machines.
View the effect after the installation is complete
7. Add Hyper1, 2 to domain TEST
View added effects
Add Hyper-V
Hyper1、2添加Hyper-V角色,后面将在它俩上嵌套安装虚拟机。
end of article