Unable to create an instance from a shared snapshot

241 views
Skip to first unread message

Aakash Kumar Nain

unread,
Sep 16, 2019, 10:42:55 AM9/16/19
to gce-discussion
My friend shared a snapshot with me so that we can save time and work. Although he has provided me a role of compute storage admin, I am unable to create an instance from it. Check the attached screenshot for the same.

Screen Shot 2019-09-16 at 8.03.24 PM.png

I am unable to find anything relevant to this on SO or in the docs. One more thing, I provided the gmail account to my friend for adding me to the IAM roles. Should I provide the compute engine address?

Ahmad P - Cloud Platform Support

unread,
Sep 16, 2019, 6:59:49 PM9/16/19
to gce-discussion
The role compute storage admin is enough for using snapshots. I can’t open your screenshot(It could be that you use the private information and the screenshot has been removed).

Currently it is not possible to use a snapshot from one project to create a VM in another project via the Google Cloud Console. I found a feature request on the Google public Issue Tracker for this feature. When you “star” the request you will receive notifications for any important updates. you can keep track of its progress. At this time, I am not able to provide any ETA or guarantee its implementation. Feel free to post there should you have any additional comments or concerns regarding the issues.

As a workaround, instead of using the GCP console(UI) you will have to use the gcloud command.

According to the public documentation, you can create an instance from a snapshot as long as you provide the location of it.

$ gcloud compute instances create my-instance --source-snapshot=https://www.googleapis.com/compute/v1/projects/your-project/global/snapshots/snapshot-name

Meanwhile, as a workaround instead of using snapshots, you can use images. This document is for creating an image from an instance,snapshot, another image, cloud storage file or a virtual disk, and all the steps to follow . Once you have the image created, the only thing left is to create the new identical VM on the other project as described in and please mentioned that you needs to set the role Compute Image User from Compute Engine in IAM page.
Reply all
Reply to author
Forward
0 new messages