流浪返回错误

时间:2018-08-20 20:59:45

标签: virtualbox vagrant-windows

操作系统

Windows 10 Home 64位

版本

流浪汉2.1.2

VirtualBox 5.2.18 r124319

问题

我正在尝试在Windows 10工作站上设置Vagrant环境,以便可以在其上开发现有的Ruby on Rails项目。 Git,Vagrant和VirtualBox安装成功。该项目已被克隆到工作目录中,项目负责人将Vagrantfile包含在项目中。

我打开Powershell并导航到工作目录。我运行vagrant up。 Vagrant似乎尝试安装vagrant-vbguest插件四次,并引发错误。

C:/HashiCorp/Vagrant/embedded/gems/2.1.2/gems/vagrant-2.1.2/bin/vagrant:47:in `[]=': Invalid argument - ruby_setenv(VAGRANT_NO_PLUGINS) (Errno::EINVAL)
from C:/HashiCorp/Vagrant/embedded/gems/2.1.2/gems/vagrant-2.1.2/bin/vagrant:47:in `block in <main>'
from C:/HashiCorp/Vagrant/embedded/gems/2.1.2/gems/vagrant-2.1.2/bin/vagrant:36:in `each_index'
from C:/HashiCorp/Vagrant/embedded/gems/2.1.2/gems/vagrant-2.1.2/bin/vagrant:36:in `<main>'

Vagrantfile https://gist.github.com/Tanoro/05cae2eba90cffcb6c12e923012f812a

屏幕截图 https://imgur.com/a/ZXg1Ale

调试输出 https://gist.github.com/Tanoro/e0b97ff114ee80faad5a8b65f6edadd7

已尝试解决的问题

  1. https://github.com/hashicorp/vagrant/pull/8127
  2. https://github.com/hashicorp/vagrant/issues/9577#issuecomment-408621009

1 个答案:

答案 0 :(得分:0)

关于这个问题,我在Github上得到了回复。 https://github.com/hashicorp/vagrant/issues/10134

我打开了bin/vagrant文件,并按照此处的指示在第47行插入了vagrantfile_name选项。 https://github.com/hashicorp/vagrant/pull/10030/commits/9321f3cb6cbac452e0b7c3a9d1f9731446c60f75

我浏览了项目目录的外部,并手动安装了所需的插件:vagrant-vbguest。它安装成功。我导航回到项目目录,然后再次尝试vagrant up,成功了。

有人告诉我,这种现象将在Vagrant的下一个版本中得到解决。

相关问题