2018-11-20  1,142 views 评论

Hyper-v群集配置演示

环境介绍

这个环境通过4台服务器来完成,1台DC,1台存储,2台Hyper-v宿主机。

网络名称及用途

名称 用途
Public 用于管理主机
VM 用于虚拟机之间通信
ISCSI 用于HV主机连接存储

 

服务器IP

每台服务器都有一块Public网卡用于正常的管理,Stroage服务器有三块网卡建立NIC组用于提供ISCSI服务,2台Hyper-v主机个四块网卡,其中VM网卡用于虚拟机使用,Migration用于群集间的虚拟机迁移。

服务器名 Public VM ISCSI Migration
DC 172.28.103.100
Storage 172.28.103.101 192.168.101.2*3
HV1 172.28.103.102 172.28.104.100 192.168.101.3 192.168.100.10
HV2 172.28.103.103 172.28.104.101 192.168.101.4 192.168.100.11
HVCluster 172.28.103.104

VMnet0是103的网段 Vmnet2是104网段

https://images0.cnblogs.com/blog/777845/201508/291537073592782.png

操作系统

除了Storage是使用windows 专门的存储版本,其他都使用Server 2012 Datacenter

服务器名 操作系统
DC Windows Server 2012 R2 with Update1 Datacenter
Storage Windows Storage Server 2012 R2 with Update1
HV1 Windows Server 2012 R2 with Update1 Datacenter
HV2 Windows Server 2012 R2 with Update1 Datacenter

 

服务器部署

域控服务器安装

具体安装可以看我以前的博客 Windows Server 2012 R2 创建AD域http://www.cnblogs.com/wanggege/p/4605678.html

硬件创建

选择克隆

https://images0.cnblogs.com/blog/777845/201508/291537085945727.png

选择当初做好了sysprep的快照

https://images0.cnblogs.com/blog/777845/201508/291537091872841.png

服务器部署

修改IP地址

https://images0.cnblogs.com/blog/777845/201508/291537098445442.png

安装域控服务

https://images0.cnblogs.com/blog/777845/201508/291537109223872.png

开始安装

https://images0.cnblogs.com/blog/777845/201508/291537115781771.png

创建域contoso.com

https://images0.cnblogs.com/blog/777845/201508/291537121562114.png

https://images0.cnblogs.com/blog/777845/201508/291537131401516.png

https://images0.cnblogs.com/blog/777845/201508/291537138903145.png

https://images0.cnblogs.com/blog/777845/201508/291537145157502.png

https://images0.cnblogs.com/blog/777845/201508/291537154537188.png

https://images0.cnblogs.com/blog/777845/201508/291537166871133.png

安装完成会自动重启

https://images0.cnblogs.com/blog/777845/201508/291537177815333.png

创建新的OU

https://images0.cnblogs.com/blog/777845/201508/291537184696177.png

创建三台服务器

https://images0.cnblogs.com/blog/777845/201508/291537192344577.png

配置组策略

https://images0.cnblogs.com/blog/777845/201508/291537199063949.png

开启防火墙

https://images0.cnblogs.com/blog/777845/201508/291537212345921.png

域控创建完成,等待其他服务器加入域

Storage服务器安装

硬件创建

https://images0.cnblogs.com/blog/777845/201508/291537221403065.png

服务器部署

修改IP地址

https://images0.cnblogs.com/blog/777845/201508/291537227657422.png

修改网卡顺序

https://images0.cnblogs.com/blog/777845/201508/291537235624066.png

创建网卡NIC

https://images0.cnblogs.com/blog/777845/201508/291537242817451.png

添加到新组

https://images0.cnblogs.com/blog/777845/201508/291537249062810.png

https://images0.cnblogs.com/blog/777845/201508/291537255782181.png

创建完成

https://images0.cnblogs.com/blog/777845/201508/291537260941740.png

设置IP地址,不需要网关

https://images0.cnblogs.com/blog/777845/201508/291537267034625.png

Ping下测试

https://images0.cnblogs.com/blog/777845/201508/291537272506725.png

安装iSCSI服务

https://images0.cnblogs.com/blog/777845/201508/291537283593398.png

创建iSCSI磁盘

https://images0.cnblogs.com/blog/777845/201508/291537287818226.png

选择磁盘

https://images0.cnblogs.com/blog/777845/201508/291537296728599.png

创建仲裁磁盘

https://images0.cnblogs.com/blog/777845/201508/291537303286499.png

https://images0.cnblogs.com/blog/777845/201508/291537314847186.png

配置iSCSI目标

https://images0.cnblogs.com/blog/777845/201508/291537323122073.png

https://images0.cnblogs.com/blog/777845/201508/291537329229659.png

https://images0.cnblogs.com/blog/777845/201508/291537334374516.png

https://images0.cnblogs.com/blog/777845/201508/291537340785644.png

https://images0.cnblogs.com/blog/777845/201508/291537347813260.png

创建数据磁盘

https://images0.cnblogs.com/blog/777845/201508/291537358908932.png

