首页 文章

从快照创建实例

提问于
浏览
1

我有一个f1-micro实例,我一直在测试这样的docker:

$ gcloud compute instances create dockerbox \
  --image container-vm-v20140731 \
  --image-project google-containers \
  --zone europe-west1-b \
  --machine-type f1-micro

一切正常 .

我现在正在升级到更大的谷歌计算引擎VM . 我已经拍摄了fi-micro dockerbox的快照,然后将其用作较大的n1-standard-8 VM的引导源...这似乎在我尝试ssh到它之前没有问题 .

通过命令行:

$ gcloud compute --project "secure-electron-631" ssh --zone "europe-west1-b" "me@biggerbox"
ssh: connect to host xx.xx.xx.xx port 22: Connection timed out
ERROR: (gcloud.compute.ssh) Your SSH key has not propagated to your instance yet. Try running this command again.

通过浏览器,ssh连接我得到:

Connection Failed
We are unable to connect to the VM on port 22. Please check that the VM is healthy and the SSH server is running.

我尝试了多次,但结果相同

我已经确认它的大盒子正在运行 . 不确定sshd

1 回答

  • 0

    好吧,问题似乎源于我在拍摄快照时没有从安装的持久磁盘中分离微实例 . 分离和卸载PD卷并再次对微实例进行快照,并在其上创建新的n1-standard-8 . 现在工作正常 .

    仅供参考,对于那些对GCE实例ssh进行故障排除也很方便:https://github.com/GoogleCloudPlatform/compute-ssh-diagnostic-sh

相关问题