AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 579178
Accepted
ankita
ankita
Asked: 2015-01-30 01:26:20 +0800 CST2015-01-30 01:26:20 +0800 CST 2015-01-30 01:26:20 +0800 CST

Vagrant up/reload 错误 - 默认:警告:连接超时。重试... [关闭]

  • 772
这个问题已关闭,因为它与官方 Ubuntu 风格无关。它目前不接受答案。

这与官方 Ubuntu 风格无关。关于其他 Linux 发行版的问题可以在Unix & Linux上提问,关于Windows的问题可以在Super User上提问,关于Apple 产品的问题可以在Ask Different上提问,通用编程问题可以在Stack Overflow上提问。

5 年前关闭。

改进这个问题

我现在有一个功能齐全的流浪者已经三个月了,但是在过去的三天里,每当我尝试运行 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。我也尝试了此处给出的解决方案,但由于我的虚拟框无法登录,所以无法成功。

然而,GUI 向我展示了这个:

 keys: press S to skip mounting or M for manual recovery

我一个一个地尝试了两个键,但问题仍然存在。

之前有没有人可以提供解决方案,vagrant 尚未在网络上广泛覆盖,我找不到发生这种情况的原因。

virtualbox vagrant
  • 0 0 个回答
  • 16298 Views

0 个回答

  • Voted
  1. Best Answer
    ankita
    2015-01-31T22:28:22+08:002015-01-31T22:28:22+08:00

    在对不同问题的所有可用选项进行了挣扎之后,我仍然面临着同样的问题。最后,我做了一个

    vagrant destroy
    

    其次是

    vagrant up
    

    我的系统再次运行。

    注意:如果你也有直接关机的习惯,你可能很快就会遇到这个问题!在您的 vagrant 终端 ( vagrant ssh) 中,始终执行以下操作:

    sudo shutdown -h now
    

    或者你可以直接输入

    vagrant halt
    

    从 ssh 注销后。

    PS:对于那些可能害怕在 期间丢失数据/代码/任何东西的人vagrant destroy,您可以放松一下!我对使用该命令犹豫不决,但根据文档,它所做的只是:

    此命令停止 Vagrant 正在管理的正在运行的机器并销毁在机器创建过程中创建的所有资源。运行此命令后,您的计算机应该处于干净状态,就好像您从来没有创建过客户机一样。

    这意味着您的代码将保持不变,下一个vagrant up将引导您进入与离开时相同的状态,只是现在问题已解决。:)

    • 3

相关问题

  • VirtualBox 中的屏幕分辨率更高?

  • 虚拟 Ubuntu 网络配置

  • vmware/virtualbox 3d 加速

  • 如何将主机 Ubuntu 上的 VPN (tun0) 网络适配器映射到 VirtualBox 来宾 Windows?

  • 如何在 Ubuntu 中运行 Windows XP

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve