Unable to Migrate VM from Azure to GCP [Need urgent help]

I want to migrate a VM from Azure to Google Cloud, it is running on Ubuntu 16.04 LTS/Pro Xenial (via Azure Marketplace). The OS / Boot disk size is 1 TiB (570 GiB is used). I cannot stop the VM during migration, as it has an important server running. I want the all the services / servers / apps running after migration on destination VM.

I tried “Migrate to Virtual Machines” of Google Cloud, it is failing & giving error “Cannot Adapt OS” using VM Migration, I tried the Disk Migration feature as well, but it is creating an OS / Boot Disk on top of it & not able to connect to the VM which got created. I tried creating snapshot of disk & exporting it to azure blob storage & from there tried transferring it to GCS bucket. But it is also failing & giving error “PRECONDITION FAILED”, this transfer service detected the size of 1 TiB though, which means the connection took place, but Azure gave error. I tried commands like azcopy & gsutil by creating export URL of the snapshot & the VHD disk. I tried transferring the VM by writing a shell script for chunk transfer, but that is also not working.

I’m thinking of going with rsync, but I’m not sure about it, how helpful would it be? Will it do a deep / complete / full migration? What other method is there? Any open source tool available for easy migration of VM between two platforms?

I’m in urgent need of this migration, please help.

Thanks :folded_hands:

1 Like

Hello @minith_energos ,Welcome on Google Cloud Community

You are getting errors due to unsupported OS from source. Based on https://cloud.google.com/migrate/virtual-machines/docs/5.0/discover/supported-os-versions#azure-source Ubuntu 16 is not supported.

Maybe you will be able to export Azure VM: https://learn.microsoft.com/en-us/answers/questions/776005/how-to-download-azure-vm-image(-vhd)

then import VM disk:

https://cloud.google.com/compute/docs/import/importing-virtual-disks

Similar case: https://www.googlecloudcommunity.com/gc/Infrastructure-Compute-Storage/gcp-custom-vm-created-from-virtualbox/m-p/756694


cheers,
Damian Sztankowski
LinkedIn medium.com Cloudskillsboost Sessionize Youtube

Hello @DamianS ,

Thanks for the response.

Here, on the “Supported Operating Systems” page in the documentation of “Migrate to Virtual Machines” product, it says that it has migration only support for Ubuntu 16.04 OS, but still giving error at “OS Adaptation” step.

I cannot download 1 TiB & then upload to GCS(Google Cloud Storage), I need to transfer directly from Azure Blob Storage account to Google Cloud Storage bucket.

The step before this transfer is the export of snapshot / managed disk. It is not successfully exporting to the storage account.