我安装了Vagrant,一旦我从终端进入项目文件夹,我就会发出以下命令:
vagrant box add hashicorp/precise32 http://files.vagrantup.com/precise32.box
输出:
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: files.vagrantup.com/precise32.box
[vagrant] Downloading box: hashicorp-files.vagrantup.com/precise32.box
[vagrant] Extracting box...
[vagrant] Verifying box...
[vagrant] Cleaning up downloaded box...
vagrant init hashicorp/precise32
输出:A Vagrantfile has been placed in this directory
vagrant up
我收到错误消息:
The box 'hashicorp/precise32' could not be found
答案 0 :(得分:3)
您需要做的就是编辑流浪文件并定义像这样的vm.box_url和vm.box选项。
config.vm.box_url =" http://files.vagrantup.com/precise32.box"
config.vm.box =" exact32"
然后运行" 流浪汉"
答案 1 :(得分:1)