Migrate an instance in GCP
Â
Things to be done on the source GCP
Â
1) log in to the source Google Console.
You can view the current Project name on top of the dashboard. Click on it and select the project where the instance to migrate is available.
2) Search for “VM instance” on the search bar and click on “VM instance” to view the dashboard.
  

Â
Â
3) You can view the instance Name on the dashboard. Note the instance name that needs to be migrated.
Â
Â

Â
Â
Now we need to stop the instance to create a full instance Image:
Â
4) Click on the “…” icon in the instance that needs to be migrated. Click on the STOP button to stop the instance.
Â
Â

Â

Â
Â
5) Click on “Images” from the left panel and you will be taken to the Images Dashboard.
Â
Â

Â
Â
6) You can view “Create Image” on top of the dashboard. Click on it and you will be taken to the Image Panel
Â
Â

Â
Â
7) Enter the Image name as per your Requirement(optional). If not it will take a default name. Take note of the Image name.
Â
8) Click on the “Disk” Option in the “Source” tab. You can view the Instance name on the “Source Disk” tab. Click on the disk that needs to be taken as an Image.
Â
Â

Â
Â
9) Click on the “Create” button to create an Image.
Â
Â

Â
Â
10) Image will be created with the given name.
Â
Â

Â
Â
11) Start the Instance if it is necessary.
Search for “VM instance” on the search bar and click on “VM instance” to view the dashboard.
You can view the instance Name on the dashboard.
Now we need to start the instance. Click on the “…” icon in the instance. Click on the “START” button to start the instance.
Â
Â
Â
Â

Â
Things to be done on the Source GCP.
Â
Need to Add the Destination GCP email ID in the Source GCP to start the migration.
Â
1) log in to the Source Google Console.
2) Search for “IAM & Admin” on the search bar and click on “IAM & Admin” to view the dashboard or from the left Panel you can click “IAM & Admin” and click on “IAM” to view the dashboard.
Â
Â

Â
Â
3) You can view the “Add” icon on top of the Dashboard. Click on it.
Â
Â

Â
Â
4) Add the Destination GCP email ID in the “New principals” tab.
Â
Â

Â
Â
5) Click on “Select a role” and Select the “owner” option to make the Source GCP as owner.
Â
Â

Â
Â
6) An verification Email will be received on the Destination Gmail. Go to Gmail and click on the verification link and it will be redirected to the console.
Â
Â

Â

Â
Â
7) You can view the current Project name on top of the dashboard in the Destination Server. Click on it. Now you can view the Source project name and Destination Project Name.
Â
Â

Â
Â
8) Click on “Images” from the left panel and you will be taken to the Images Dashboard.
Â
Â
9) You can view “Create Image” on top of the dashboard. Click on it and you will be taken to the Image Panel
Â
Â

Â
Â
10) Enter the Image name as per your Requirement(optional). If not it will take a default name. Take note of the Image name.
Â
11) Click on the “Image” option in the “Source” tab. You can view the Destination project Name on the “Source Project for images” tab. Click on the “CHANGE” option on the “Source Project for images” tab and select the source GCP project.
Â
12) You can view the Instance name on the “Source Image” tab. Click on the instance that needs to be taken as an Image.
Â
Â

Â
Â
13) Click on the “Create” button to create an Image.
Â
Â

Â
Â
14) Image will be created with the given name.
Â
Â

Â
Â
15) Click on the “…” icon on the created Image. You can view the “Create Instance” option and click on it.
Â
Â

Â
Â
16) You can view the “New VM instance” tab. Enter the “Instance Name”(optional). If the name has not been entered an instance will be created with the default name.
Â
Â

Â
Â
To fill in the details such as:
(Region and Zone) and (Machine configuration such as Series and Machine Type)
We need to cross-check the source GCP for details.
– Login to the source Google Console.
– You can view the current Project name on top of the dashboard. Click on it and select the project where the instance to migrate is available.
– Search for “VM instance” on the search bar and click on the “VM instance” to view the dashboard.
– You can view the instance Name on the dashboard. Click on the instance name to view the instance details.
Â
Â

Â
Â
– Cross-check the zone and Machine type and configure the same on the Destination GCP.
Â

Â
Â

Â
Â
17) Scroll to the end and click on “Allow HTTP and HTTPS traffic”
Â
Â

Â

Â
Â
18) Click on “Create” and now the instance is created successfully.
Â
Â

Â
Â
19) If you want to make the default IP assigned for the instance a static IP.
20) On the left panel click on “VPC network”. You will be taken to the “VPC network” dashboard.
Â
Â

Â
Â
21) Click on “External IP addresses” on the left panel. You will be able to see the instance IP.
Â
Â

Â
Â
22) Click on “Reserve” and add the Name for the IP and Description(optional) as needed and click on “Reserve”.
Â
Â

Â
Â
23) Static IP will be reserved for the instance.
Â
Â

Â
Â
Note: If the IP is not reserved for the instance, the IP will be changed once the instance is stopped and started.
Â
24) Final step is to remove the source Email ID from “IAM & Admin”.
Â
25) Search for “IAM & Admin” on the search bar and click on the “IAM & Admin” to view the dashboard or from the left panel you can click “IAM & Admin” and click on “IAM” to view the dashboard.
Â
26) Select the source Email id in the checkbox and you will see the remove option on the top of the dashboard. Click on remove.
Â
Â
Â

Â
Â
Cross-check the Firewall rules on the source server and set the same in the destination server.
Â
27) You can view the Firewall option on the “VM instance” dashboard as “Set up Firewall rules”.
Â
Â
Â