在运行 "vagrant up" 命令时出现了 "VBOX_E_FILE_ERROR" 错误。

4
当我尝试运行“vagrant up”命令时,出现以下错误:
使用“virtualbox”提供程序启动虚拟机“default”... ==> default: 导入基础箱“precise32”... 进度:30%执行VBoxManage时出错,这是由Vagrant使用的CLI,用于控制VirtualBox。以下是命令和stderr输出。
命令:
["import", "C:/Users/username/.vagrant.d/boxes/precise32/0/virtualbox/b
ox.ovf", "--vsys", "0", "--vmname", "precise32_1417450998781_63238", "--vsys", "
0", "--unit", "9", "--disk", "X:\\VirtualBox VMs\\precise32_1417450998781_63238\
\box-disk1.vmdk"]

标准错误输出:

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\Users\username\.vagrant.d\boxes\precise32\0\virtualbox\box.ovf..

. OK. 0%...10%...20%...30%... Progress state:

VBOX_E_FILE_ERROR
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Could not create the imported medium 'X:\VirtualBox VMs\p
recise32_1417450998781_63238\box-disk1.vmdk'.
VBoxManage.exe: error: VMDK: cannot write allocated data block in 'X:\VirtualBox
VMs\precise32_1417450998781_63238/box-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component A
ppliance, interface IAppliance
VBoxManage.exe: error: Context: "int __cdecl handleImportAppliance(struct Handle
rArg *)" at line 779 of file VBoxManageAppliance.cpp

我没有使用X驱动器,并且已经在环境变量中设置了“VAGRANT_HOME”变量为主目录,即VAGRANT_HOME及其值为C:\Users\username.vagrant.d

我已经有了“.vagrant”目录和其中的其他目录。

当我运行“vagrant up”命令时,仍然会出现上述错误,请问有什么解决方法。

谢谢。

2个回答

2
错误代码VERR_DISK_FULL意味着您的磁盘已满。
VBoxManage.exe: error: VMDK: cannot write allocated data block in 'X:\VirtualBox
VMs\precise32_1417450998781_63238/box-disk1.vmdk' (VERR_DISK_FULL)

尝试释放一些 C:/ 驱动器上的空间。我不知道最低要求,但我认为您需要有超过1GB的可用空间。


0

我遇到了同样的错误,发现在 .vagrant.d 目录下的 box 目录中缺少 .vmdk 文件。
将文件简单地复制到那里就解决了问题。
顺便提一下,这是在 Debian 机器上使用 laravel/Homestead box。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接