GCP

  • GPUを使用する場合はあらかじめ割り当ての申請が必要: 早ければ即座に承認されるが、時間がかかる(却下される)場合もある
  • GPU付きのVMはPreemptible(Spot)モードにしないとリソース不足で起動できない場合が多い
  • 通常モードで作成したVMを後からPreemptible(Spot)モードに切り替えることは出来ない

https://cloud.google.com/compute/docs/metadata/overview
https://serverfault.com/questions/955995/gce-deleted-users-folders-reappear-after-reboot

  • GCEでサーバを再起動すると削除したはずのユーザが復活してしまう場合はメタデータのSSH認証鍵を削除する

https://cloud.google.com/sdk/gcloud/reference
https://cloud.google.com/sdk/docs/cheatsheet
https://qiita.com/komiya_____/items/4cef3b2d47ed42a7caf5

  • ユーザ名を指定せずにSSHするとローカル側のユーザ名を踏襲して勝手にアカウントが生成されるため注意
gcloud help
gcloud version
gcloud info
gcloud components list
gcloud components update
gcloud init
gcloud auth login
gcloud auth list
gcloud auth revoke [ACCOUNT]
gcloud config list
gcloud config configurations list
gcloud config configurations activate [CONFIG_NAME]
gcloud config configurations create [CONFIG_NAME]
gcloud config configurations delete [CONFIG_NAME]
gcloud projects list
gcloud config set project [PROJECT_ID]
gcloud compute instances list
gcloud compute instances start [INSTANCE_NAME]
gcloud compute instances stop [INSTANCE_NAME]
gcloud compute ssh [INSTANCE_NAME]
gcloud compute ssh [USER]@[INSTANCE_NAME]
gcloud compute scp [INSTANCE_NAME]:[REMOTE_PATH] [LOCAL_PATH]
gcloud compute scp [USER]@[INSTANCE_NAME]:[REMOTE_PATH] [LOCAL_PATH]

Daiphys is a professional-service company for research and development of leading-edge technologies in physics and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!

Name*


Email*


Message*


* Indicates required field

Daiphys Technologies LLC - https://www.daiphys.com/

  • Last modified: 2024/02/28 02:26
  • by Daiphys