从快照创建的Google Cloud虚拟机实例不允许ssh [英] Google Cloud virtual machine instance created from snapshot not allowing ssh

查看:187
本文介绍了从快照创建的Google Cloud虚拟机实例不允许ssh的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经根据生产服务器上的快照创建了一个虚拟机实例. SSH密钥已设置.但是我无法通过浏览器的putty和google cloud ssh选项同时进入ssh实例.

I have created a virtual machine instance from snapshot taken the production server. SSH key is set. But I am unable to ssh into instance both from the putty and google cloud ssh option from browser.

我到处搜索并发现未设置新问题的发行版
实例的默认IP网关.我已经设置了IP网关并重新启动实例,但是实例仍然显示相同的错误. 我还检查了防火墙规则和允许实例的端口22流量. 除了使用快照新创建的实例外,同一区域中的所有其他实例都在SSH上运行.

I have search around and find out that the issue new release which does not set the
default IP gateway for the instance. I have set the IP gateway and restart the instance but instance still showing the same error . I have also check the Firewall rule and port 22 traffic allowed to the instance. All other instance in same zone are working on SSH other than instance newly created using snapshot.

从串行端口查看日志后, ifup:无法启动lo

After looking into the logs from the serial port ifup: failed to bring up lo

错误图片

推荐答案

似乎这里的问题是新实例的网络接口没有出现.您可以尝试以下两个步骤之一:

It seems the issue here is that the network interface of your new instance is not coming up. You can try one of two steps:

1)尝试通过串行控制台进行连接.这不会通过端口22连接或使用SSH.但是,如果网卡根本没有弹出,这也可能会失败.

1) try connecting through the serial console. This does not connect through port 22 or use SSH. However, if the network card is not coming up at all, this may also fail.

2)在实例中添加启动脚本需要配置网卡

2) Add a startup script to the instance which will run the commands you need to configure the network card

这篇关于从快照创建的Google Cloud虚拟机实例不允许ssh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