-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant 1.9.5 to 2.0.0 on WSL Creators Update version (4.4.0-43-Microsoft) asking for vagrant.exe #8962
Comments
Discussion on vagrant google groups here: |
vagrant/lib/vagrant/util/platform.rb Lines 446 to 447 in acd8eb6
Does this mean it is actually required to install both Windows and Linux versions of Vagrant? (yes) I'm asking because elsewhere I see people mentioning it should work entirely as standalone in WSL and this comment above, the code and the install guide below seems to suggest the opposite? https://www.vagrantup.com/docs/other/wsl.html#vagrant-installation
I tried installing Vagrant on Windows meanwhile and disk is noisy now so I expect it works.. Seems it does. From the top of the guide:
Vagrant is ambigous here (Windows/Linux). Although the "Installation instructions for each item" mentions the Linux-version. Versions
|
Now try to run an ansible provisioning step in WSL now... does it allow you to run ansible? If you only install windows vagrant, with a windows virtualbox, and then run from wsl, then once it gets to ansible provisioning step for me it complains about not being able to run ansible as a windows host control machine. Ansible has to be run from vagrant on the wsl side which my guess is probably why the code wants it installed in both places. That was my experience anyways. |
@dezza That is only relevant if you have Vagrant installed within the Windows system and within the WSL. If it is installed in both places it will require the same version be in use. |
@chrisroberts please explain. I only ever installed the Windows version after numerous attempts at getting Linux-only to work and it ended up asking for vagrant.exe everytime. I never thought you should have both nor did I have before. When it should be asking for “vagrant” it was asking for “vagrant.exe” that is when only I think I get what you mean - but since it should be possible to run vagrant standalone in WSL this function actually prevents that vagrant/lib/vagrant/util/platform.rb Line 380 in acd8eb6
If there's a a reason behind this please explain. In what case would a user want both Windows and Linux version of Vagrant installed? If you comment out that function it works as expected. |
@chrisroberts So, for windows 10 with WSL, is it required to have both vagrant for linux and vagrant for windows installed now? What is the correct way of running vagrant in windows 10 in WSL and is the documentation updated also? |
@jkeslin-argonne Having the |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
vagrant versions 1.9.5 to 2.0.0 show this behavior
Host operating system
Windows 10 Enterprise 1703 (OS Build 15063.540)
Guest operating system
Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Vagrantfile
Please note, if you are using Homestead or a different Vagrantfile format, we
may be unable to assist with your issue. Try to reproduce the issue using a
vanilla Vagrantfile first.
Debug output
Gist Debug Output
Expected behavior
Actual behavior
Steps to reproduce
References
Are there any other GitHub issues (open or closed) that should be linked here?
For example:
The text was updated successfully, but these errors were encountered: