设置源环境以便从 VMware 复制到 AzureSet up the source environment for VMware to Azure replication

本文介绍如何设置源本地环境,以便将 VMware VM 复制到 Azure。This article describes how to set up your source on-premises environment, to replicate VMware VMs to Azure. 文本包括以下相关步骤:选择复制方案、将本地计算机设置为 Site Recovery 配置服务器和自动发现本地 VM。The article includes steps for selecting your replication scenario, setting up an on-premises machine as the Site Recovery configuration server, and automatically discovering on-premises VMs.

必备条件Prerequisites

本文假设已完成以下操作:The article assumes that you have already:

选择保护目标Choose your protection goals

  1. 在“恢复服务保管库” 中,选择保管库名称。In Recovery Services vaults, select the vault name. 我们在此方案中使用 ContosoVMVaultWe're using ContosoVMVault for this scenario.
  2. 在“入门”中,选择“Site Recovery” ,In Getting Started, select Site Recovery. 然后选择“准备基础结构” 。Then select Prepare Infrastructure.
  3. 在“保护目标” > “计算机所在位置”中,选择“本地”。In Protection goal > Where are your machines located, select On-premises.
  4. 在“要将计算机复制到何处?”中,选择“复制到 Azure” 。In Where do you want to replicate your machines, select To Azure.
  5. 在“你的计算机是否已虚拟化”中,选择“是,带有 VMware vSphere 虚拟机监控程序” 。In Are your machines virtualized, select Yes, with VMware vSphere Hypervisor. 然后选择“确定”。 Then select OK.

设置配置服务器Set up the configuration server

可以通过开放虚拟化应用程序 (OVA) 模板将配置服务器设置为本地 VMware VM。You can set up the configuration server as an on-premises VMware VM through an Open Virtualization Application (OVA) template. 详细了解将在 VMware VM 上安装的组件。Learn more about the components that will be installed on the VMware VM.

  1. 了解配置服务器部署的先决条件Learn about the prerequisites for configuration server deployment.

  2. 检查容量数字以便进行部署。Check capacity numbers for deployment.

  3. 下载导入 OVA 模板,设置运行配置服务器的本地 VMware VM。Download and import the OVA template to set up an on-premises VMware VM that runs the configuration server. 通过模板提供的许可证是评估许可证,有效期为 180 天。The license provided with the template is an evaluation license and is valid for 180 days. 超过有效期之后,客户需要使用购买的许可证来激活 Windows。Post this period, customer needs to activate the windows with a procured license.

  4. 打开 VMware VM,并将其注册到恢复服务保管库中。Turn on the VMware VM, and register it in the Recovery Services vault.

从防病毒程序中排除 Azure Site Recovery 文件夹Azure Site Recovery folder exclusions from Antivirus program

如果防病毒软件在源计算机上处于活动状态If Antivirus software is active on Source machine

如果源计算机具有处于活动状态的防病毒软件,则应排除安装文件夹。If source machine has an Antivirus software active, installation folder should be excluded. 因此,为了平稳进行复制,请排除文件夹 C:\ProgramData\ASR\agentSo, exclude folder C:\ProgramData\ASR\agent for smooth replication.

如果防病毒软件在配置服务器上处于活动状态If Antivirus Software is active on Configuration server

为了平稳进行复制并避免出现连接问题,请从防病毒软件中排除以下文件夹Exclude following folders from Antivirus software for smooth replication and to avoid connectivity issues

  • C:\Program Files\Microsoft Azure Recovery Services AgentC:\Program Files\Microsoft Azure Recovery Services Agent.
  • C:\Program Files\Microsoft Azure Site Recovery ProviderC:\Program Files\Microsoft Azure Site Recovery Provider
  • C:\Program Files\Microsoft Azure Site Recovery Configuration ManagerC:\Program Files\Microsoft Azure Site Recovery Configuration Manager
  • C:\Program Files\Microsoft Azure Site Recovery Error Collection ToolC:\Program Files\Microsoft Azure Site Recovery Error Collection Tool
    • C:\thirdpartyC:\thirdparty
    • C:\TempC:\Temp
    • C:\strawberryC:\strawberry
    • C:\ProgramData\MySQLC:\ProgramData\MySQL
    • C:\Program Files (x86)\MySQLC:\Program Files (x86)\MySQL
    • C:\ProgramData\ASRC:\ProgramData\ASR
    • C:\ProgramData\Microsoft Azure Site RecoveryC:\ProgramData\Microsoft Azure Site Recovery
    • C:\ProgramData\ASRLogsC:\ProgramData\ASRLogs
    • C:\ProgramData\ASRSetupLogsC:\ProgramData\ASRSetupLogs
    • C:\ProgramData\LogUploadServiceLogsC:\ProgramData\LogUploadServiceLogs
    • C:\inetpubC:\inetpub
    • Site Recovery 服务器安装目录。Site Recovery server installation directory. 例如:E:\Program Files (x86)\Microsoft Azure Site RecoveryFor example: E:\Program Files (x86)\Microsoft Azure Site Recovery

如果防病毒软件在横向扩展流程服务器/主目标上处于活动状态If Antivirus Software is active on scale-out Process server/Master Target

请从防病毒软件中排除以下文件夹Exclude following folders from Antivirus software

  1. C:\Program Files\Microsoft Azure Recovery Services AgentC:\Program Files\Microsoft Azure Recovery Services Agent
  2. C:\ProgramData\ASRC:\ProgramData\ASR
  3. C:\ProgramData\ASRLogsC:\ProgramData\ASRLogs
  4. C:\ProgramData\ASRSetupLogsC:\ProgramData\ASRSetupLogs
  5. C:\ProgramData\LogUploadServiceLogsC:\ProgramData\LogUploadServiceLogs
  6. C:\ProgramData\Microsoft Azure Site RecoveryC:\ProgramData\Microsoft Azure Site Recovery
  7. Azure Site Recovery 负载均衡的进程服务器安装目录,示例:C:\Program Files (x86)\Microsoft Azure Site RecoveryAzure Site Recovery load balanced process server installation directory, Example: C:\Program Files (x86)\Microsoft Azure Site Recovery

如果防病毒软件在 Linux 主目标服务器上处于活动状态If Antivirus Software is active on the Linux Master Target

请从防病毒软件中排除以下文件夹Exclude following folders from Antivirus software

  1. /usr/local/ASR/usr/local/ASR
  2. /usr/local/InMage/usr/local/InMage
  3. /var/log/vxlogs/var/log/vxlogs
  4. /var/log/var/log
  5. /var/log/ApplicationPolicyLogs/var/log/ApplicationPolicyLogs
  6. /var/log/ASRsetuptelemetry/var/log/ASRsetuptelemetry
  7. /var/log/ASRsetuptelemetry_uploaded/var/log/ASRsetuptelemetry_uploaded

后续步骤Next steps

设置目标环境Set up your target environment