管理 VMware vCenter 服务器Manage VMware vCenter Server

本文汇总了在 Azure Site Recovery 中对 VMware vCenter Server 的管理操作。This article summarizes management actions on a VMware vCenter Server in Azure Site Recovery.

验证 vCenter Server 的先决条件Verify prerequisites for vCenter Server

支持矩阵中列出了在向 Azure 执行 VMware VM 的灾难恢复期间,vCenter Server 和 VM 的先决条件。The prerequisites for vCenter Servers and VMs during disaster recovery of VMware VMs to Azure are listed in the support matrix.

设置用于自动发现的帐户Set up an account for automatic discovery

为本地 VMware VM 设置灾难恢复时,Site Recovery 需要访问 vCenter Server/vSphere 主机。When you set up disaster recovery for on-premises VMware VMs, Site Recovery needs access to the vCenter Server/vSphere host. 然后,Site Recovery 进程服务器就可以自动发现 VM,并根据需要对其进行故障转移。The Site Recovery process server can then automatically discover VMs, and fail them over as needed. 默认情况下,进程服务器在 Site Recovery 配置服务器上运行。By default, the process server runs on the Site Recovery configuration server. 为配置服务器添加一个帐户以连接到 vCenter Server/vSphere 主机,如下所示:Add an account for the configuration server to connect to the vCenter Server/vSphere host as follows:

  1. 登录到配置服务器。Sign in to the configuration server.

  2. 使用桌面快捷方式打开配置服务器工具 (cspsconfigtool.exe) 。Open the configuration server tool ( cspsconfigtool.exe ) using the Desktop shortcut.

  3. 在“管理帐户”选项卡上,单击“添加帐户” 。On the Manage Account tab, click Add Account.

    add-account

  4. 提供帐户详细信息并单击“确定”以添加该帐户 。Provide the account details, and click OK to add it. 该帐户应具有帐户权限表中概述的权限。The account should have the privileges summarized in the account permissions table.

    备注

    与 Site Recovery 同步帐户信息需要大约 15 分钟。It takes about 15 minutes to synchronize account information with Site Recovery.

帐户权限Account permissions

TaskTask 帐户Account 权限Permissions 详细信息Details
VM 发现/迁移(无故障回复)VM discovery/migration (without failback) 至少一个只读用户帐户。At least a read-only user account. 数据中心对象 –> 传播到子对象,角色=只读Data Center object -> Propagate to Child Object, role=Read-only 在数据中心级别分配的对数据中心内所有对象具有访问权限的用户。User assigned at datacenter level, and has access to all the objects in the datacenter.

若要限制访问权限,请在选中“传播到子对象” 的情况下将“无访问权” 角色分配给子对象(vSphere 主机、数据存储、虚拟机和网络)。To restrict access, assign the No access role with the Propagate to child object, to the child objects (vSphere hosts, datastores, virtual machines, and networks).
复制/故障转移Replication/failover 至少一个只读用户帐户。At least a read-only user account. 数据中心对象 –> 传播到子对象,角色=只读Data Center object -> Propagate to Child Object, role=Read-only 在数据中心级别分配的对数据中心内所有对象具有访问权限的用户。User assigned at datacenter level, and has access to all the objects in the datacenter.

若要限制访问权限,请在选中“传播到子对象” 的情况下将“无访问权” 角色分配给子对象(vSphere 主机、数据存储、虚拟机和网络)。To restrict access, assign the No access role with the Propagate to child object to the child objects (vSphere hosts, datastores, virtual machines, and networks).

用于迁移,但不用于完全复制、故障转移和故障回复。Useful for migration purposes, but not full replication, failover, failback.
复制/故障转移/故障回复Replication/failover/failback 建议创建一个拥有所需权限的角色 (AzureSiteRecoveryRole),然后将它分配到 VMware 用户或组。We suggest you create a role (AzureSiteRecoveryRole) with the required permissions, and then assign the role to a VMware user or group. 数据中心对象 –> 传播到子对象,角色=AzureSiteRecoveryRoleData Center object -> Propagate to Child Object, role=AzureSiteRecoveryRole

数据存储 -> 分配空间、浏览数据存储、低级别文件操作、删除文件、更新虚拟机文件Datastore -> Allocate space, browse datastore, low-level file operations, remove file, update virtual machine files

网络 -> 网络分配Network -> Network assign

资源 -> 将 VM 分配到资源池、迁移已关机的 VM、迁移已开机的 VMResource -> Assign VM to resource pool, migrate powered off VM, migrate powered on VM

