I'm using Ruby 2.1.1 and Vagrant 1.6.1 on Ubuntu 12.04. Running:

vagrant box add chef/centos-6.5

I keep getting:

==> 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.

I did a wget -c [download URL] a few times to continue the download manually. Now I'm not sure how to tell vagrant to use the completed virtualbox.box image instead of trying a new download. Putting it in place in .vagrant.d/boxes/vagrantcloud.com/chef/centos-6.5/version/1/provider didn't do the trick.

有帮助吗?

解决方案

If you've already manually downloaded the box centos-6.5, you can tell vagrant to use the local box instead of downloading from a URL.

Do

vagrant box add centos-6.5 /path/to/opscode_centos-6.5_chef-provisionerless.box

and start from there.

其他提示

You must first run:

vagrant init chef/centos-6.5

https://vagrantcloud.com/chef/centos-6.5

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top