Migrating VMware Virtual Machine to Azure
Step-by-Step Guide and Troubleshooting
Migrating virtual machines from on-premises VMware environments to Microsoft Azure can be a game-changer for organizations seeking greater scalability, flexibility, and cost-efficiency. In this comprehensive guide, we’ll walk you through the entire VMware VM to Azure migration process, including setting up Azure Migrate, deploying the Azure Migration Appliance, and addressing common migration challenges.
Table of Content
Creating a Landing Zone in Azure Portal
Installing and Configuring Azure Migration Appliance
Installing VMware Virtual Disk Development Kit
Discovering Servers
Replicating the VM
Migrating the VM
Post-Migration Best Practices
Common Errors and Troubleshooting
Conclusion
References
Create Landing Zone in Azure Portal
Set Up Your Azure Migrate Project
Log in to Azure Portal: Access the Azure Portal and search for the Azure Migrate service. Select “Assess and migrate servers.”
Create Landing Zone in Azure Portal Create a Resource Group and a Vnet in the RG.
Installing and Configuring Azure Migration Appliance
Install and Configure the Azure Migration Appliance and Start Discovery How to Setup an Azure Migrate Project First, we need to set up an Azure Migrate project. Once logged into the Azure Portal search for the Azure Migrate service and select Assess and migrate servers:
Now start Discovery, click on Discovery and Select Yes, with VMware and vSphere Hypervisor.
Start Discovery: Click on “Discovery” and choose “Yes, with VMware and vSphere Hypervisor.” Download the Azure Migration Appliance OVA file (approximately 12 GB) from the provided link.
Next go to vCenter On the vCenter select a Cluster and select deploy OVF Template. Here import the OVA file which we downloaded.
Select name and Appliance in the folder.
Here we deployed the AzureMigrateAppliance
Launch the web console of the appliance.
Generate the Appliance Key
Paste the key and click verify
Once the key is verified, it will start the appliance upda
e.
After connecting to appliance, create a password and finish. Login with password now, Appliance will be directly redirected to the browser. It checks the prerequisites, then copy and paste the Migrate Project key generated in the Azure Portal. Verify the key now.
Ensure to have the required permissions at the Subscription level (Contributor or Owner).
Go through the below Microsoft doc https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-vmware
Then click on Login with a code auto-generated. This is to login to Microsoft Azure PowerShell.
Installing VMware Virtual Disk Development Kit
Now, we have to install the VMware virtual disk development kit in the appliance.
We will right click on the download, then will copy the link and open the new tab and will paste the copied key here. Click on Download now.
Provide VMware portal credentials here. Paste the copied content in the path below.
Discovering Servers
Then Add credentials to discover Hyper-V V
s.
Then we can see the Discovered servers.
The Discovery process has been completed below.
Replicating the VM
On this page under the migration tools click on replicate and here on the drop down we will select the our appliance name which we had given.
Migrating the VM
Go to azure migrate servers and click on Migrate.
Select the VM and click Migrate
Below we can see the Migrated machines.
Migration has been done. Now Associate the Public IP and access the VM.
virtual machine has been successfully migrated and it is ready for use.
Post-migration best practices
⦁ For increased resilience: ⦁ Keep data secure by backing up Azure VMs using the Azure Backup service. ⦁ Keep workloads running and continuously available by replicating Azure VMs to a secondary region with Site Recovery. ⦁ For increased performance: ⦁ By default, data disks are created with host caching set to “None”. Review and adjust data disk caching to your workload needs. ⦁ For increased security: ⦁ Lock down and limit inbound traffic access with, Microsoft Defender for Cloud — Just in time administration. ⦁ Restrict network traffic to management endpoints with, Network Security Groups. ⦁ Deploy, Azure Disk Encryption to help secure disks and keep data safe from theft and unauthorized access. Below are the errors we came across in the migration process.
Solution:
https://vdan.cz/vmware/esxi/how-to-fix-the-cpu-in-this-host-is-not-supported-by-esxi-7-0-0-allowlegacycputrue/ https://kb.vmware.com/s/article/82794
Conclusion
In wrapping up our journey through Azure migration, we’ve successfully established a robust landing zone, seamlessly replicated and migrated our VMs, and fortified post-migration resilience and security. With these steps completed, your Azure environment is now primed for enhanced performance, protection, and efficiency. Embrace the cloud with confidence and seize the full potential of Azure
Subscribe to my newsletter
Read articles from kalyan reddy bandi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by