【发布时间】:2015-03-28 11:04:21
【问题描述】:
我现在有一个功能齐全的 vagrant 三个月了,但在过去的三天里,每当我尝试运行 vagrant up 或 vagrant reload 时都会出错。
这是我在运行vagrant reload时遇到的错误
default: Attempting graceful shutdown of VM... default: Guest communication could not be established! This is usually because default: SSH is not running, the authentication information was changed, default: or some other networking issue. Vagrant will force halt, if default: capable. default: Forcing shutdown of VM... default: Clearing any previously set forwarded ports... default: Clearing any previously set network interfaces... default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly default: Forwarding ports... default: 80 => 8080 (adapter 1) default: 22 => 2222 (adapter 1) default: Running 'pre-boot' VM customizations... default: Booting VM... default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... Timed out while waiting for the machine to boot. This means that Vagrant was unable to communicate with the guest machine within the configured ("config.vm.boot_timeout" value) time period. If you look above, you should be able to see the error(s) that Vagrant had when attempting to connect to the machine. These errors are usually good hints as to what may be wrong. If you're using a custom box, make sure that networking is properly working and you're able to connect to the machine. It is a common problem that networking isn't setup properly in these boxes. Verify that authentication configurations are also setup properly, as well. If the box appears to be booting properly, you may want to increase the timeout ("config.vm.boot_timeout") value.
我正在使用 Elementary OS Luna 并按照一些答案的建议更新了最新版本的 vagrant 和 virtualbox。但问题依然存在。
我已经尝试了大多数流行的解决方案,包括启用 GUI 和 this。我也尝试了here 给出的解决方案,但由于我的虚拟盒子没有登录,所以不能。
但是,GUI 向我展示了这个:
keys: press S to skip mounting or M for manual recovery
我一一尝试了这两个键,但问题仍然存在。
以前有没有人有过这种情况可以提供解决方案,网络上还没有广泛覆盖 vagrant,我找不到发生这种情况的原因。
【问题讨论】:
-
看起来你的虚拟机中有一个损坏的文件系统。您是否在 vagrant 机器仍在运行时关闭了您的电脑? GUI 显示的内容是否超过了
keys:...行? -
你是否得到了一个控制台,或者你在每次点击“S”后要求输入 root 密码?
-
@SebastianStigler:不,输入 M 会再次进入同一个屏幕,输入 S 在
keys: _中得到stuck -
这种情况可能是因为 VirtualBox 未能重定向端口,尽管说 '==> default: Forwarding ports... default: 22 => 2222 (adapter 1) ' 你可以在这里查看我的问题的完整描述link。我仍然不知道如何修复重定向失败(请在我的帖子中添加注释,如果以及如何成功!
标签: linux vagrant virtualbox