Resizing disk space on vagrant box

vagrant, virtualbox

Solution

You are sending modifyhd the UUID of the VM (provided by vagrant) while it expects the UUID of the VDI. You will need to use the absolute path to the actual VDI file or its UUID. You can use the following command to get the UUID of the VDI: `VBoxManage showhdinfo <filename>` (see virtualbox - how to check what is the uuid of a vdi?)

Problem

I'd like to give my box some more disk space. I'm trying to do this through the vagrantfile as follows: ``` Vagrant::Config.run do |config| # .. config.vm.customize ["modifyvm", :id, "--memory", 1024] config.vm.customize ["modifyhd", :id, "--resize", 4096] end ``` This gives me the error: ``` 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. ``` I'm trying to piece the information together from http://docs.vagrantup.com/v1/docs/config/vm/customize.html http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi

Original source