Skip to content

Instantly share code, notes, and snippets.

@tnir
Created April 23, 2016 15:35
Show Gist options
  • Save tnir/b5a9251b8207f240d566c8bd0158829e to your computer and use it in GitHub Desktop.
Save tnir/b5a9251b8207f240d566c8bd0158829e to your computer and use it in GitHub Desktop.
GCPでUbuntu 16.04 (xenial) LTSを起動する ref: http://qiita.com/tnir/items/315a7510e0ecf9595fcc
gcloud compute instances create "xenial" \
--zone "asia-east1-a" --machine-type "n1-standard-1" \
--network "default" --maintenance-policy "MIGRATE" \
--scopes default="https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/cloud.useraccounts.readonly" \
--image "/ubuntu-os-cloud/ubuntu-1604-xenial-v20160420c" \
--boot-disk-size "10" --boot-disk-type "pd-ssd" --boot-disk-device-name "xenial"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment