设为首页 收藏本站
查看: 1312|回复: 0

[经验分享] windows server 2012系列: 准备hyper

[复制链接]

尚未签到

发表于 2018-6-8 07:06:52 | 显示全部楼层 |阅读模式
  task:参考地址http://technet.microsoft.com/zh-cn/library/jj134153
DSC0000.png

  1.1 操作步骤思路
  1.1.1设置防火墙,允许主服务器与复制服务器之间的数据复制
  1.1.2主服务器与复制服务器必须是故障转移集群的一部分
  1.1.3主服务器与复制服务器数据传输必须要加密
  1.1.4确定哪些vhds需要复制并记录
  1.1.5确定你需要设置多少还原点
  1.1.6是否需要程序也保持一致,可能要额外的程序一致性还原点
  1.1.7确定好最初的复制方法(假如使用媒体复制,必须先删除其中的快照)
  1.2  安装 Hyper-V 角色和配置虚拟机.
  windows 2012 hyper-v之(1):添加角色http://isee131.blog.51cto.com/619759/1054796
  windows 2012 hyper-v之(2):创建虚拟机http://isee131.blog.51cto.com/619759/1054909
  1.3设置防火墙
  鼠标悬浮在最右下角(显示桌面)点击设置——控制面板
DSC0001.png

  在控制面板中选中windows 防火墙——高级设置
DSC0002.png

  入站规则启用截图最后2个:hyper-v副本HTTP侦听器(TCP入站)与hyper-v副本HTTPs侦听器(TCP入站)
DSC0003.gif

  无论有没有故障转移集群,这一步都是要做的
  如果服务器是故障转移集群一部分,那需要在任何你使用Kerberos认证复制的故障转移节点下面利用管理员权限运行Windows PowerShell cmdlets
  get-clusternode | ForEach-Object {Invoke-command -computername $_.name -scriptblock {Enable-Netfirewallrule -displayname "Hyper-V Replica HTTP Listener (TCP-In)"}}
  如果服务器是故障转移集群一部分,那需要在任何你使用证书认证复制的故障转移节点下面利用管理员权限运行Windows PowerShell cmdlets
  get-clusternode | ForEach-Object {Invoke-command -computername $_.name -scriptblock {Enable-Netfirewallrule -displayname "Hyper-V Replica HTTPS Listener (TCP-In)"}}
  1.4设置hyper-v复制中介
  To configure the Hyper-V Replica Broker
   
         
  •   In Server Manager, open Failover Cluster Manager.
          
  •   In the left pane, connect to the cluster, and while the cluster name is highlighted, click Configure Role in the Actions pane. The High Availability wizard opens
          
  •   In the Select Role screen, select Hyper-V Replica Broker.
          
  •   Complete the wizard, providing a NetBIOS name and IP address to be used as the connection point to the cluster (called a “client access point”). The Hyper-V Replica Broker is configured, resulting in a client access point name. Make a note of the client access point name for configuring Replica later on.
          
  •   Verify that the Hyper-V Replica Broker role comes online successfully and can fail over between all nodes of the cluster. To do this, right-click the role, point to Move, and then click Select Node. Then, select a node, and then click OK.
       
Windows PowerShell equivalent commands

  The following Windows PowerShell cmdlet or cmdlets perform the same function as the preceding procedure. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.
  This example sequence of cmdlets will create a Hyper-V Replica Broker names “HVR-Broker” that uses the static IP address 192.168.1.5. All steps must be completed by a user with administrative privileges.
  Copy
$BrokerName = “HVR-Broker”
  Copy

Add-ClusterServerRole -Name $BrokerName –StaticAddress 192.168.1.5
  Copy

Add-ClusterResource -Name “Virtual Machine Replication Broker” -Type "Virtual Machine Replication Broker" -Group $BrokerName
  Copy

Add-ClusterResourceDependency “Virtual Machine Replication Broker” $BrokerName
  Copy

