从vagrantcloud中断下载
我在Ubuntu 12.04上使用Ruby 2.1.1和Vagrant 1.6.1。运行:从vagrantcloud中断下载,vagrant,Vagrant,我在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 t
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[下载URL]。现在我不知道如何告诉vagrant使用完整的virtualbox.box图像,而不是尝试新的下载。将其放置在.vagrant.d/box/vagrantcloud.com/chef/centos-6.5/version/1/provider中并没有起到作用。如果您已经手动下载了该框,您可以告诉vagrant使用本地框,而不是从URL下载 做
vagrant box添加centos-6.5/path/to/opscode_centos-6.5_chef-provisionerless.box
然后从那里开始。您必须首先运行:
vagrant init chef/centos-6.5