Skip to content

Instantly share code, notes, and snippets.

@bonsi
Forked from michaelklapper/virtualbox_vagrant_home.bat
Last active December 21, 2015 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bonsi/23745290fed9a98b534f to your computer and use it in GitHub Desktop.
Save bonsi/23745290fed9a98b534f to your computer and use it in GitHub Desktop.
Reconfigure VirtualBox and Vagrant home directory for Windows
REM # VirtualBox home directory.
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setproperty machinefolder "X:\VirtualMachines\virtualboxImages"
REM # Vagrant home directory for downloadad boxes.
REM REG ADD HKCU\Environment /v VAGRANT_HOME /t REG_SZ /d "X:\VirtualMachines\VAGRANT_HOME"
REM - this will only set the env var for the current session. Use setx to persist it.
set VAGRANT_HOME=X:\VirtualMachines\VAGRANT_HOME
REM #########################################################################################
vagrant up
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment