Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
Google Cloud Platform
Create a new VM from a snapshot
Google doesn't provide a way to restore a snapshot to the boot drive. So you have to create a new VM from the snapshot instead.
List the disks:
gcloud compute disks list
List the snapshots:
gcloud compute snapshots list
Describe a snapshot:
gcloud compute snapshots describe snapshot-1
Create the new VM
New VM name | Snapshot | Disk size | Disk type | New disk name |
---|---|---|---|---|
instance-2 | snapshot-1 | 10GB | pd-balanced | restored-1 |
gcloud compute instances create instance-2 --source-snapshot=snapshot-1 --boot-disk-size=10 --boot-disk-type=pd-balanced --boot-disk-device-name=restored-2
Add Comment
Please, Sign In to add comment