Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How do I migrate a vm instance from one google cloud account to another using snapshot

I have a VM instance where I have deployed a node application. As this was in my personal google cloud account I wish to migrate the instance from this account to my office GCP account. I tried taking a snapshot but could not find anyway to export it to use it to create new VM instance in my office account. How do I migrate a vm instance from one google cloud account to another using snapshot.

0 2 4,351
2 REPLIES 2

If you wish to use your snapshot to create a VM please:

Create a custom image

  1. In the Google Cloud console, go to the Create an image page.
  2. Specify the Name of your image.
  3. Specify the Source from which you want to create an image. This can be a persistent disk, a snapshot, another image, or a disk.raw file in Cloud Storage.
  4. If you are creating an image from a disk attached to a running VM, check Keep instance running to confirm that you want to create the image while the VM is running. You can prepare your VM before creating the image.
  5. In the Based on source disk location (default) drop-down list, specify the location to store the image. For example, specify us to store the image in the us multi-region, or us-central1 to store it in the us-central1 region. If you don't make a selection, Compute Engine stores the image in the multi-region closest to your image's source location.
  6. Optional: specify the properties for your image.
    1. Family: the image family this new image belongs to.
    2. Description: a description for your custom image.
    3. Label: a label to gather resources.
    4. Specify the encryption key. You can choose between a Google-managed key, a Cloud Key Management Service (Cloud KMS) key or a customer- supplied encryption (CSEK) key. If no encryption key is specified, images are encrypted using a Google-managed key.

7) Click Create to create the image.

After creating a custom image, you can share it across projects. If you allow users from another project to use your custom images, then they can access these images by specifying the image project in their request.

Use the image to create a VM in another project

  1. In the Google Cloud console, go to the Create an instance page.
  2. Specify a Name for your VM. For more information, see Resource naming convention.
  3. Optional: Change the Zone for this VM. Compute Engine randomizes the list of zones within each region to encourage use across multiple zones.
  4. Select a Machine configuration for your VM.
  5. In the Boot disk section, click Change to configure your boot disk, and then do the following:
  6. Select the Custom Images tab.
  7. To select the image project, click Select a project, and then do the following:
  8. Select the project that contains the image.
  9. Click Open.
  10. In the Image list, click the image that you want to import.
  11. Select the type and size of your boot disk.
  12. To confirm your boot disk options, click Select.
  13. To permit HTTP or HTTPS traffic to the VM, in the Firewall section, select Allow HTTP traffic or Allow HTTPS traffic.
  14. To start and create a VM, click Create.

@masudalimran I hope my colleague's reply answers your question. Can I trouble you with changing the topic of the question? It seems unrelated to Cloud Error Reporting service.

Top Solution Authors