Start-ClusterGroup $BrokerName
  1.5. Provide a certificate for encrypted data
  If you configure Replica to use Kerberos authentication, the data transmitted from the primary to the Replica server is not encrypted. For the data to be encrypted, you should use certificate-based authentication. You can either provide an existing X.509v3 certificate or create a self-signed certificate.
  If you are already using a certificate server or public key infrastructure (PKI) system, you can use an existing certificate, provided that it meets the following criteria:

  • The certificate must not be expired or revoked.
  • The certificate must include both client and server authentication extensions for enhanced key usage (EKU) and an associated private key.
  • The certificate must terminate at a valid root certificate in the Trusted Root Certification Authorities store on the Replica server.
  • If the virtual machine is hosted by a standalone server, the subject common name (CN) must be equal to (or the subject alternative name—DNS name) should contain the FQDN of the host. If the virtual machine is hosted by a failover cluster, the subject common name (CN) must be equal to (or the subject alternative name—DNS name) should contain the FQDN of the Hyper-V Replica Broker.
  For additional information about using certificates with Hyper-V Replica, see http://blogs.technet.com/b/virtualization/archive/2012/03/13/hyper-v-replica-certificate-requirements.aspx
  You can validate any candidate certificate by running certutil –store my on both the primary and Replica servers. In both cases, the output of the command should indicate that the certificate passed the encryption test.
  To create a self-signed certificate with Makecert.exe

  •   On the primary server, copy the Makecert.exe utility locally.
  •   Create a self-signed test root authority certificate by running the following command from an elevated command prompt:
      makecert -pe -n "CN=PrimaryTestRootCA" -ss root -sr LocalMachine -sky signature -r "PrimaryTestRootCA.cer"
  •   Create a new certificate signed by the test root authority certificate by running the following command from an elevated command prompt, supplying the FQDN of the primary server:
      makecert -pe -n &quot;CN=<FQDN>&quot; -ss my -sr LocalMachine -sky exchange -eku 1.3.6.1.5.5.7.3.1,1.3.6.1.5.5.7.3.2 -in &quot;PrimaryTestRootCA&quot; -is root -ir LocalMachine -sp &quot;Microsoft RSA SChannel Cryptographic Provider&quot; -sy 12 PrimaryTestCert.cer
  •   On the Replica server, copy the Makecert.exe utility locally.
  •   Create a self-signed test root authority certificate by running the following command from an elevated command prompt:
      makecert -pe -n &quot;CN=PrimaryTestRootCA&quot; -ss root -sr LocalMachine -sky signature -r &quot;ReplicaTestRootCA.cer&quot;
  •   Create a new certificate signed by the test root authority certificate by running the following command from an elevated command prompt, supplying the FQDN of the Replica server:
      makecert -pe -n &quot;CN=<FQDN>&quot; -ss my -sr LocalMachine -sky exchange -eku 1.3.6.1.5.5.7.3.1,1.3.6.1.5.5.7.3.2 -in &quot;ReplicaTestRootCA&quot; -is root -ir LocalMachine -sp &quot;Microsoft RSA SChannel Cryptographic Provider&quot; -sy 12 PrimaryTestCert.cer
  •   Copy the file ReplicaTestRootCA.cer from the Replica server to the primary server, and then import it with the following command:
      certutil -addstore -f Root &quot;ReplicaTestRootCA.cer&quot;
  •   Copy the file PrimaryTestRootCA.cer from the primary server to the Replica server, and then import it with the following command:
      certutil -addstore -f Root &quot;PrimaryTestRootCA.cer&quot;
  •   By default, a certificate revocation check is required; however, self-signed certificates don’t support revocation checks. Disable the check by editing the registry on both the primary and Replica servers with the following command:
      reg add &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\FailoverReplication&quot; /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-520546-1-1.html 上篇帖子: VMM2012应用指南之4 下篇帖子: SCVMM 2012 SP1 Beta 体验(三)添加Hyper
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表