前面两篇讲到Lync AD域控、CA证书颁发机构从物理机迁移至虚拟机,本篇开始,讲解如何把Lync Server 2010标准版从物理机迁移至虚拟机。


开始前,按照如下步骤做环境准备,迁移过程中一一排错。



Lync Server 2010 迁移AD后下载拓扑出现如下报错:

正在下载拓扑 ...

Get-CsTopology -asxml

System.Management.Automation.CmdletInvocationException: Message-"出现本地错误。"LdapError-"LocalError""dc001.uc.com":"3268" ---> Microsoft.Rtc.Management.ADConnect.SuitabilityDirectoryException: Message-"出现本地错误。"LdapError-"LocalError""dc001.uc.com":"3268" ---> System.DirectoryServices.Protocols.LdapException: 出现本地错误。 System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential) Microsoft.Rtc.Management.ADConnect.Connection.SuitabilityVerifier.CreateConnectionAndBind(String fqdn, Int32 portNumber, NetworkCredential credential) --- 内部异常堆栈跟踪的结尾 --- Microsoft.Rtc.Management.ADConnect.Connection.SuitabilityVerifier.CreateConnectionAndBind(String fqdn, Int32 portNumber, NetworkCredential credential) Microsoft.Rtc.Management.ADConnect.Connection.GlobalContainer.DiscoverGlobalContainer(String gcFqdn, NetworkCredential credential, String& globalDN, String& systemDN) Microsoft.Rtc.Management.ADConnect.Connection.DirectoryServicesTopologyProvider.DiscoverConfigDC() Microsoft.Rtc.Management.ADConnect.Connection.DirectoryServicesTopologyProvider.ReportDownServer(String serverName, ADServerRole role) Microsoft.Rtc.Management.ADConnect.Connection.ADConnection.MarkDown(LdapError ldapError, String message) Microsoft.Rtc.Management.ADConnect.Connection.ADConnection.AnalyzeDirectoryError(DirectoryException de) Microsoft.Rtc.Management.ADConnect.Session.ADSession.AnalyzeDirectoryError(ADConnection connection, DirectoryRequest request, DirectoryException de, Int32 totalRetries, Int32 retriesOnServer) Microsoft.Rtc.Management.ADConnect.Session.ADSession.Find(ADObjectId rootId, String optionalBaseDN, QueryScope scope, QueryFilter filter, SortBy sortBy, Int32 maxResults, IEnumerable`1 properties, CreateObjectDelegate objectCreator, CreateObjectsDelegate arrayCreator, Boolean includeDeletedObjects) Microsoft.Rtc.Management.ADConnect.Session.ADSession.Find(ADObjectId rootId, QueryScope scope, QueryFilter filter, SortBy sortBy, Int32 maxResults, IEnumerable`1 properties, CreateObjectDelegate objectCtor, CreateObjectsDelegate arrayCtor) Microsoft.Rtc.Management.ADConnect.Session.ADSession.Find[TResult](ADObjectId rootId, QueryScope scope, QueryFilter filter, SortBy sortBy, Int32 maxResults, IEnumerable`1 properties) Microsoft.Rtc.Management.ADConnect.Session.ADSession.GetTopologySetting() Microsoft.Rtc.Management.ADConnect.Session.ADSession.GetBackEndServer() Microsoft.Rtc.Management.Xds.ManagementConnection.GetConnectionFromActiveDirectory(OcsCmdlet cmdlet, ADSession session) Microsoft.Rtc.Management.Internal.Utilities.DeImpersonator.Run[T](Boolean dropImpersonation, Func`1 func) Microsoft.Rtc.Management.Xds.ManagementConnection.SetupConnection(Boolean isLocalStore, OcsCmdlet cmdlet, Boolean shouldDropImpersonation, ManagementConnection& connection, Boolean& ownConnection) Microsoft.Rtc.Management.Xds.XdsCmdlet.CmdletBeginProcessing() Microsoft.Rtc.Management.OcsCmdlet.BeginProcessing() System.Management.Automation.Cmdlet.DoBeginProcessing() System.Management.Automation.CommandProcessorBase.DoBegin() --- 内部异常堆栈跟踪的结尾 --- System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate) System.Management.Automation.PipelineNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context) System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)

