Preparing On-Premises Machines for Migration to Azure
Preparing On-Premises Machines for Migration to Azure
Azure Migrate is a service that helps you discover, assess, and migrate on-premises machines to Microsoft Azure. This comprehensive guide will walk you through the steps to prepare your on-premises machines before migrating them to Azure using the Azure Migrate service.
Verify Migration Limitations
Before you begin, it’s important to understand the discovery, assessment, and migration limits for Azure Migrate. The table below summarizes these limits across different scenarios:
Scenario | Project | Discovery/Assessment | Migration |
---|---|---|---|
VMware vSphere VMs | Discover and assess up to 35,000 VMs in a single Azure Migrate project. | Discover up to 10,000 VMware vSphere VMs with a single Azure Migrate appliance. The appliance supports adding multiple vCenter Servers (up to 10 per appliance). | Agentless migration: Simultaneously replicate a maximum of 500 VMs across multiple vCenter Servers (discovered from one appliance) using a scale-out appliance. Agent-based migration: Scale out the replication appliance to replicate large numbers of VMs. |
Hyper-V VMs | Discover and assess up to 35,000 VMs in a single Azure Migrate project. | Discover up to 5,000 Hyper-V VMs with a single Azure Migrate appliance. | An appliance isn’t used for Hyper-V migration. Instead, the Hyper-V Replication Provider runs on each Hyper-V host. Replication capacity is influenced by performance factors such as VM churn and upload bandwidth. |
Physical machines | Discover and assess up to 35,000 machines in a single Azure Migrate project. | Discover up to 1,000 physical servers with a single Azure Migrate appliance for physical servers. | Scale out the replication appliance to replicate large numbers of servers. |
Select a VMware vSphere Migration Method
If you’re migrating VMware vSphere VMs to Azure, you’ll need to compare the agentless and agent-based migration methods to determine the best approach for your needs.
Verify Hypervisor and Operating System Requirements
Before migration, ensure that your on-premises machines meet the hypervisor and operating system requirements:
- Verify VMware agentless and VMware vSphere agent-based requirements.
- Verify Hyper-V host requirements.
- Verify Windows and Linux operating system support in Azure.
Review URL and Port Access
Ensure that the machines you’re migrating have the necessary URL and port access during the migration process:
Scenario | Details | URLs | Ports |
---|---|---|---|
VMware vSphere agentless migration | Uses the Azure Migrate appliance for migration. Nothing is installed on VMware vSphere VMs. | Review the public cloud and government URLs needed for discovery, assessment, and migration with the appliance. | Review the port requirements for agentless migration. |
VMware vSphere agent-based migration | Uses the replication appliance for migration. The Mobility service agent is installed on VMs. | Review the public cloud and Azure Government URLs that the replication appliance needs to access. | Review the ports used during agent-based migration. |
Hyper-V migration | Uses a Provider installed on Hyper-V hosts for migration. Nothing is installed on Hyper-V VMs. | Review the public cloud and Azure Government URLs that the Replication Provider running on the hosts needs to access. | The Replication Provider on the Hyper-V host uses outbound connections on HTTPS port 443 to send VM replication data. |
Physical machines | Uses the replication appliance for migration. The Mobility service agent is installed on the physical machines. | Review the public cloud and Azure Government URLs that the replication appliance needs to access. | Review the ports used during physical migration. |
Prepare Machines for Migration
Before migrating your on-premises machines to Azure, there are several changes you may need to make, depending on the operating system. Some changes are automatically handled by Azure Migrate, while others require manual configuration.
Windows Machines
The table below summarizes the changes required for Windows machines:
Action | VMware vSphere (agentless migration) | VMware vSphere (agent-based)/physical machines | Windows on Hyper-V |
---|---|---|---|
Configure the SAN policy as Online All | Set automatically for machines running Windows Server 2008 R2 or later. Configure manually for earlier operating systems. | Set automatically in most cases. | Set automatically for machines running Windows Server 2008 R2 or later. |
Install Hyper-V Guest Integration | Install manually on machines running Windows Server 2003. | Install manually on machines running Windows Server 2003. | Install manually on machines running Windows Server 2003. |
Enable Azure Serial Console | Enable manually. Learn more | Enable manually | Enable manually |
Install the Windows Azure Guest Agent | Set automatically for machines running Windows Server 2008 R2 or later. Configure manually for earlier operating systems. | Set automatically for machines running Windows Server 2008 R2 or later. | Set automatically for machines running Windows Server 2008 R2 or later. |
Connect after migration | Set up manually. | Set up manually. | Set up manually. |
Linux Machines
For Linux machines, Azure Migrate automatically performs the following actions for the listed operating systems:
- Red Hat Enterprise Linux 8.x, 7.x, 6.x
- CentOS 8.x, 7.x, 6.x
- SUSE Linux Enterprise Server 15 SP0, 15 SP1, 12, 11 SP4, 11 SP3
- Ubuntu 20.04, 19.04, 19.10, 18.04 LTS, 16.04 LTS, 14.04 LTS
- Debian 10, 9, 8, 7
- Oracle Linux 8, 7.7-CI, 7.7, 6
For other Linux versions, you may need to manually prepare the machines, as summarized in the table below:
Action | Details | Linux version |
---|---|---|
Install Hyper-V Linux Integration Services | Rebuild the Linux init image to include the necessary Hyper-V drivers. This ensures the VM will boot in Azure. | Install manually for all versions except those called out above. |
Enable Azure Serial Console logging | Enable console logging to help with troubleshooting. Learn more | Enable manually for all versions except those called out above. |
Update device map file | Update the device map file with persistent device identifiers. | Install manually for all versions except those called out above. (Only applicable in agent-based VMware scenario) |
Update fstab entries | Update entries to use persistent volume identifiers. | Update manually for all versions except those called out above. |
Remove udev rule | Remove any udev rules that reserve interface names based on MAC address. | Remove manually for all versions except those called out above. |
Update network interfaces | Update network interfaces to receive IP address based on DHCP. | Update manually for all versions except those called out above. |
Enable SSH | Ensure SSH is enabled and the sshd service is set to start automatically on reboot. | Enable manually for all versions except those called out above. |
Install the Linux Azure Guest Agent | Install the Microsoft Azure Linux Agent (waagent) to manage Linux & FreeBSD provisioning and VM interaction with the Azure Fabric Controller. | Enable manually for all versions except those called out above. Follow these instructions for other OS versions. |
Check Azure VM Requirements
Before migrating, review the Azure VM requirements for VMware, Hyper-V, and physical server migration to ensure your on-premises machines comply.
Prepare Machines for Post-Migration Connectivity
After migrating your on-premises machines to Azure, you’ll need to be able to connect to the new Azure VMs. Follow these steps to prepare for post-migration connectivity:
For Windows Machines
- Configure Windows settings, including removing any static persistent routes or WinHTTP proxy.
- Ensure the required Windows services are running.
- Enable remote desktop (RDP) to allow remote connections to the on-premises machine.
- Configure Windows Firewall rules to allow RDP access over the internet or a site-to-site VPN.
- Ensure there are no pending Windows updates on the on-premises VM.
For Linux Machines
- Ensure the Secure Shell service is set to start automatically on system boot.
- Verify that firewall rules allow an SSH connection.
After migration, you’ll need to complete a few additional steps on the Azure VMs, such as assigning a public IP address, configuring network security group rules, and enabling boot diagnostics.
By following the steps outlined in this guide, you’ll be well-prepared to migrate your on-premises machines to Azure using the Azure Migrate service. Remember to review the specific requirements and configurations for your operating system and migration scenario to ensure a successful migration.
For more information, please refer to the official Azure Migrate documentation.