Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrate Google compute engine instance to a different region

I am trying to migrate a couple of compute engine instances from Europe to Asia. I need to do this because most of the users for those servers are in Asia and they get faster access to servers in their region. I am trying following command.

gcloud compute instances move asiawindows1 --zone europe-west1-d  --destination-zone asia-east1-c

I get following error when I try this

Instances belonging to subnetworks cannot be moved interregionally.

What is the best way to move these servers without manually setting them up in the Asia zone?

like image 443
SYM Avatar asked Apr 06 '16 04:04

SYM


1 Answers

Follow steps below in Google Cloud Platform

  1. Create snapshot of your VM instance
  2. Create disk with this snapshot
  3. Create image with disk created
  4. Create a new instance using the image created in steps above and change your zone
like image 51
krekto Avatar answered Sep 19 '22 18:09

krekto