Skip to content

Instantly share code, notes, and snippets.

@rahimnathwani
Created March 20, 2017 12:11
Show Gist options
  • Save rahimnathwani/9019df33d4ad7ec4607413fd0a29c207 to your computer and use it in GitHub Desktop.
Save rahimnathwani/9019df33d4ad7ec4607413fd0a29c207 to your computer and use it in GitHub Desktop.
Create GPU instance from previously-create snapshot
gcloud compute snapshots list
gcloud compute disks create deep-learning-persistent-disk-1 --size=25GB --source-snapshot=deep-learning-snapshot-1
gcloud beta compute instances create gpu-instance-1 \
--machine-type n1-standard-1 --zone asia-east1-a \
--accelerator type=nvidia-tesla-k80,count=1 \
--image-family ubuntu-1604-lts --image-project ubuntu-os-cloud \
--maintenance-policy TERMINATE --no-restart-on-failure \
--disk=auto-delete=yes,boot=yes,name=deep-learning-persistent-disk-1
gcloud compute instances add-tags gpu-instance-1 --tags https-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment