Vagrant box错误消息

时间:2016-05-20 10:08:05

标签: vagrant box

尝试在我的mac系统上下载Vagrant框,这是我得到的消息。

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bahmni-team/bahmni' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'bahmni-team/bahmni'
    default: URL: https://atlas.hashicorp.com/bahmni-team/bahmni
==> default: Adding box 'bahmni-team/bahmni' (v0.80) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/bahmni-team/boxes/bahmni/versions/0.80/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

transfer closed with 963850334 bytes remaining to read

我该如何解决这个问题?

成功安装Vagrant框后,出现此错误

default: Importing base box 'bahmni-team/bahmni'...
Progress: 10%There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "/Users/Paul/.vagrant.d/boxes/bahmni-team-VAGRANTSLASH-bahmni/0.80/virtualbox/box.ovf", "--vsys", "0", "--vmname", "packer-virtualbox-iso-1459089960_1463772163009_23494", "--vsys", "0", "--unit", "7", "--disk", "/Users/Paul/VirtualBox VMs/packer-virtualbox-iso-1459089960_1463772163009_23494/packer-virtualbox-iso-1459089960-disk1.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/Paul/.vagrant.d/boxes/bahmni-team-VAGRANTSLASH-bahmni/0.80/virtualbox/box.ovf...
OK.
0%...10%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the imported medium '/Users/Paul/VirtualBox VMs/packer-virtualbox-iso-1459089960_1463772163009_23494/packer-virtualbox-iso-1459089960-disk1.vmdk'.
VBoxManage: error: VMDK: cannot write allocated data block in '/Users/Paul/VirtualBox VMs/packer-virtualbox-iso-1459089960_1463772163009_23494/packer-virtualbox-iso-1459089960-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component ApplianceWrap, interface IAppliance
VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 877 of file VBoxManageAppliance.cpp

2 个答案:

答案 0 :(得分:1)

我认为错误“VERR_DISK_FULL”是您应该关注的错误。您的磁盘可能已满。因此,解决方案是释放磁盘上的一些空间并再次尝试命令。

答案 1 :(得分:0)

Vagrant在内部使用curl并且卷曲存在问题。

您可以尝试使用网址上的wget,因为它通常比curl

更好
wget https://atlas.hashicorp.com/bahmni-team/boxes/bahmni/versions/0.80/providers/virtualbox.box

一旦你有了盒子文件,你仍然需要添加到vagrant(vagrant box add bahmni-team/bahmni <path to box file>