Skip to content

Instantly share code, notes, and snippets.

@itsananderson
Last active December 14, 2015 05:59
Show Gist options
  • Save itsananderson/5038982 to your computer and use it in GitHub Desktop.
Save itsananderson/5038982 to your computer and use it in GitHub Desktop.
Issues setting up Vagrant on Windows

To get the setup scripts to work, you'll need to configure Git to check out line-endings "as-is", rather than converting to Windows style CRLF endings. Vagrant seems to choke pretty hard on the Windows style line-endings. You can specify this option when you install git, but if you've already installed it, run the following command from inside a Git Bash before you clone the GitHub repo

git config --global core.autocrlf input

Vagrant doesn't support vagrant ssh inside windows. You can use the following command from inside a "Git Bash" to connect to the VM:

ssh -i ~/.vagrant.d/insecure_private_key -p 2222 [email protected]

You can create a shortcut for this command by running the following:

echo "alias vagrant-ssh='ssh -i ~/.vagrant.d/insecure_private_key -p 2222 [email protected]'" >> ~/.bashrc

Restart your Git Bash, then run vagrant-ssh to connect to your VM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment