How to configure vagrant & VB to custom locations

In order to organize used disk spave it is useful sometimes to specify different location of vagramt configuration files and VB's images.

Below are the chnages needs to perform to do so:

  1. Set environment variables:

VAGRANT_HOME = D:\VM\.vagrant.d

VBOX_MSI_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\

2. Change default location of VM in VirtualBox:

"Default Machine Folder": "D:\VM\VirtualBox VMs"

Now you can use VB and vagrant with new location.