0

I've created a new GCE instance and took a snapshot of it's persistnet boot disk. Now I would like to create a template based on this snapshot, to allow horizontal scaling, but I don't see the snapshot during the image selection when creating a new instance.

How can I create a new instance from an existing snapshot ?

1 Answers1

2

Snapshots are just an instant representation of a persistent disk only. It does not save the google configurations of the instance using it. Nothing forbid you to take a snapshot of an unattached disk for example. Moreover, a snapshot is not bootable, it means that you have to create an image from it.

In order to create an instance group, you have to create an image from you snapshot you've taken and you have to create an instance template base on that newly created image.

Yann C.
  • 1,315
  • 12
  • 17
  • Thank you. I will try . Obviously any network-related configuration stored in my snapshotted boot disk would be changed accordingly, in the new instance, right? There is no risk of conflicting IP and so on... – Gandalf Corvotempesta Sep 04 '18 at 12:05
  • Absolutely ! There are no static network configuration on instances. – Yann C. Sep 05 '18 at 05:55
  • I can't find how to create an instance template to be based on a custom image as the boot disk. I can only attach it as a secondary disk, but even that has to be unattached, meaning that cannot use it in an instance group. How can do that? – orad Dec 14 '18 at 21:26
  • 1
    You can create an instance directly from snapshot now. @GandalfCorvotempesta – Vsevolod A. Apr 16 '19 at 00:24