尝试使用vagrant安装预配置的虚拟盒。初始化失败

时间:2012-07-24 10:04:47

标签: ruby-on-rails ruby macos virtualbox vagrant

首先,我对此非常陌生,但我正在尝试使用指南跟进安装开源群体资金平台

https://github.com/danielweinmann/catarse/wiki/Pre-Configured-Catarse-Virtual-Box-using-Vagrant-%28Ubuntu-11.10-AMD64%29

我安装了vagrant和virtual box,包括下载图像。

问题是当我尝试使用以下命令初始化它时:

vagrant init Ubuntu_11.10_amd64-Catarse-Master

系统响应以下错误:

Tiagos-MacBook-Pro:catarse_vagrant tiagomartins$ vagrant init Ubuntu_11.10_amd64-Catarse-Master
/Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `initialize': Permission denied - /Users/tiagomartins/catarse_vagrant/Vagrantfile (Errno::EACCES)
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `open'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `open'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/cli.rb:42:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/environment.rb:167:in `cli'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/bin/vagrant:43:in `<top (required)>'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:19:in `load'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:19:in `<main>'

我做错了什么,以及解决问题的最佳方法是什么。

非常感谢!!

蒂亚戈

1 个答案:

答案 0 :(得分:3)

根据错误消息,由于该文件的权限设置,Vagrant无法访问/Users/tiagomartins/catarse_vagrant/Vagrantfile

更改文件或父文件夹的权限(chmod / chown)可以解决问题。