任务 -> 创建任务、更新任务Tasks -> Create task, update task

虚拟机 -> 配置Virtual machine -> Configuration

虚拟机 -> 交互 -> 回答问题、设备连接、配置 CD 媒体、配置软盘媒体、关闭电源、打开电源、安装 VMware 工具Virtual machine -> Interact -> answer question, device connection, configure CD media, configure floppy media, power off, power on, VMware tools install

虚拟机 -> 清单 -> 创建、注册、取消注册Virtual machine -> Inventory -> Create, register, unregister

虚拟机 -> 预配 -> 允许虚拟机下载、允许虚拟机文件上传Virtual machine -> Provisioning -> Allow virtual machine download, allow virtual machine files upload

虚拟机 -> 快照 -> 删除快照Virtual machine -> Snapshots -> Remove snapshots
在数据中心级别分配的对数据中心内所有对象具有访问权限的用户。User assigned at datacenter level, and has access to all the objects in the datacenter.

若要限制访问权限,请在选中“传播到子对象” 的情况下将“无访问权” 角色分配给子对象(vSphere 主机、数据存储、虚拟机和网络)。To restrict access, assign the No access role with the Propagate to child object, to the child objects (vSphere hosts, datastores, virtual machines, and networks).

将 VMware 服务器添加到保管库Add VMware server to the vault

为本地 VMware VM 设置灾难恢复时,你可将要在其上发现 VM 的 vCenter Server/vSphere 主机添加到 Site Recovery 保管库中,如下所示:When you set up disaster recovery for on-premises VMware VMs, you add the vCenter Server/vSphere host on which you're discovering VMs to the Site Recovery vault, as follows:

  1. 在保管库 >“Site Recovery 基础结构” > “配置服务器”中,打开配置服务器 。In vault > Site Recovery Infrastructure > Configuration Severs, open the configuration server.
  2. 在“详细信息”页中,单击“vCenter” 。In Details page, click vCenter.
  3. 在“添加 vCenter”中,为 vSphere 主机或 vCenter Server 指定一个易记名称。 In Add vCenter, specify a friendly name for the vSphere host or vCenter server.
  4. 指定该服务器的 IP 地址或 FQDN。Specify the IP address or FQDN of the server.
  5. 除非已将 VMware 服务器配置为在不同的端口上侦听请求,否则请保留 443 作为端口号。Leave the port as 443 unless your VMware servers are configured to listen for requests on a different port.
  6. 选择用于连接 VMware vCenter 或 vSphere ESXi 服务器的帐户。Select the account used to connect to the VMware vCenter or vSphere ESXi server. Then click OK.

修改凭据Modify credentials

如果需要,可修改用于连接 vCenter Server/vSphere 主机的凭据,如下所示:If necessary, you can modify the credentials used to connect to the vCenter Server/vSphere host as follows:

  1. 登录到配置服务器。Sign in to the configuration server.

  2. 使用桌面快捷方式打开配置服务器工具 (cspsconfigtool.exe) 。Open the configuration server tool ( cspsconfigtool.exe ) using the Desktop shortcut.

  3. 在“管理帐户” 选项卡中,单击“添加帐户” 。Click Add Account on the Manage Account tab.

    add-account

  4. 提供新帐户的详细信息并单击“确定” 。Provide the new account details, and click OK. 该帐户需要帐户权限表中列出的权限。The account needs the permissions listed in the account permissions table.

  5. 在保管库 >“Site Recovery 基础结构” > “配置服务器”中,打开配置服务器 。In the vault > Site Recovery Infrastructure > Configuration Severs, open the configuration server.

  6. 在“详细信息”中,单击“刷新服务器” 。In Details, click Refresh Server.

  7. “刷新服务器”作业完成后,选择 vCenter Server。After the Refresh Server job finishes, select the vCenter Server.

  8. 在“摘要”的“vCenter Server/vSphere 主机帐户”中,选择新添加的帐户,并单击“保存” 。In Summary, select the newly added account in vCenter server/vSphere host account, and click Save.

    modify-account

删除 vCenter ServerDelete a vCenter Server

  1. 在保管库 >“Site Recovery 基础结构” > “配置服务器”中,打开配置服务器 。In the vault > Site Recovery Infrastructure > Configuration Severs, open the configuration server.

  2. 在“详细信息”页上,选择 vCenter 服务器 。On the Details page, select the vCenter server.

  3. 单击“删除”按钮 。Click on the Delete button.

    delete-account

