Vagrant ssh'警告:远程连接断开连接。在Windows 7 Enterprise上使用Drupal VM

时间:2017-03-06 13:39:51

标签: windows drupal vagrant virtualbox

我有一台工作笔记本电脑(Windows 7企业版),我似乎无法使用Vagrant Up。 我正在用www.drupalvm.com对此进行测试,以便我知道我有一些应该“有用”的东西。

安装的:

  • Oracle VM Virtual Box Manager 5.0.20(一位同事建议在较新版本中出现错误后降级)。
  • VMware工作站12播放器
  • CYGWIN_NT-6.1 2.7.0

在 Vagrant 1.9.2 with vagrant-vbguest:

流浪汉

 vagrant up
Bringing machine 'drupalvm' up with 'virtualbox' provider...
==> drupalvm: Box 'geerlingguy/ubuntu1604' could not be found. Attempting to fin                             d and install...
    drupalvm: Box Provider: virtualbox
    drupalvm: Box Version: >= 0
==> drupalvm: Loading metadata for box 'geerlingguy/ubuntu1604'
    drupalvm: URL: https://atlas.hashicorp.com/geerlingguy/ubuntu1604
==> drupalvm: Adding box 'geerlingguy/ubuntu1604' (v1.0.9) for provider: virtual                             box
    drupalvm: Downloading: https://atlas.hashicorp.com/geerlingguy/boxes/ubuntu1                             604/versions/1.0.9/providers/virtualbox.box
    drupalvm:
==> drupalvm: Successfully added box 'geerlingguy/ubuntu1604' (v1.0.9) for 'virt                             ualbox'!
==> drupalvm: Importing base box 'geerlingguy/ubuntu1604'...
==> drupalvm: Matching MAC address for NAT networking...
==> drupalvm: Checking if box 'geerlingguy/ubuntu1604' is up to date...
==> drupalvm: Setting the name of the VM: drupalvm.dev
==> drupalvm: Clearing any previously set network interfaces...
==> drupalvm: Preparing network interfaces based on configuration...
    drupalvm: Adapter 1: nat
    drupalvm: Adapter 2: hostonly
==> drupalvm: Forwarding ports...
    drupalvm: 22 (guest) => 2222 (host) (adapter 1)
==> drupalvm: Running 'pre-boot' VM customizations...
==> drupalvm: Booting VM...
==> drupalvm: Waiting for machine to boot. This may take a few minutes...
    drupalvm: SSH address: 127.0.0.1:2222
    drupalvm: SSH username: vagrant
    drupalvm: SSH auth method: private key
    drupalvm: Warning: Remote connection disconnect. Retrying...
# Repeated for a couple minutes, etc..
 drupalvm: Warning: Remote connection disconnect. 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.

Vagrant up --debug http://dropcanvas.com/18edq/1

VT-X肯定已启用,我使用英特尔处理器识别实用程序进行了检查。

我也降级了1.8.6的同样错误。

我确定我之前遇到的是另一个错误?我一直在撞墙挡住我的头。

我使用虚拟框在启动时查看GUI,错误消息开始覆盖自身,但看起来像这样: enter image description here

1 个答案:

答案 0 :(得分:0)

好的,如下所述,我必须标记设置>网络˅高级> 'Cable Connected',因为默认情况下该版本的Virtualbox没有打开它。 ?!?!

https://www.virtualbox.org/ticket/15705

https://stackoverflow.com/a/40397387/705790