1

我的问题

我对 Vagrant 很陌生,所以如果这个问题是初级的,我很抱歉。

我正在尝试检查 Nomad,而这又需要 Vagrant 运行。我在 EC2 上生成了一台新的 Ubuntu 16 机器,安装了 virtualbox 和 Vagrant,并vagrant up按照说明输入:

$ vagrant up
VirtualBox is complaining that the installation is incomplete. Please
run `VBoxManage --version` to see the error message which should contain
instructions on how to fix this error.
ubuntu@ip-172-31-26-135:~/vagrant_config$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'bento/ubuntu-16.04'
    default: URL: https://vagrantcloud.com/bento/ubuntu-16.04
==> default: Adding box 'bento/ubuntu-16.04' (v2.3.8) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/bento/boxes/ubuntu-16.04/versions/2.3.8/providers/virtualbox.box
==> default: Successfully added box 'bento/ubuntu-16.04' (v2.3.8) for 'virtualbox'!
==> default: Importing base box 'bento/ubuntu-16.04'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Setting the name of the VM: vagrant_config_default_1502307080428_76965
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (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

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.

我试过什么

  • 重启 AWS 虚拟机
  • 检查磁盘已满/高内存/高 CPU 使用率(一无所获)
  • 移除 vagrant box 并重新安装
  • 重新配置

我的问题

如何在 Ubuntu 16 EC2 机器上使用 Vagrant 处理 ssh 超时?

4

1 回答 1

0

有点不相关,但 Nomad 不需要 Vagrant。您可以在任何机器上运行 nomad,只需下载二进制文件 ( https://www.nomadproject.io/downloads.html ) 并运行它。

于 2017-08-14T15:52:25.750 回答