2

注意 - 这个问题也发布在https://groups.google.com/forum/#!topic/vagrant-up/aZOs1YXmvhI

设置

C:\Users\Kevin>vagrant -v
Vagrant 1.4.3

C:\Users\Kevin>VBoxManage -version # VirtualBox version
4.3.10r93012

C:\Users\Kevin>vagrant plugin list
vagrant-berkshelf (2.0.0)
vagrant-omnibus (1.3.1)
vagrant-vbguest (0.10.0)

C:\Users\Kevin>ruby -v
ruby 1.9.3p484 (2013-11-22) [i386-mingw32]

编辑我刚刚安装并更新了我的 %PATH% 以使用 ruby​​ 2.0,但仍然有同样的问题。

Windows 7PC 上,我使用Vagrant 1.3.5with VirtualBox 4.3.8,但升级到上述版本以尝试修复共享目录问题 - https://groups.google.com/forum/#!topic/vagrant-up/eC72_YXdtYE

无论如何,在升级到第一个列出的版本后,我使用“删除/删除所有文件”使用 VirtualBox 销毁了我的 VM。然后我尝试使用以下命令启动 VM,但未成功vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
C:/Users/Kevin/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0/lib/berkshelf/vagrant/env.rb:16:in `initialize': undefined method `opts' for #<Vagrant::
UI::Colored:0x565e7c8> (NoMethodError)
        from C:/Users/Kevin/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0/lib/berkshelf/vagrant/action.rb:57:in `new'
        from C:/Users/Kevin/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0/lib/berkshelf/vagrant/action.rb:57:in `block in setup'
        from C:/Users/Kevin/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0/lib/berkshelf/vagrant/action.rb:56:in `tap'
        from C:/Users/Kevin/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0/lib/berkshelf/vagrant/action.rb:56:in `setup'
        from C:/Users/Kevin/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0/lib/berkshelf/vagrant/plugin.rb:15:in `provision'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:45:in `call'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:45:in `block (2 levels) in run'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:44:in `tap'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:44:in `block in run'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:43:in `map'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:43:in `run'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/machine.rb:147:in `action'
        from C:/HashiCorp/Vagrant_1.4.3/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

如何调试此错误?

4

1 回答 1

4

您可以安装适用于 Vagrant 1.4.3 的 Vagrant-Berkshelf 版本

vagrant plugin uninstall vagrant-berkshelf vagrant plugin install vagrant-berkshelf --plugin-version 1.3.7

于 2014-04-24T06:12:30.863 回答