When you restore a virtual machine (VM) from a backup, you can choose to restore the VM as a Google Cloud Platform instance.
You can convert VMs to Google Cloud Platform from the following hypervisors:
Amazon streaming backups or IntelliSnap backup copies
Azure Resource Manager streaming backups or IntelliSnap backup copies
VMware streaming backups or IntelliSnap backup copies
Before You Begin
Make any necessary changes to the source VM. For more information, see Preparing VMs for Conversion to Google Cloud Platform.
Back up the VM that you plan to convert.
Create a Google Cloud Platform hypervisor.
When restoring an Azure virtual machine, do the following:
For Windows computers: enable the pagefile on the C: drive of the source VM. This will prevent you from receiving an error message when you reboot the destination VM.
For Linux computers : Ensure that the fstab entry of the source disk should be based on disk UUID and not disk name. If it is not based on disk UUID, then the restored VM will not boot up.
From the navigation pane, go to Protect > Virtualization.
The Virtual machines page appears.
On the Hypervisors tab, click the hypervisor.
The hypervisor page appears.
On the VM groups tab, in the row for the VM group, click the action button, and then click Restore.
The Select restore type page appears.
To convert the full virtual machine, select Full virtual machine.
The Restore page appears.
For Type, select Out of place.
Enter the options for the Google Cloud Platform instance.
What to Do Next
If a Linux instance does not boot up after conversion, check the grub configuration file (/etc/default/grub) and the fstab file (/etc/fstab). In these files, if a partition is identified by the device name (/dev/sda1), replace it with the partition’s UUID.
If a Linux instance boots up but is not available through ssh username/password login, then do the following:
Edit the /etc/ssh/sshd_config file.
Change PasswordAuthentication and ChallengeResponseAuthentication to yes.
Restart ssh by running the following command:
systemctl restart sshd