修改 IP 地址和端口Modify the IP address and port

可修改 vCenter Server 的 IP 地址,或用于在服务器和 Site Recovery 之间通信的端口。You can modify the IP address of the vCenter Server, or the ports used for communication between the server and Site Recovery. 默认情况下,Site Recovery 通过端口 443 访问 vCenter Server/vSphere 主机信息。By default, Site Recovery accesses vCenter Server/vSphere host information through port 443.

  1. 在保管库 >“Site Recovery 基础结构” > “配置服务器”中,单击添加 vCenter Server 的配置服务器 。In the vault > Site Recovery Infrastructure > Configuration Servers, click on the configurations server to which the vCenter Server is added.

  2. 在“vCenter Server”部分,单击要修改的 vCenter Server 。In vCenter servers, click on the vCenter Server you want to modify.

  3. 在“摘要”中,更新 IP 地址和端口,并保存更改 。In Summary, update the IP address and port , and save the changes.

    add_ip_new_vcenter

  4. 要使更改生效,请等待 15 分钟或刷新配置服务器For changes to become effective, wait for 15 minutes or refresh the configuration server.

将所有 VM 迁移到新服务器Migrate all VMs to a new server

如果要迁移所有 VM 以使用新 vCenter Server,只需更新分配给该 vCenter Server 的 IP 地址。If you want to migrate all VMs to use a new vCenter Server, you just need to update the IP address assigned to the vCenter Server. 请勿添加另一个 VMware 帐户,因为这可能会导致重复项。Don't add another VMware account, since that might lead to duplicate entries. 按照下面的方式更新地址:Update the address as follows:

  1. 在保管库 >“Site Recovery 基础结构” > “配置服务器”中,单击添加 vCenter Server 的配置服务器 。In the vault > Site Recovery Infrastructure > Configuration Servers, click on the configurations server to which the vCenter Server is added.
  2. 在“vCenter Server”部分,单击要从中迁移的 vCenter Server。 In the vCenter servers section, click on the vCenter Server that you want to migrate from.
  3. 在“摘要” 中,将 IP 地址更新为新 vCenter Server 的 IP 地址,并保存更改。In Summary, update the IP address to that of the new vCenter Server, and save the changes.
  4. 更新 IP 地址后,Site Recovery 将立即开始从新的 vCenter Server 接收 VM 发现信息。As soon as the IP address is updated, Site Recovery starts receiving VM discovery information from the new vCenter Server. 这不会影响正在进行的复制活动。This doesn't impact ongoing replication activities.

将数个 VM 迁移到新服务器Migrate a few VMs to a new server

如果只想将几个复制 VM 迁移到新 vCenter Server,请执行以下操作:If you only want to migrate a few of your replicating VMs to a new vCenter Server, do the following:

  1. 向配置服务器 添加新 vCenter Server。Add the new vCenter Server to the configuration server.
  2. 对要迁移到新服务器的 VM 禁用复制Disable replication for VMs that will move to the new server.
  3. 在 VMware 中,将 VM 迁移到新的 vCenter Server。In VMware, migrate the VMs to the new vCenter Server.
  4. 再次对已迁移的 VM 启用复制,选择新的 vCenter Server。Enable replication for the migrated VMs again, selecting the new vCenter Server.

将大多数 VM 迁移到新服务器Migrate most VMs to a new server

如果要迁移到新 vCenter Server 的 VM 数大于将保留在原始 vCenter Server 上的 VM 数,请执行以下操作:If the number of VMs that you want to migrate to a new vCenter Server is higher than the number of VMs that will remain on the original vCenter Server, do the following:

  1. 在配置服务器设置中将分配给 vCenter Server 的 IP 地址更新为新 vCenter Server 的地址。Update the IP address assigned to the vCenter Server in the configuration server settings, to the address of the new vCenter Server.
  2. 对旧服务器上保留的少数 VM 禁用复制Disable replication for the few VMs that remain on the old server.
  3. 将旧 vCenter Server 及其 IP 地址添加到配置服务器。Add the old vCenter Server and its IP address to the configuration server.
  4. 为保留在旧服务器上的 VM 重新启用复制Re-enable replication for the VMs that remain on the old server.

后续步骤Next steps

如果有任何问题,请参阅排查 vCenter Server 发现失败问题If you have any issues, see Troubleshoot vCenter Server discovery failures.