Vagrant Up 不运行进度状态:E_INVALIDARG VBoxManage.exe:错误:设备导入失败



这是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/u256Cu044Bu0445u0443/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:HashiCorpboxeshashicorp-VAGRANTSLASH-bionic641.0.282virtualboxbox.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

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

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

就我而言,VirtualBox的默认机器文件夹仍然指向不再连接的外部硬盘驱动器。通过 VBox 手动导入 Vagrant 下载的 .ovf 文件File -> Import Virtual Appliance引导我找到上述解决方案。流浪汉在引擎盖下做同样的事情。

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

  1. 我的 C 盘没有足够的内存让流浪者调出虚拟盒子。清除了流浪汉的记忆。一切都运行良好,没有任何问题。
  1. 在驱动器C中释放足够的空间:

  2. 确保它C:\HashiCorp\boxes\hashicorp-VAGRANTSLASH-bionic64\1.0.282

    最新的

我遇到了同样的问题。我按照说明将默认计算机文件夹更改为与为VAGRANT_HOME的环境变量设置的路径相同的路径

打开虚拟盒子 转到"文件"-">首选项" 在常规选项卡中,将默认计算机文件夹路径更改为现有路径。 再次流浪

您可以在下面检查PATH,如果有空白或特殊字符,请进行更改。

  1. 流浪者安装路径
  2. 虚拟盒子安装路径
  3. $VAGRANT_主页路径
  4. 虚拟框默认虚拟机位置路径

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

最新更新