Migrating a Virtual Machine to a New Region
Virtual machines with no attached volumes can be easily migrated via a snapshot. The snapshot captures the VM's disk state.
- Select the VM and press Shut down. Once it is offline, press Snapshot.
- Wait for the snapshot to complete; you can monitor its progress from Images.
- Select the snapshot, press Replicate, and replicate (copy) it to the destination region.
- Wait for the replication to complete.
- Provision a new VM in the destination region from the snapshot. The snapshot can be selected under My Images. Check "Set password via cloud-init" if you currently use SSH password authentication.
Migrating Virtual Machines with Volumes
For virtual machines with attached volumes, follow these additional steps for each attached volume:
- From Volumes, select the volume and press Detach. Then press Convert to Image.
- Once the image conversion completes, select the image, press Replicate, and replicate it to the destination region.
- Once the replication completes, go to Volumes, and create a new volume from the image. It can be selected under the Source dropdown, which appears after the region is chosen.
Then, after creating the new VM in the destination region, immediately attach each new volume to the VM.
The new VM will have different private and public IP addresses than the old VM, so you may need to update the network configuration inside the VM if it is not configured to acquire IP addresses via DHCP.
- Your root filesystem is on a volume:: capture the root filesystem from the volume by selecting the VM and pressing Snapshot. After replicating the image to Toronto, create a volume from the image, and then create a VM from the volume.