在compute engine初始化一臺vm instance時,當(dāng)你選擇了GPU再進(jìn)行創(chuàng)建,會報錯:Quota‘GPUS_ALL_REGIONS’exceeded.Limit:0.0 globally.Google的教程會讓你去IAM&Admin頁面去申請配額(Quotas),這里一定要申請GPUs(all regions),千萬不要選擇你要用的Nvdia K80 or P100什么的,然后再回去申請就可以通過了
然后教程會提示你安裝Google cloud SDK來ssh登陸vm,安裝之后在進(jìn)行g(shù)cloud init時會卡在“Network diagnostic detects and fixes local network connection issues.
Checking network connection…”,這里需要更改gcloud config的proxy配置
gcloud config set proxy/type socks5 gcloud config set proxy/address 127.0.0.1 gcloud config set proxy/port 1080
再去執(zhí)行g(shù)cloud init,就可以了,后面的configuration選擇1
Pick configuration to use: [1] Re-initialize this configuration [default] with new settings [2] Create a new configuration Please enter your numeric choice: 1
再在瀏覽器上登陸你的Google賬號,完成綁定,選擇你的項目就可以了
As always,Peace!