失败

已完成


修改前端DNS,开启监控与存档服务器


可以正常下载拓扑


Ping dc001和dc003显示同样的IP地址



删除c:\windows\system32\drivers\etc\hosts自定义域记录


删除后c:\windows\system32\drivers\etc\hosts自定义域记录

wKioL1YeWbmylkGFAAKet5Ln2_8394.jpg

 

删除后

wKiom1YeWaSDImLBAAGUSI4fhr0677.jpg

 

正试开始Lync标准版从物理机迁移至虚拟机

 

1、准备虚拟机,安装Lync Server 2010标准版 (巩固加温习)

 

虚拟机准备就绪后,准备安装Lync所需的软件

 

1)操作系统选择的是Windows Server 2008 R2企业版

2)加入contoso.com域

3)通过旧前端Lync管理员登录虚拟机LYNC2010

4)安装.net 3.5 SP1、IIS、消息队列、Windows Media Format Runtime,并重启

 

通过执行如下Powershell安装

 

PS C:> Import-Module ServerManager
PS C:> Add-WindowsFeatureNET-Framework,RSAT-ADDS,Telnet-Client,Web-Server,Web-Static-Content,Web-Default-Doc,Web-Http-Errors,Web-Http-Redirect,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Http-Logging,Web-Log-Libraries,Web-Http-Tracing,Web-Windows-Auth,Web-Client-Auth,Web-Filtering,Web-Stat-Compression,Web-Mgmt-Console,Web-Scripting-Tools,MSMQ-Server,MSMQ-Directory -Restart

wKiom1YeWbKwxGJgAA3P4pj6HBI001.jpg

若要在运行 Windows Server 2008 R2 的服务器上安装 Windows Media Format Runtime,请使用以下命令:

dism.exe /online /add-package/packagepath:%windir%\servicing\Packages\Microsoft-Windows-Media-Format-Package~31bf3856ad364e35~amd64~~6.1.7600.16385.mum/ignorecheck

wKioL1YeWeXyvkfzAAIOk8k2USE946.jpg

 

5)核实安装的组件

wKiom1YeWdmDEk04AAB56FKpc00184.jpg

wKioL1YeWfmgktn5AAC-KOe6Nec121.jpg

wKioL1YeWfnBStMyAACUROh0UlM458.jpg

wKiom1YeWdnRsnJVAAE9iNuZvL8754.jpg 

6)建立共享文件夹Lync2010share


wKioL1YeWhDiD7DsAAINh8Ns3Bk628.jpg

wKiom1YeWfCxrtqSAAFbWi0Ct78433.jpg

 


7)挂载Lync Server 2010介质安装



wKioL1YeWirCM29CAAJukwUCH6w147.jpg

wKiom1YeWgqRIvkVAAF1UzMo7RM802.jpg

wKiom1YeWgrgfHDyAAIs3DAnwvM651.jpg

wKioL1YeWiviXVYUAACoSv6xMPc119.jpg

wKioL1YeWiuzEX4tAAN-PncHh4M781.jpg

 




准备AD在旧的站点已经完成,此时显示完成状态

 

8)准备第一个Standard Edition Server





wKioL1YeWk-ghmHnAANwJh2U1kQ279.jpg

wKiom1YeWi_SA7dAAAF2-fkPOD8797.jpg

wKiom1YeWjCxCXR_AAJxGlTV3zU780.jpg

wKioL1YeWlDTMLCpAAGnaek-j8Q645.jpg

wKioL1YeWlCjKWknAAOXKKeYHj4340.jpg