https://images0.cnblogs.com/blog/777845/201508/291537367814604.png

创建完成

https://images0.cnblogs.com/blog/777845/201508/291537373448176.png

HV服务器安装

硬件创建

添加4块网卡

https://images0.cnblogs.com/blog/777845/201508/291537380788333.png

选择Hyper-v

https://images0.cnblogs.com/blog/777845/201508/291537388442435.png

服务器部署

修改IP地址

网卡改名,方便区分

https://images0.cnblogs.com/blog/777845/201508/291537393122278.png

高级设置,调整网卡顺序

https://images0.cnblogs.com/blog/777845/201508/291537399068392.png

默认使用Public网卡

https://images0.cnblogs.com/blog/777845/201508/291537403284221.png

设置VM的ip地址

https://images0.cnblogs.com/blog/777845/201508/291537408125536.png

取消注册到DNS中

https://images0.cnblogs.com/blog/777845/201508/291537416257950.png

ISCSI网卡和Migration网卡不设置网关

https://images0.cnblogs.com/blog/777845/201508/291537422346537.png

https://images0.cnblogs.com/blog/777845/201508/291537430948666.png
设置完后ping一下

https://images0.cnblogs.com/blog/777845/201508/291537441257380.png

连接iSCSI磁盘

https://images0.cnblogs.com/blog/777845/201508/291537445624682.png

https://images0.cnblogs.com/blog/777845/201508/291537453591325.png

选择自动配置

https://images0.cnblogs.com/blog/777845/201508/291537459371669.png

磁盘联机并初始化

https://images0.cnblogs.com/blog/777845/201508/291537464696998.png

https://images0.cnblogs.com/blog/777845/201508/291537472345398.png

https://images0.cnblogs.com/blog/777845/201508/291537476722699.png

安装虚拟化服务和群集功能

https://images0.cnblogs.com/blog/777845/201508/291537486409627.png

https://images0.cnblogs.com/blog/777845/201508/291537495623543.png

https://images0.cnblogs.com/blog/777845/201508/291537506875986.png

https://images0.cnblogs.com/blog/777845/201508/291537519375701.png

存储先默认等会在修改

https://images0.cnblogs.com/blog/777845/201508/291537530002659.png
安装完成自动重启

https://images0.cnblogs.com/blog/777845/201508/291537540159303.png

https://images0.cnblogs.com/blog/777845/201508/291537551094504.png
修改创建好的虚拟交换机名字,2台服务器上都要改成同样的名字,否则会因为配置不同,无法创建群集。

https://images0.cnblogs.com/blog/777845/201508/291537565623748.png

https://images0.cnblogs.com/blog/777845/201508/291537574538419.png

创建故障转移群集

打开故障转移群集管理器

https://images0.cnblogs.com/blog/777845/201508/291537586407349.png

验证配置

https://images0.cnblogs.com/blog/777845/201508/291537596252049.png

https://images0.cnblogs.com/blog/777845/201508/291538006726937.png

运行所有测试

https://images0.cnblogs.com/blog/777845/201508/291538015475838.png

https://images0.cnblogs.com/blog/777845/201508/291538023442481.png

https://images0.cnblogs.com/blog/777845/201508/291538032503923.png

测试时可能会跳出这个,不用当心,因为测试时会把磁盘卸载

https://images0.cnblogs.com/blog/777845/201508/291538038127496.png

有个网络是警报,不要紧,因为iSCSI和Migration没有设置网关

https://images0.cnblogs.com/blog/777845/201508/291538045473354.png

创建群集

https://images0.cnblogs.com/blog/777845/201508/291538054534796.png

https://images0.cnblogs.com/blog/777845/201508/291538061254168.png

https://images0.cnblogs.com/blog/777845/201508/291538066721970.png

创建完成

https://images0.cnblogs.com/blog/777845/201508/291538073905356.png

配置群集

添加群集共享卷

https://images0.cnblogs.com/blog/777845/201508/291538079842470.png

配置网络

https://images0.cnblogs.com/blog/777845/201508/291538088591371.png

https://images0.cnblogs.com/blog/777845/201508/291538092507956.png

https://images0.cnblogs.com/blog/777845/201508/291538096567014.png

https://images0.cnblogs.com/blog/777845/201508/291538101091086.png

创建虚拟机

修改虚拟机位置

https://images0.cnblogs.com/blog/777845/201508/291538109374973.png

https://images0.cnblogs.com/blog/777845/201508/291538114064815.png

https://images0.cnblogs.com/blog/777845/201508/291538119062902.png

https://images0.cnblogs.com/blog/777845/201508/291538127038544.png

https://images0.cnblogs.com/blog/777845/201508/291538136095689.png

https://images0.cnblogs.com/blog/777845/201508/291538141259545.png

https://images0.cnblogs.com/blog/777845/201508/291538149695905.png

https://images0.cnblogs.com/blog/777845/201508/291538155788789.png

 

原创文章或网络摘录,转载请注明: 转载自守候的时光

本文链接地址: Hyper-v群集配置演示

打赏

给我留言

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: