我想给我的盒子多一些磁盘空间。我试图通过vagrantfile要做到这一点,如下所示:调整流浪盒上的磁盘空间
Vagrant::Config.run do |config|
# ..
config.vm.customize ["modifyvm", :id, "--memory", 1024]
config.vm.customize ["modifyhd", :id, "--resize", 4096]
end
这给我的错误:
A customization command failed:
["modifyhd", "e87d8786-88be-4805-9c2a-45e88b8e0e56", "--resize", "4096"]
The following error was experienced:
VBoxManage: error: The given path 'e87d8786-88be-4805-9c2a-45e88b8e0e56' is not fully qualified
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
Please fix this customization and try again.
我试图从http://docs.vagrantup.com/v1/docs/config/vm/customize.html http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi
这个问题似乎是题外话,因为它不是关于编程。 – Filburt 2014-07-29 20:38:55
我认为它是关于主题的,因为定制脚本是用Ruby编写的程序,并且与设置本质上是编程主题的开发环境有关。但 - 随意放置这个问题,无论你喜欢:) – schellsan 2014-07-31 19:55:29