【问题标题】:vagrant up doesn`t running Progress state: E_INVALIDARG VBoxManage.exe: error: Appliance import failedvagrant up 没有运行进度状态:E_INVALIDARG VBoxManage.exe:错误:设备导入失败
【发布时间】:2020-03-23 06:56:37
【问题描述】:

这里是cmd错误,我不明白错误在哪里,我一次又一次地碰到它,无法解决。

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Preparing master VM for linked clones...
    default: This is a one time operation. Once the master VM is prepared,
    default: it will be used as a base for linked clones, making the creation
    default: of new VMs take milliseconds on a modern system.
==> default: Importing base box 'hashicorp/bionic64'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "\\\\?\\C:\\HashiCorp\\boxes\\hashicorp-VAGRANTSLASH-bionic64\\1.0.282\\virtualbox\\box.ovf", "--vsys", "0", "--vmname", "ubuntu-18.04-amd64_1574870798285_57998", "--vsys", "0", "--unit", "11", "--disk", "C:/Users/\u256C\u044B\u0445\u0443/VirtualBox VMs/ubuntu-18.04-amd64_1574870798285_57998/ubuntu-18.04-amd64-disk001.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting \\?\C:\HashiCorp\boxes\hashicorp-VAGRANTSLASH-bionic64\1.0.282\virtualbox\box.ovf...
OK.
0%...
Progress state: E_INVALIDARG
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not available)
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp

【问题讨论】:

    标签: vagrant


    【解决方案1】:

    我遇到了同样的问题,并通过更改 VirtualBox 的基本 VM 文件夹解决了它:

    1. 打开 VirtualBox
    2. 转到File -> Preferences
    3. 在“常规”选项卡中,将默认计算机文件夹路径更改为现有路径。
    4. 再次运行vagrant up

    在我的情况下,VirtualBox 的默认机器文件夹仍然指向我不再连接的外部硬盘驱动器。通过File -> Import Virtual Appliance 在VBox 中手动导入Vagrant 下载的.ovf 文件将我引导至上述解决方案。 Vagrant 在后台做同样的事情。

    【讨论】:

    • 我所需要的只是将默认机器文件夹更改为您想要的任何内容,强制性的只是将其从默认更改
    【解决方案2】:

    我遇到了同样的问题,并且跌跌撞撞了几个小时。最后,它从以下步骤开始工作。

    1. 我的 C 盘没有足够的内存让 Vagrant 调出 Virtual box。清除了流浪者的记忆。一切顺利,没有任何问题。

    【讨论】:

    • 节省了我的时间,谢谢!
    【解决方案3】:
    1. 在驱动器 C 中释放足够的空间:

    2. 确保 C:\\HashiCorp\\boxes\\hashicorp-VAGRANTSLASH-bionic64\\1.0.282 是最新的

    【讨论】:

      【解决方案4】:

      你可以检查下面的PATH,如果有空白或特殊字符,请更改它。

      1. Vagrant 安装路径
      2. VirtualBox 安装路径
      3. $VAGRANT_HOME 路径
      4. VirtualBox 默认虚拟机位置 PATH

      另外,释放足够的空间 $VAGRANT_HOME 和 VirtualBox 默认虚拟机位置

      【讨论】:

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