【问题标题】:Vagrant up "error while executing VBoxManage"Vagrant up “执行 VBoxManage 时出错”
【发布时间】:2016-03-02 03:51:34
【问题描述】:

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

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,但这没有帮助。有什么想法吗?

【问题讨论】:

  • 您的压缩图像已损坏。尝试重新创建它。

标签: console vagrant virtualbox


【解决方案1】:

我修复了这个错误 (VERR_ZIP_CORRUPTED),删除了旧文件夹

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

F:\Maquinas Virtuales\VagrantDemo_default_1456853777482_45208

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

然后关闭所有消耗端口的应用程序,例如 Dropbox、Skype、torrent、防火墙、 然后我又运行了 2 次(每次都删除旧文件夹),它运行良好。

【讨论】:

    猜你喜欢
    • 2018-03-11
    • 1970-01-01
    • 1970-01-01
    • 2023-04-11
    • 2016-09-04
    • 2016-07-06
    • 1970-01-01
    • 1970-01-01
    • 2014-07-15
    相关资源
    最近更新 更多