执行VBoxManage时出现“错误”

时间:2014-07-28 04:37:13

标签: console vagrant virtualbox

我在尝试初始化Vagrant时遇到了问题。设置了一个文件夹,其中安装了Vagrantfile以及VirtualBox和Vagrant。使用hashicorp / precise32框,我在控制台中运行vagrant时出现此错误:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise32'...
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/staffanestberg/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "precise32_1406521581335_85787", "--vsys", "0", "--unit", "9", "--disk", "/Users/staffanestberg/VirtualBox VMs/precise32_1406521581335_85787/box-disk1.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/staffanestberg/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox/box.ovf...
OK.
0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the imported medium '/Users/staffanestberg/VirtualBox VMs/precise32_1406521581335_85787/box-disk1.vmdk'.
VBoxManage: error: VMDK: Compressed image is corrupted '/Users/staffanestberg/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox/box-disk1.vmdk' (VERR_ZIP_CORRUPTED)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance
VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file VBoxManageAppliance.cpp

OSX 10.9.4和Vagrant 1.6.3。我看到一些关于类似错误的线程,建议重新启动VirtualBox,但这没有帮助。有什么想法吗?

1 个答案:

答案 0 :(得分:1)

我修复此错误(VERR_ZIP_CORRUPTED),删除旧文件夹

C:\Users\admin\.vagrant.d\boxes\ubuntu-VAGRANTSLASH-trusty64

F:\Maquinas Virtuales\VagrantDemo_default_1456853777482_45208

...(虚拟机试图创建虚拟机的地方)

然后关闭所有使用端口的应用程序,如Dropbox,Skype,torrent,防火墙, 然后我再次跑2次(每次删除旧文件夹)并且它完美地运行。