首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vagrant up“执行VBoxManage时出错”

Vagrant up“执行VBoxManage时出错”
EN

Stack Overflow用户
提问于 2014-07-28 12:37:13
回答 1查看 1.9K关注 0票数 4

我在尝试初始化Vagrant时遇到了一个问题。我设置了一个文件夹,里面有一个Vagrantfile以及VirtualBox和Vagrant的安装。使用hashicorp/recise32框,我在控制台中运行vagrant时得到以下错误:

代码语言:javascript
复制
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,但这并没有帮助。有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2016-03-02 01:53:22

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

代码语言:javascript
复制
C:\Users\admin\.vagrant.d\boxes\ubuntu-VAGRANTSLASH-trusty64

代码语言:javascript
复制
F:\Maquinas Virtuales\VagrantDemo_default_1456853777482_45208

..。( virtualbox尝试创建虚拟机的位置)

然后关闭所有消耗端口的应用程序,如Dropbox,Skype,torrent,防火墙,然后我再运行两次(每次删除旧文件夹),它工作得很好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24988503

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档