我在Ubuntu 12.04上使用Ruby 2.1.1和Vagrant 1.6.1。运行:
vagrant box add chef/centos-6.5
我一直在:
==> box: Box download was interrupted. Exiting.
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):
x Vagrantfile
x box.ovf
x metadata.json
x packer-centos-6.5-x86_64-disk1.vmdk: truncated gzip input
bsdtar: Error exit delayed from previous errors.
我做了几次wget -c [下载网址]以手动继续下载。现在我不知道如何告诉vagrant使用已完成的virtualbox.box映像而不是尝试新的下载。将它放在.vagrant.d / boxes / vagrantcloud.com / chef / centos-6.5 / version / 1 / provider中并没有成功。
答案 0 :(得分:4)
如果您已经手动下载了centos-6.5框,则可以告诉vagrant使用本地框而不是从URL下载。
待办事项
vagrant box add centos-6.5 /path/to/opscode_centos-6.5_chef-provisionerless.box
从那里开始。
答案 1 :(得分:0)