访问无法启动的VM的硬盘驱动器 [英] Access hard drive for VM that won't boot

查看:80
本文介绍了访问无法启动的VM的硬盘驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的VM上的硬盘已装满(我相信它受到了SSH登录攻击),现在VM无法启动.

The hard drive on my VM filled up (it was under a SSH login attack I believe) and now the VM won't boot.

如何访问引导硬盘驱动器,以便清理空间并使它再次引导?

How can I access the boot hard drive so I can clear out space and get it booting again?

推荐答案

您需要删除实例而不删除启动磁盘,将磁盘附加到临时实例上,然后将其安装在该实例上.有关此操作的说明,请参见以下网址: https://cloud.google.com/compute/docs/troubleshooting#ssherrors (将磁盘安装在临时实例上)

You'll need to delete the instance without deleting the boot disk, attach the disk on a temporary instance and then mount it there. The instructions to do this can found here: https://cloud.google.com/compute/docs/troubleshooting#ssherrors (Mount your disk on a temporary instance)

然后,您将可以通过/mnt/myinstance目录访问磁盘,并删除文件.磁盘不再满后,您可以将磁盘与临时实例分离,然后使用它来重新创建原始实例.

You'll then be able to access the disk through the /mnt/myinstance directory, and delete the files. Once the disk is no longer full, you can detach the disk from the temporary instance, and then use it to recreate your original instance.

这篇关于访问无法启动的VM的硬盘驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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