vagrant up 在 Windows 上失败,box_add : undefined

标签 vagrant

我现在已经花了几个小时尝试从我的盒子里 Vagrant ,但没有取得任何成果。它在我的 Mac 和我的两个同事的 Mac 上完美运行,但是当尝试在 Windows 桌面上vagrant up该框时,我收到如下错误:

INFO runner: Running action: #<Vagrant::Action::Builder:0x5583d8>
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_add.rb:358:in `box_add': undefined
method `name' for nil:NilClass (NoMethodError)

完整的错误日志可以在这里找到:https://gist.github.com/anonymous/f227b9fb37aae643d276#file-vagrantuperror

希望大家能帮帮我,谢谢!

最佳答案

确保您在 Vagrantfile 中设置了 boxbox_url,例如:

config.vm.box = "centos65"
config.vm.box_url = "http://www.lyricalsoftware.com/downloads/centos65.box"

这为我解决了这个问题。

关于vagrant up 在 Windows 上失败,box_add : undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24316758/

相关文章:

docker - 将 docker 安装到运行 Ubuntu 12.04 的 VirtualBox VM 中

php - 如何在我的设置是 Windows 10 主机中的 Vagrant Ubuntu 16.06 的 Visual Studio Code 中配置 PHP 可执行文件

ubuntu - 在 Ubuntu 16.04 中升级 Vagrant

ubuntu - XAMPP 安装在 ubuntu 上值得信赖的 vagrant

vagrant up 失败,无法加载 winrm

php - Laravel 宅基地 IP 地址不工作

vagrant - 运行 vagrant : "The host path of the shared folder is missing" 时出错

mysql - 如何修复 MySql : index column size too large (Laravel migrate)

linux - 以下 SSH 命令以非零退出状态响应

git - 如何让 ssh 代理转发在 vm 上使用多个帐户?