Skip to content

Instantly share code, notes, and snippets.

@strarsis
Created Mar 16, 2018
Embed
What would you like to do?
Vagrant on WSL (Bash on Windows)
# Vagrant
export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
export PATH=$PATH:/mnt/c/Program\ Files/Oracle/VirtualBox
export VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH="/mnt/c/Users/<Windows Username>"
  1. Install Vagrant for (normal) Windows (https://www.vagrantup.com/downloads.html)
  2. Download Vagrant for Ubuntu (.deb package) (https://www.vagrantup.com/downloads.html) and install it inside WSL (Bash on Windows) ((sudo) dpkg -i vagrant_<version>_x86_64.deb).
  3. Add additional code to ~/.bashrc in WSL (Bash on Windows) (see file below).
  4. Reload ~/.bashrc / restart shell.

Done, Vagrant should work correctly in WSL (Bash on Windows) now.

@strarsis
Copy link
Author

strarsis commented Mar 16, 2018

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