Forked from michaelklapper/virtualbox_vagrant_home.bat
Last active
December 21, 2015 10:47
-
-
Save bonsi/23745290fed9a98b534f to your computer and use it in GitHub Desktop.
Reconfigure VirtualBox and Vagrant home directory for Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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