Windows 使用vagrant up时如何设置不同的磁盘?

Windows 使用vagrant up时如何设置不同的磁盘?,windows,vagrant,Windows,Vagrant,我正在Windows7上使用Vagrant 在我运行了Wagrant up之后,我向我展示了: Progress state: VBOX_E_FILE_ERROR VBoxManage.exe: error: Appliance import failed VBoxManage.exe: error: Could not create the clone medium 'L:\VirtualBox VMs\ubun tu-cloudimg-trusty-vagrant-amd64\box-dis

我正在Windows7上使用Vagrant

在我运行了Wagrant up之后,我向我展示了:

Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Could not create the clone medium 'L:\VirtualBox VMs\ubun
tu-cloudimg-trusty-vagrant-amd64\box-disk1.vmdk'.
VBoxManage.exe: error: VMDK: could not create new grain directory in 'L:\Virtual
Box VMs\ubuntu-cloudimg-trusty-vagrant-amd64/box-disk1.vmdk' (VERR_DISK_FULL).
VBoxManage.exe: error: VMDK: error writing descriptor in 'L:\VirtualBox VMs\ubun
tu-cloudimg-trusty-vagrant-amd64\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

可能是因为我的L盘已满。那么如何设置其他磁盘呢?

看起来确实有一些驱动器问题,可能是磁盘空间问题,也可能是用户权限问题

在您的例子中,错误来自VBoxManage,因此当Vagrant将其框导入VirtualBox时,会发生错误

要更改VirtualBox虚拟机的位置,您需要在VirtualBox属性(“默认机器文件夹”)中进行设置


有关更多信息

它看起来确实像是一些驱动器问题,可能是磁盘空间问题,也可能是用户权限问题

在您的例子中,错误来自VBoxManage,因此当Vagrant将其框导入VirtualBox时,会发生错误

要更改VirtualBox虚拟机的位置,您需要在VirtualBox属性(“默认机器文件夹”)中进行设置


欲了解更多信息,请将流浪汉设置为家。VirtualBox中的属性“machinefolder”必须通过“VBoxManage setproperty machinefolder”设置。

您需要将VAGRANT\u设置为HOME。VirtualBox中的属性“machinefolder”必须通过“VBoxManage setproperty machinefolder”进行设置

非常感谢。这就是原因。我换了另一张磁盘,一切正常:)非常感谢。这就是原因。我换了另一张磁盘,一切正常:)