挂起/恢复后GCP VM无响应-启动磁盘或DHCP配置已损坏



我最近在GCP中挂起了一个VM。几天后,我恢复了它,但我无法以任何方式连接实例。

ping命令指向外部IP时,我没有得到任何响应。当然,使用网络浏览器发送HTTP请求也不起作用。

如果我尝试使用SSH(使用gcloud或浏览器窗口(进行连接,我会收到连接超时(Putty(或Code: 4003 Reason: failed to connect to backend。我确实尝试再次将SSH公钥编辑显式添加到VM设置中。此外,我有一个用于不同环境的VM,我从未挂起,也没有发布连接。

我检查了防火墙规则,一切似乎都很好。

如果我启用并连接到串行控制台,我会看到它不断记录这些奇怪的消息:

Mar 23[28087280.507763] sd 0:0:1:0: rejecting I/O to offline device
05:41:56 xxx[28087280.515939] sd 0:0:1:0: rejecting I/O to offline device
dhclient[600]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 [28087280.527691] sd 0:0:1:0: rejecting I/O to offline device
interval 8
Mar [28087280.535079] sd 0:0:1:0: rejecting I/O to offline device
23 05:41:57 xxx dhclient[600]: DHCPREQUEST of 10.xxx.xxx.xxx on eth0 to 255.255.2[28087280.547472] sd 0:0:1:0: rejecting I/O to offline device
55.255 port 67
[28087280.555395] sd 0:0:1:0: rejecting I/O to offline device
Mar 23 05:41:57 xxx dhclient[600]: DHCPOFFER of 10.xxx.xxx.xxx from 169.xxx.xxx.xxx[28087280.567655] sd 0:0:1:0: rejecting I/O to offline device
54
Mar 23 05:41[28087280.575244] sd 0:0:1:0: rejecting I/O to offline device
:57 xxx dhclient[600]: DHCPACK of 10.xxx.xxx.xxx from 169.xxx.xxx.xxx
Mar 23 05:[28087280.710564] sd 0:0:1:0: rejecting I/O to offline device
41:57 xxx dhc[28087280.717131] sd 0:0:1:0: rejecting I/O to offline device
lient[600]: DHCP[28087280.724725] sd 0:0:1:0: rejecting I/O to offline device
DECLINE on eth0 [28087280.731449] sd 0:0:1:0: rejecting I/O to offline device
to 255.255.255.2[28087280.738646] sd 0:0:1:0: rejecting I/O to offline device
55 port 67
Mar [28087280.745723] sd 0:0:1:0: rejecting I/O to offline device
23 05:41:57 hoc-[28087280.752348] sd 0:0:1:0: rejecting I/O to offline device
qa dhclient[600][28087280.759874] sd 0:0:1:0: rejecting I/O to offline device
: DHCPDISCOVER o[28087280.766707] sd 0:0:1:0: rejecting I/O to offline device
n eth0 to 255.25[28087280.773666] sd 0:0:1:0: rejecting I/O to offline device
5.255.255 port 6[28087280.780721] sd 0:0:1:0: rejecting I/O to offline device
7 interval 4
Ma[28087280.787709] sd 0:0:1:0: rejecting I/O to offline device
r 23 05:41:57 ho[28087280.794742] sd 0:0:1:0: rejecting I/O to offline device
c-qa dhclient[60[28087280.801786] sd 0:0:1:0: rejecting I/O to offline device
0]: DHCPREQUEST [28087280.808534] sd 0:0:1:0: rejecting I/O to offline device
of 10.xxx.xxx.xxx on[28087280.815978] sd 0:0:1:0: rejecting I/O to offline device
eth0 to 255.255[28087280.822758] sd 0:0:1:0: rejecting I/O to offline device
.255.255 port 67[28087280.829765] sd 0:0:1:0: rejecting I/O to offline device
Mar 23 05:41:57 xxx dhclien[28087280.963410] sd 0:0:1:0: rejecting I/O to offline device
t[600]: DHCPOFFER of 10.xxx.xxx.xxx from 169.xxx.xxx.xxx
Mar 23 05:41:57 xxx dhc[28087280.975106] sd 0:0:1:0: rejecting I/O to offline device
lient[600]: DHCP[28087280.982881] sd 0:0:1:0: rejecting I/O to offline device
ACK of 10.xxx.xxx.xxx from 169.xxx.xxx.xxx

我见过一些SSH出错的线程,但这似乎是引导磁盘的某种错误,或者可能是DHCP配置的错误。

为了防止有人遇到同样的问题,我现在通过在VM上执行RESET操作来解决它。

在花了很长时间试图找到一个合适的解决方案(但没有成功(之后,我认为这将是一个更简单的解决方案,特别是要记住我的VM来自挂起状态。

最新更新