gpt4 book ai didi

console - Vagrant 向上 "error while executing VBoxManage"

转载 作者:行者123 更新时间:2023-12-02 03:33:45 27 4
gpt4 key购买 nike

我在尝试初始化 Vagrant 时遇到了问题。安装了一个带有 Vagrantfile 的文件夹,并安装了 VirtualBox 和 Vagrant。使用 hashicorp/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 但这没有帮助。有任何想法吗?

最佳答案

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

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


F:\Maquinas Virtuales\VagrantDemo_default_1456853777482_45208

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

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

关于console - Vagrant 向上 "error while executing VBoxManage",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24988503/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com