☁️

VMware VM Migration to Azure Cloud

Aug 19, 2024

Migration of VMware VM to Azure Cloud using Azure Migrate

Introduction

  • Topic: Migrating on-premise VMware virtual machine to Azure cloud.
  • Tools Used: Azure Migrate, VMware Workstation, vSphere 7.

Setting Up VMware Workstation

  • VMware Workstation used to create vSphere 7 cluster (home lab).
  • Reference video available for detailed setup of vSphere 7 home lab.

Accessing vCenter

  • Opened browser and logged into vCenter 7 with username and password.
  • vCenter contains one cluster with two hosts.
  • Windows 10 VM is hosted on IP 192.168.0.131.

Azure Portal Setup

  1. Create Resource Group

    • Subscription: Free trial
    • Resource Group Name: virtualtechbox-rg
    • Region: East US
    • Resource Group created successfully.
  2. Create Virtual Network

    • Virtual Network Name: virtualtechbox-vnet
    • IP Address Space: 10.0.0.0/16
    • New Subnet Name: virtualtechbox-subnet, Subnet: 10.0.2.0/24
    • Virtual network created successfully.

Creating Migration Project in Azure Migrate

  1. Navigate to Azure Migrate

    • Click on "Create Project"
    • Subscription: Free trial
    • Resource Group: New group called vSphere7homelab migration-rg
    • Project Name: vSphere 7 home lab migration
    • Geography: United States
    • Project created successfully.
  2. Discover and Register Migration Appliance

    • Download OVA file for the migration appliance (12 GB).
    • Deploy OVF Template in vCenter:
      • Name: azure migration appliance
      • Disk format: Thin provision
      • Data store: Local data store mapped to the second ESXi host.
    • Appliance powered off after deployment, settings modified (2 vCPUs, 10 GB RAM).

Configuring Migration Appliance

  1. Power On and Access Web Console

    • Set password for the migration appliance.
    • Verify IP address using ipconfig command.
    • Generate access key in Azure portal for appliance registration.
    • Install VMware Virtual Disk Development Kit in the appliance.
  2. Add Credentials and Start Discovery

    • Add vCenter server credentials and validate successfully.
    • Start discovery process.
    • Discovery process completed, showing servers count.
    • Windows 10 VM discovered, along with two default cluster VMs (to be ignored).

Assessment and Replication

  1. Create Assessment

    • Assessment Type: Azure VM
    • Target Location: East US
    • Assessment Name: vsphere 7 home lab - assess
    • Group Name: vSphere 7 home lab - group
    • Assessment created successfully, with status showing ready.
  2. Replication of VM

    • Select to replicate Windows 10 VM.
    • Target settings:
      • Region: East US
      • Resource Group: virtualtechbox-rg
      • Virtual Network: virtualtechbox-vnet
      • Subnet: virtualtechbox-subnet
    • Initiated replication task, showing completed status.

Migration Process

  1. Migrate VM

    • Confirm to shut down Windows 10 VM before migration.
    • Migration task shows completed status in Azure portal.
    • Windows 10 VM now migrated and running in Azure.
    • Private IP assigned: 10.0.2.4.
  2. Assign Public IP

    • Created and assigned a new public IP to the VM.
    • Successfully accessed the VM via RDP.
    • Confirmed successful migration through ping test.

Conclusion

  • Successfully migrated on-premise VMware virtual machine to Azure cloud using Azure Migrate.
  • Encouragement to subscribe and share the video for further learning.