Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从vagrantcloud中断下载_Vagrant - Fatal编程技术网

从vagrantcloud中断下载

从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

我在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[下载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