question

JeremyBraband-8407 avatar image
0 Votes"
JeremyBraband-8407 asked BrandonFox-7171 edited

Migrated Ubuntu 20.04 form on-prem, unable to connect via network

I just did a test migration of an Ubuntu 20.04 virtual machine from our on-prem data center to Azure.

The created virtual machine is not accessible on the network at all. Similar Ubuntu VMs (20.04) that I have migrated also have the same problem. When I migrated an Ubuntu 18.04 VM, the networking was accessible without intervention. 100% normal operation.

I have a VPN gateway set up to the VM's virtual network and can successfully ping/RDP to other windows/ubuntu 18.04 VMs that I have migrated.

I am suspecting that NICs or the Hyper-V Linux Integration Services were not properly installed during the migration as outlined here: https://docs.microsoft.com/en-us/azure/migrate/prepare-for-migration

Please let me know what other information would be helpful in troubleshooting this issue.

Thanks!

azure-virtual-machinesazure-migrate
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i believe the underlying problem may be the installation of waagent on ubuntu 20.04. When installing from apt repos, I am getting version 2.2.46 installed.

Our Ubuntu 18.04 VMs are installing 2.2.53.1 (latest) and working just fine in azure, including serial console.

The 20.04 VM is not opening serial console within Azure Portal.

0 Votes 0 ·

@JeremyBraband-8407 Apologize for the delayed response!

I think Ubuntu 20.04 is not a supported version per https://docs.microsoft.com/en-us/azure/migrate/prepare-for-migration#linux-machines


If the response helped, do "Accept Answer" and up-vote it

0 Votes 0 ·

Ubuntu 20.04 images are available in Azure though. Is the limitation with Azure Migrate not being able to lift and shift an Ubuntu 20.04 virtual machine?

0 Votes 0 ·

Hi, Found any relevant solution for this ??

0 Votes 0 ·

My Ubuntu 20.04 VM mentioned in this post was on VMWare ESXi. I found that if I converted it to Hyper-V and then used Azure Site Recovery to Azure, it worked up at Azure.

I don't know if using Azure Site Recovery directly from ESXi would have worked, without the conversion to Hyper-V

0 Votes 0 ·

1 Answer

BrandonFox-7171 avatar image
0 Votes"
BrandonFox-7171 answered BrandonFox-7171 edited

Hey, I had an issue with a migrated Ubuntu box using Resource mover. The final solution was to update netplan (was on an old and outdated version). Then use the dhclient command to force the NIC to get a new IP address. Anyway, I highly recommend checking your netplan version, and if it's anything older than .9, it's too old and needs to be updated.

I believe it was dhclient -r for release
then netplan apply

Hopefully this helps.

EDIT: I had to use serial console to make these changes, as the box was totally offline. Thanks goodness for that!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.