!['Vagrant up 无法按预期工作,代码 E_INVALIDARG (0x80070057)](https://linux22.com/image/1604777/'Vagrant%20up%20%E6%97%A0%E6%B3%95%E6%8C%89%E9%A2%84%E6%9C%9F%E5%B7%A5%E4%BD%9C%EF%BC%8C%E4%BB%A3%E7%A0%81%20E_INVALIDARG%20(0x80070057).png)
PS C:\desktop\laravel-les1> vagrant up
Bringing machine 'laravel-les1' up with 'virtualbox' provider...
==> laravel-les1: Importing base box 'laravel/homestead'...
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:\\Users\\Aqsa Intizar\\.vagrant.d\\boxes\\laravel-VAGRANTSLASH-homestead\\8.1.0\\virtualbox\\box.ovf", "--vsys", "0", "--vmname", "ubuntu-18.04-amd64_1569415942892_47656", "--vsys", "0", "--unit", "11", "--disk", "C:/Users/Aqsa Intizar/VirtualBox VMs/ubuntu-18.04-amd64_1569415942892_47656/ubuntu-18.04-amd64-disk001.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting \\?\C:\Users\Aqsa Intizar\.vagrant.d\boxes\laravel-VAGRANTSLASH-homestead\8.1.0\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
答案1
请检查此路径下指定的文件是否存在:
C:\Users\Aqsa Intizar\.vagrant.d\boxes\laravel-VAGRANTSLASH-homestead\8.1.0\virtualbox\box.ovf
如果该文件确实存在,您可以尝试以下操作:打开 VirtualBox GUI 并确保没有基于您的盒子的现有 VM,如果有,请删除它们,然后尝试vagrant up
。
答案2
答案3
1-检查您的驱动器 c: 中是否有足够的空间
2-确保您的 C:\Users\Aqsa Intizar.vagrant.d\boxes\laravel-VAGRANTSLASH-homestead\8.1.0\virtualbox\box.ovf 是最新的