现在我已经有了三个月的function齐全的stream浪者,但是在过去的三天里,每当我尝试运行stream浪汉或者stream浪汉重新加载的时候,我都会遇到错误。
这是我运行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的最新版本,并提供了一些解答。 但问题依然存在。
我已经尝试了大多数stream行的解决scheme,包括启用GUI和这个 。 我也试过这里给出的解决scheme,但不能,因为我的虚拟箱不login。
不过,GUI给我提供了这个:
keys: press S to skip mounting or M for manual recovery
我一个一个尝试了两个键,但问题仍然存在。
有没有人有过这个谁可以提供一个解决scheme,stream浪并没有广泛覆盖在networking上,我无法find一个原因,为什么发生这种情况。
在针对不同的问题提供了各种各样的选择之后,我仍然面临同样的问题。 最后,我做了一个
vagrant destroy
其次是
vagrant up
而且我有我的系统再次工作。
注意:如果您也习惯直接关闭电脑,您可能会很快遇到这个问题! 在你的流浪汉( vagrant ssh
),总是去一个:
sudo shutdown -h now
或者你可以输入
vagrant halt
从你的SSH注销后。
PS:对于那些在vagrant destroy
期间可能会害怕失去你的数据/代码/任何东西的人,你可以放松一下! 我犹豫使用这个命令,但是根据文档,它所做的只是:
这个命令停止正在运行的机器Vagrant正在管理和破坏机器创建过程中创建的所有资源。 运行此命令之后,您的计算机应保持清洁状态,就好像您从未创建客户机一样。
这意味着你的代码将保持完整,而下一个vagrant up
将会引导你到达你离开的状态,只有现在解决了这个问题。 🙂