bin/vagrant in vagrant-unbundled-1.9.1.1 vs bin/vagrant in vagrant-unbundled-1.9.5.1
- old
+ new
@@ -115,9 +115,20 @@
# Create the environment, which is the cwd of wherever the
# `vagrant` command was invoked from
logger.debug("Creating Vagrant environment")
env = Vagrant::Environment.new(opts)
+ # If we are running with the Windows Subsystem for Linux do
+ # some extra setup to allow access to Vagrant managed machines
+ # outside the subsystem
+ if Vagrant::Util::Platform.wsl?
+ recreate_env = Vagrant::Util::Platform.wsl_init(env, logger)
+ if recreate_env
+ logger.info("Re-creating Vagrant environment due to WSL modifications.")
+ env = Vagrant::Environment.new(opts)
+ end
+ end
+
if !Vagrant.in_installer? && !Vagrant.very_quiet?
# If we're not in the installer, warn.
#env.ui.warn(I18n.t("vagrant.general.not_in_installer") + "\n", prefix: false)
end