將內部部署 VMware 基礎結構移至 AzureMove on-premises VMware infrastructure to Azure

當虛構公司 Contoso (Vm) 從內部部署資料中心遷移至 Azure 時,就會有兩個選項可供小組使用。When fictional company Contoso migrates its VMware virtual machines (VMs) from an on-premises datacenter to Azure, two options are available to the team. 本文著重于 Azure VMware 解決方案,Contoso 已判定為更好的遷移選項。This article focuses on Azure VMware Solution, which Contoso has determined to be the better migration option.

移轉選項Migration options 結果Outcome
Azure MigrateAzure Migrate
  • 評定遷移 內部部署 vm。Assess and migrate on-premises VMs.
  • 使用 Azure 基礎結構即服務 (IaaS) 來執行工作負載。Run workloads using Azure infrastructure as a service (IaaS).
  • 使用 Azure Resource Manager管理 vm。Manage VMs with Azure Resource Manager.
  • Azure VMware 解決方案Azure VMware Solution
  • 使用 VMware 混合式雲端擴充 (HCX) 或 vMotion 來移動內部部署 Vm。Use VMware Hybrid Cloud Extension (HCX) or vMotion to move on-premises VMs.
  • 在 Azure 裸機硬體上執行原生 VMware 工作負載。Run native VMware workloads on Azure bare-metal hardware.
  • 使用 vSphere 管理 Vm。Manage VMs using vSphere.
  • 在本文中,Contoso 會使用 Azure VMware 解決方案,以原生存取 VMware vCenter 和 VMware 針對工作負載遷移所支援的其他工具,在 Azure 中建立私人雲端。In this article, Contoso uses Azure VMware Solution to create a private cloud in Azure with native access to VMware vCenter and other tools that are supported by VMware for workload migration. Contoso 可以安心地使用 Azure VMware 解決方案,瞭解它是 VMware 所支援的第一方 Microsoft 產品。Contoso can confidently use Azure VMware Solution, knowing that it's a first-party Microsoft offering backed by VMware.

    商業動機Business drivers

    與商務合作夥伴密切合作,Contoso IT 小組定義了 VMware 遷移至 Azure 的商業驅動程式。Working closely with business partners, the Contoso IT team defines the business drivers for a VMware migration to Azure. 這些驅動程式可包含:These drivers can include:

    • Datacenter 撤離或 shutdown: 在合併或淘汰現有的資料中心時,順暢地移動以 VMware 為基礎的工作負載。Datacenter evacuation or shutdown: Seamlessly move VMware-based workloads when they consolidate or retire existing datacenters.
    • 嚴重損壞 修復和商務持續性: 使用部署在 Azure 中的 VMware 堆疊作為內部部署資料中心基礎結構的主要或次要隨選災難復原網站。Disaster recovery and business continuity: Use a VMware stack deployed in Azure as a primary or secondary on-demand disaster recovery site for on-premises datacenter infrastructure.
    • 應用程式現代化: 利用 Azure 生態系統將 Contoso 應用程式現代化,而不需要重建 VMware 環境。Application modernization: Tap into the Azure ecosystem to modernize Contoso applications without having to rebuild VMware-based environments.
    • 執行 DevOps: 將 Azure DevOps 工具鏈帶到 VMware 環境,並依自己的步調將應用程式現代化。Implementing DevOps: Bring Azure DevOps tool chains to VMware environments and modernize applications at its own pace.
    • 確保操作持續性: 將以 vSphere 為基礎的應用程式重新部署至 Azure,同時避免基礎程式轉換和應用程式重構。Ensure operational continuity: Redeploy vSphere-based applications to Azure while avoiding hypervisor conversions and application refactoring. 擴充對執行 Windows 和 SQL Server 的繼承應用程式的支援。Extend support for legacy applications that run Windows and SQL Server.

    將 VMware 內部部署遷移至雲端中 VMware 的目標Goals for migrating VMware on-premises to VMware in the cloud

    考慮到其商務驅動程式,Contoso 針對此種遷移已有幾個目標:With its business drivers in mind, Contoso has pinned down a few goals for this migration:

    • 使用原生 Azure 服務現代化應用程式時,繼續使用其小組熟悉的 VMware 工具來管理其現有環境。Continue managing its existing environments with VMware tools that are familiar to its teams, while modernizing the applications with native Azure services.
    • 將 Contoso VMware 工作負載從其資料中心順暢地移動至 Azure,並整合 VMware 環境與 Azure。Seamlessly move Contoso VMware-based workloads from its datacenter to Azure, and integrate the VMware environment with Azure.
    • 在遷移之後,Azure 中的應用程式應該具有與現今在 VMware 中相同的效能功能。After migration, the application in Azure should have the same performance capabilities as it does today in VMware. 在內部部署環境中,應用程式會保持在雲端中的重要性。The application remains as critical in the cloud as it is on-premises.

    這些目標可支援 Contoso 使用 Azure VMware 解決方案的決策,並將其驗證為最佳的遷移方法。These goals support Contoso's decision to use Azure VMware Solution and validate it as the best migration method.

    在 Azure 中執行 VMware 工作負載的優點Benefits of running VMware workloads in Azure

    藉由使用 Azure VMware 解決方案,Contoso 現在可以使用常見的作業架構,順暢地跨 VMware 環境與 Azure 來執行、管理及保護應用程式。By using Azure VMware Solution, Contoso can now seamlessly run, manage, and secure applications across VMware environments and Azure with a common operating framework.

    Contoso 將會利用現有的 VMware 投資、技能和工具,包括 VMware vSphere、vSAN 和 vCenter。Contoso will capitalize on existing VMware investments, skills, and tools, including VMware vSphere, vSAN, and vCenter. 同時,Contoso 會取得 Azure 的規模、效能和創新。At the same time, Contoso gets the scale, performance, and innovation of Azure. 此外,它可以:Additionally, it can:

    • 在雲端中設定 VMware 基礎結構(分鐘)。Set up VMware infrastructure in the cloud in minutes.
    • 以自己的步調將應用程式現代化。Modernize applications at its own pace.
    • 使用專用、隔離、高效能的基礎結構和獨特的 Azure 產品與服務來增強 VMware 應用程式。Enhance VMware applications with dedicated, isolated, high-performance infrastructure and unique Azure products and services.
    • 將內部部署 Vm 移動或擴充至 Azure,而不需要重構其應用程式。Move or extend on-premises VMs to Azure without having to refactor its applications.
    • 為全球 Azure 基礎結構上的 VMware 工作負載取得規模、自動化和快速布建。Get scale, automation, and fast provisioning for VMware workloads on global Azure infrastructure.
    • 受益于 Microsoft 所提供、由 VMware 驗證,並在 Azure 基礎結構上執行的解決方案。Benefit from a solution that's delivered by Microsoft, verified by VMware, and run on Azure infrastructure.

    解決方案設計The solutions design

    在 Contoso 釘選其目標和需求之後,公司會設計和審核部署解決方案,並識別遷移程式。After Contoso pins down its goals and requirements, the company designs and reviews a deployment solution and identifies the migration process.

    目前架構Current architecture

    Contoso 目前的架構功能:Contoso's current architecture features:

    • 部署至 vSphere所管理之內部部署資料中心的 vm。VMs deployed to an on-premises datacenter that's managed by vSphere.
    • 部署在 VMware ESXi 主機叢集(使用 vCentervSANNSX管理)的工作負載。Workloads deployed on a VMware ESXi host cluster that's managed with vCenter, vSAN, and NSX.

    建議的架構Proposed architecture

    在其建議的架構中,Contoso 會:In its proposed architecture, Contoso will:

    建議的架構圖表。

    解決方案檢閱Solution review

    Contoso 會藉由結合優缺點清單來評估其建議的設計,如下表所示:Contoso evaluates its proposed design by putting together a pros and cons list, as shown in the following table:

    考量Consideration 詳細資料Details
    優點Pros
  • 高效能的裸機 VMware 基礎結構。Bare-metal VMware infrastructure with high performance.
  • 專為 Contoso 所專用的基礎結構,實際上與其他客戶的基礎結構隔離。Infrastructure that's fully dedicated to Contoso and is physically isolated from the infrastructure of other customers.
  • 因為 Contoso 使用的是使用 VMware 的重新裝載,所以沒有特殊的設定或遷移複雜度。Because Contoso is using a rehost that uses VMware, there's no special configuration or migration complexity.
  • Contoso 可以使用適用于舊版 Windows 和 SQL 平臺的 Azure 混合式權益延伸安全性更新 ,來利用其軟體保證的投資。Contoso can take advantage of its investment in Software Assurance by using the Azure Hybrid Benefit and extended security updates for legacy Windows and SQL platforms.
  • Contoso 會保留 Azure 中應用程式 Vm 的完整控制權。Contoso will retain full control of the application VMs in Azure.

  • 缺點Cons
  • Contoso 必須繼續將應用程式支援為 VMware Vm,而不是將其移至 Azure App Service 和 Azure SQL Database 等受控服務。Contoso will need to continue supporting the application as VMware VMs rather than move them to a managed service such as Azure App Service and Azure SQL Database.
  • Azure VMware 解決方案的設定與定價最少三個大型節點,而不是根據 Azure IaaS 中的個別 Vm。Azure VMware Solution is set up and priced based on a minimum of three large nodes rather than individual VMs in Azure IaaS. Contoso 將需要規劃其容量需求,因為公司目前使用的內部部署環境會限制它免于 Azure 中其他服務的隨選本質。Contoso will need to plan its capacity needs, because the company currently uses an on-premises environment that restricts it from the on-demand nature of other services in Azure.
  • 注意

    如需定價的詳細資訊,請參閱 Azure VMware 解決方案定價For information about pricing, see Azure VMware Solution pricing.

    移轉程序Migration process

    Contoso 會使用 VMware HCX 工具將其 Vm 移至 Azure VMware 解決方案。Contoso will move its VMs to Azure VMware Solution by using the VMware HCX tool. Vm 將在 Azure VMware 解決方案私人雲端中執行。The VMs will run in an Azure VMware Solution private cloud. VMWARE HCX 遷移方法 包括執行大量或冷遷移。VMware HCX migration methods include running a bulk or cold migration. VMware vMotion 或複寫輔助的 vMotion (RAV) 是一種方法,可針對透過即時移轉執行的工作負載進行保留。VMware vMotion or Replication-assisted vMotion (RAV) is a method reserved for workloads that run through a live migration.

    若要完成此程式,Contoso 小組:To complete the process, the Contoso team:

    • 規劃其在 Azure 和 ExpressRoute 中的網路功能。Plans its networking in Azure and ExpressRoute.
    • 使用 Azure 入口網站建立 Azure VMware 解決方案私人雲端。Creates the Azure VMware Solution private cloud by using the Azure portal.
    • 設定網路以包含 ExpressRoute 線路。Configures the network to include the ExpressRoute circuits.
    • 設定 HCX 元件,以將其內部部署 vSphere 環境連接到 Azure VMware 解決方案私人雲端。Configures the HCX components to connect its on-premises vSphere environment to the Azure VMware Solution private cloud.
    • 複寫 Vm,然後使用 VMware HCX 將其移至 Azure。Replicates the VMs and then moves them to Azure by using VMware HCX.

    遷移程式的圖表。

    案例步驟Scenarios steps

    • 步驟1:網路規劃Step 1: Network planning
    • 步驟2:建立 Azure VMware 解決方案私人雲端Step 2: Create an Azure VMware Solution private cloud
    • 步驟3:設定網路功能Step 3: Configure networking
    • 步驟4:使用 HCX 遷移 VmStep 4: Migrate VMs using HCX

    步驟1:網路規劃Step 1: Network planning

    Contoso 需要規劃其網路功能,以包含 Azure 虛擬網路和內部部署與 Azure 之間的連線能力。Contoso needs to plan out its networking to include Azure Virtual Network and connectivity between on-premises and Azure. 公司需要在其內部部署與 Azure 環境之間提供高速連線,以及 Azure VMware 解決方案私人雲端的連線。The company needs to provide a high-speed connection between its on-premises and Azure-based environments, along with a connection to the Azure VMware Solution private cloud.

    此連線會透過 Azure ExpressRoute 傳遞,並需要一些特定的網路位址範圍和防火牆埠才能啟用服務。This connectivity is delivered through Azure ExpressRoute and will require some specific network address ranges and firewall ports for enabling the services. 這個高頻寬、低延遲的連線可讓 Contoso 從 Azure VMware 解決方案私用雲端環境存取其 Azure 訂用帳戶中執行的服務。This high-bandwidth, low-latency connection allows Contoso to access services that run in its Azure subscription from the Azure VMware Solution private cloud environment.

    Contoso 將需要規劃 IP 位址配置,其中包含其 虛擬網路的非重迭位址空間。Contoso will need to plan an IP address scheme that includes non-overlapping address space for its virtual networks. 該公司必須包含 ExpressRoute 閘道的閘道子網。The company will need to include a gateway subnet for the ExpressRoute gateway.

    Azure VMware 解決方案私人雲端會使用另一個 Azure ExpressRoute 連線,連接到 Azure 中的 Contoso 虛擬網路。The Azure VMware Solution private cloud is connected to Contoso's virtual network in Azure by using another Azure ExpressRoute connection. 將會啟用 ExpressRoute 全球存取範圍,以允許從內部部署 Vm 直接 連線至在 Azure VMware 解決方案私人雲端上執行的 vm。ExpressRoute Global Reach will be enabled to allow direct connection from on-premises VMs to VMs running on the Azure VMware Solution private cloud. 需要 ExpressRoute Premium SKU,才能實現全球存取範圍。The ExpressRoute Premium SKU is required to enable Global Reach.

    Azure VMware 解決方案的 ExpressRoute Global 觸及圖。

    Azure VMware 解決方案私人雲端至少需要 /22 子網的 CIDR 網路位址區塊。Azure VMware Solution private clouds require, at minimum, a /22 CIDR network address block for subnets. 若要連接到內部部署環境和虛擬網路,這必須是不重迭的網路位址區塊。To connect to on-premises environments and virtual networks, this must be a non-overlapping network address block.

    注意

    若要瞭解 Azure VMware 解決方案的網路規劃,請參閱 Azure Vmware 解決方案的網路檢查清單To learn about network planning for Azure VMware Solution, see Networking checklist for Azure VMware Solution.

    步驟2:建立 Azure VMware 解決方案私人雲端Step 2: Create an Azure VMware Solution private cloud

    在完成其網路和 IP 位址的規劃後,Contoso 會接著著重于在美國西部 Azure 區域中設定 Azure VMware 解決方案服務。With its network and IP address planning completed, Contoso will next focus on setting up the Azure VMware Solution service in the West US Azure region. 藉由使用 Azure VMware 解決方案,Contoso 可以在 Azure 中部署 vSphere 叢集。By using Azure VMware Solution, Contoso can deploy a vSphere cluster in Azure.

    Azure VMware 解決方案私用雲端是隔離的 VMware 軟體定義資料中心,支援 ESXi 主機、vCenter、vSAN 和 NSX。An Azure VMware Solution private cloud is an isolated, VMware software-defined datacenter that supports ESXi hosts, vCenter, vSAN, and NSX. 此堆疊會在 Azure 區域中專用且獨立的裸機硬體節點上執行。The stack runs on dedicated and isolated bare-metal hardware nodes in an Azure region. Azure VMware 解決方案私用雲端的最低初始部署是三部主機。The minimum initial deployment for an Azure VMware Solution private cloud is three hosts. 您可以一次加入一部額外的主機,每個叢集最多 16 部主機。Additional hosts can be added one at a time, up to a maximum of 16 hosts per cluster.

    如需詳細資訊,請參閱 Azure VMware 解決方案預覽版私用雲端和叢集概念For more information, see Azure VMware Solution preview private cloud and cluster concepts.

    Azure VMware 解決方案私用雲端是透過 Azure VMware 解決方案入口網站來管理。Azure VMware Solution private clouds are managed through the Azure VMware Solution portal. Contoso 在自己的管理網域中有自己的 vCenter Server。Contoso has its own vCenter Server in its own management domain.

    若要瞭解如何建立 Azure VMware 解決方案私人雲端,請參閱 在 azure 中部署 Azure Vmware 解決方案私人雲端To learn how to create Azure VMware Solution private clouds, see Deploy an Azure VMware Solution private cloud in Azure.

    1. Contoso 小組會先藉由執行下列命令,向 Azure 註冊 Azure VMware 解決方案提供者:The Contoso team first registers the Azure VMware Solution provider with Azure by running the following command:

      az provider register -n Microsoft.AVS --subscription <your subscription ID>
      
    2. 在 Azure 入口網站中,小組會藉由提供方案的網路資訊來建立 Azure VMware 解決方案私人雲端。In the Azure portal, the team creates the Azure VMware Solution private cloud by providing the networking information from the plan. 小組接著選取 [ 審核 + 建立]。The team then selects Review + create. 此步驟大約需要兩個小時。This step takes about two hours.

      用來建立 Azure VMware 解決方案私人雲端的 Azure 入口網站窗格螢幕擷取畫面。

    3. 小組會藉由前往資源群組並選取私用雲端資源,來驗證 Azure VMware 解決方案私人雲端部署是否已完成。The team verifies that the Azure VMware Solution private cloud deployment is complete by going to the resource group and selecting the private cloud resource. 狀態會顯示為 [ 成功]。The status is displayed as Succeeded.

      [Contoso Azure VMware 解決方案私人雲端] 頁面的螢幕擷取畫面,其中顯示部署成功。

    步驟3:設定網路功能Step 3: Configure networking

    Azure VMware 解決方案私用雲端需要虛擬網路。An Azure VMware Solution private cloud requires a virtual network. 因為 Azure VMware 解決方案在預覽期間不支援內部部署 vCenter,所以 Contoso 需要額外的步驟來與其內部部署環境整合。Because Azure VMware Solution doesn't support an on-premises vCenter during preview, Contoso requires additional steps for integration with its on-premises environment. 藉由設定 ExpressRoute 線路和虛擬網路閘道,小組會將其虛擬網路連接到 Azure VMware 解決方案私人雲端。By setting up an ExpressRoute circuit and a virtual network gateway, the team connects its virtual networks to the Azure VMware Solution private cloud.

    如需詳細資訊,請參閱 在 Azure 中設定 VMware 私用雲端的網路功能。For more information, see Configure networking for your VMware private cloud in Azure.

    1. Contoso 小組會先建立具有閘道子網的虛擬網路。The Contoso team first creates a virtual network with a gateway subnet.

      重要

      小組必須使用與建立私人雲端時所用的位址空間 重迭的位址空間。The team must use an address space that does not overlap with the address space that it used when it created the private cloud.

    2. 小組會建立 ExpressRoute VPN 閘道,請務必選取正確的 SKU,然後選取 [ 審核 + 建立]。The team creates the ExpressRoute VPN gateway, making sure to select the correct SKU, and then selects Review + create.

      [建立虛擬網路閘道] 窗格的螢幕擷取畫面。

    3. 小組會取得授權金鑰,以將 ExpressRoute 連線至虛擬網路。The team gets the authorization key to connect ExpressRoute to the virtual network. 您可以在 Azure 入口網站中 Azure VMware 解決方案私人雲端資源的 [連線能力] 畫面上找到此金鑰。The key is found on the connectivity screen of the Azure VMware Solution private cloud resource in the Azure portal.

      [Contoso Azure VMware 解決方案私人雲端連線] 窗格上 [ExpressRoute] 索引標籤的螢幕擷取畫面。

    4. 小組將 ExpressRoute 連線至 VPN 閘道,以將 Azure VMware 解決方案私人雲端連接到 Contoso 虛擬網路。The team connects the ExpressRoute to the VPN gateway that connects the Azure VMware Solution private cloud to the Contoso virtual network. 它會藉由在 Azure 中建立連接來執行此工作。It does this by creating a connection in Azure.

      將 ExpressRoute 連線至虛擬網路的 [新增連線] 窗格螢幕擷取畫面。

    如需詳細資訊,請參閱 瞭解如何存取 Azure VMware 解決方案私人雲端For more information, see Learn how to access an Azure VMware Solution private cloud.

    步驟4:使用 VMware HCX 進行遷移Step 4: Migrate by using VMware HCX

    若要使用 HCX 將 VMware Vm 移至 Azure,Contoso 團隊將需要遵循下列高階步驟:To move VMware VMs to Azure using HCX, the Contoso team will need to follow these high-level steps:

    • 安裝和設定 VMware HCX。Install and configure VMware HCX.
    • 使用 HCX 執行遷移至 Azure。Perform migrations to Azure by using HCX.

    如需詳細資訊,請參閱 安裝 HCX For Azure VMware SolutionFor more information, see Install HCX for Azure VMware Solution.

    安裝和設定適用于公用雲端的 VMware HCXInstall and configure VMware HCX for the public cloud

    VMWARE HCX 是 vmware 產品,屬於 Azure vmware 解決方案預設安裝的一部分。VMware HCX is a VMware product that's part of the Azure VMware Solution default installation. 預設會安裝 HCX Advanced,但它可以升級為 HCX Enterprise,因為需要額外的功能和功能。HCX Advanced is installed by default, but it can be upgraded to HCX Enterprise as additional features and functionality are required.

    Azure VMware 解決方案會將 Azure VMware 解決方案中 HCX 的雲端管理員元件自動化。Azure VMware Solution automates the cloud manager component of HCX in Azure VMware Solution. 它會提供客戶啟用金鑰,並下載連接器 HCX 設備的連結,該應用裝置必須在內部部署端和客戶的 vCenter 網域中設定。It provides the customer activation keys and download link to the connector HCX appliance that must be configured on the on-premises side and in a customer's vCenter domain. 這些元素接著會與 Azure VMware 解決方案雲端設備配對,讓客戶可以利用服務,例如遷移和第2層延展。These elements are then paired with the Azure VMware Solution cloud appliance, so that customers can take advantage of services such as migration and Layer 2 stretch.

    使用 HCX 將 Vm 遷移至 AzureMigrate VMs to Azure by using HCX

    當內部部署資料中心 (來源) 和 Azure VMware 解決方案私人雲端 (目的地) 都是使用 VMware 雲端和 HCX 來設定時,Contoso 就可以開始遷移其 Vm。When both the on-premises datacenter (source) and the Azure VMware Solution private cloud (destination) are configured with the VMware cloud and HCX, Contoso can begin migrating its VMs. 小組可以使用多個遷移技術,將 Vm 移入和移出已啟用 VMware HCX 的資料中心。The team can move VMs to and from VMware HCX-enabled datacenters by using multiple migration technologies.

    • Contoso 的 HCX 應用程式已上線,且狀態為綠色。Contoso's HCX application is online, and the status is green. 小組現在已準備好使用 HCX 來遷移及保護 Azure VMware 解決方案 Vm。The team is now ready to migrate and protect Azure VMware Solution VMs by using HCX.

      VMware vSphere Web 用戶端頁面的螢幕擷取畫面。

    VMware HCX 大量遷移VMware HCX Bulk Migration

    此遷移方法會使用 VMware vSphere 複製通訊協定,將多個 Vm 同時移至目的地網站。This migration method uses the VMware vSphere replication protocols to move multiple VMs simultaneously to a destination site. 好處包括:Benefits include:

    • 此方法是設計來平行移動多個 Vm。This method is designed to move multiple VMs in parallel.
    • 您可以將遷移設定為在預先定義的排程上完成。The migration can be set to finish on a predefined schedule.
    • Vm 會在來源網站執行,直到容錯移轉開始為止。The VMs run at the source site until failover begins. 服務中斷相當於重新開機。The service interruption is equivalent to a reboot.

    VMware HCX vMotion 即時移轉VMware HCX vMotion live migration

    此遷移方法會使用 VMware vMotion 通訊協定,將單一 VM 移至遠端網站。This migration method uses the VMware vMotion protocol to move a single VM to a remote site. 好處包括:Benefits include:

    • 此方法的設計是一次移動一個 VM。This method is designed to move one VM at a time.
    • 當 VM 狀態遷移時,不會中斷服務。There's no service interruption when the VM state is migrated.

    VMware HCX 冷遷移VMware HCX Cold Migration

    此遷移方法會使用 VMware 近乎現場的通訊協定。This migration method uses the VMware near-field communication protocol. 當來源 VM 電源關閉時,會自動選取此選項。The option is automatically selected when the source VM is powered off.

    VMware HCX 複寫-輔助 vMotionVMware HCX Replication-assisted vMotion

    VMware HCX RAV 結合 VMware HCX 大量遷移的優點,包括平行作業、復原和排程,以及 VMware HCX vMotion 遷移的優點,包括 VM 狀態遷移期間的零停機時間。VMware HCX RAV combines the benefits of VMware HCX Bulk Migration, which include parallel operations, resiliency, and scheduling, with the benefits of VMware HCX vMotion migration, which include zero downtime during VM state migration.

    其他資源Additional resources

    如需其他 VMware 技術檔,請參閱:For additional VMware technical documentation, see: