工作组服务器虚拟化Hyper-V Replica 复写技术 Hyper-v之虚拟机复制 不需要加入域控AD 直接使用证书

技术文章9个月前更新 gyx131
78 0 0

 

CMD 输入mmc  提交证书控制台

powershell运行下面代码生成证书

mainserver2 为服务器名字

记得host 添加服务器名字和IP对应

New-SelfSignedCertificate -DnsName "mainserver2" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(20) -TestRoot


New-SelfSignedCertificate -DnsName "mainserver" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(20) -TestRoot


记得导出证书到另一台,TestRoot证书记得放进可以信任证书列表

 

两台服务器powershell运行

添加证书到信任列表都:

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\FailoverReplication" /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f


reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Replication" /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f

 

参考:

https://michaelfirsov.wordpress.com/hyper-v-replica-in-windows-server-2016-configuring-certificate-based-authentication-part1/

 

Windows Server 2012 —Hyper-v之虚拟机复制-CSDN博客

© 版权声明

相关文章

暂无评论

暂无评论...