Vagrant没有显示正确的错误消息

时间:2015-05-25 14:25:21

标签: vagrant

在以下命令运行失败后没有正确的错误消息:

$ vagrant init hashicorp/precise32
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'hashicorp/precise32'
default: URL: https://atlas.hashicorp.com/hashicorp/precise32
==> default: Adding box 'hashicorp/precise32' (v1.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Failed writing body (1576 != 7240)

1 个答案:

答案 0 :(得分:6)

默认情况下,vagrant下载主目录(〜/ .vagrant.d)中的框(图像)。如果主页没有足够的空间存储下载的内容,则会出现此错误。

要修复:将默认设置设置为具有足够空间的其他文件系统

export VAGRANT_HOME=/data/vagrant/