Hello everybody,
so, Im using Windows 10 (version 1709), wsl, vmware workstation and vagrant.
Vagrant is setup on the Windows with the vmware workstation plugin licensed and everything works fine. For example:
----------------------------------------
C:\WINDOWS\system32>vagrant plugin list
vagrant-share (1.1.9, system)
- Version Constraint: > 0
vagrant-vmware-workstation (5.0.4)
- Version Constraint: > 0
----------------------------------------
The default provider is set to vmware_workstation (i.e VAGRANT_DEFAULT_PROVIDER=vmware_workstation).
Now, I want to use vagrant on wsl, so that I can do ansible provisionings. Now the fun stuff begins. I've installed
the debian package as per documentation and then added the env variable, so that vagrant has access to the native Windows System.
I cannot simply invoke vagrant, I need to use sudo everytime, otherwise if I use debug I got the following output (snippet):
----------------------------------------
DEBUG subprocess: Exit status: 0
INFO subprocess: Starting process: ["/mnt/c/HashiCorp/Vagrant/bin/vagrant.exe", "version"]
INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: Vagrant failed to initialize at a very early stage:
Failed to invoke the VMware utility task.
Cause: ERROR: Access is denied.
Please address the issue above and try again. If
----------------------------------------
If I try to start a machine, vagrant complains, that it cannot find a provider, even if I specify per hand one:
----------------------------------------
~/vagrant_test$ sudo vagrant up --provider=vmware_workstation
The provider 'vmware_workstation' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.
----------------------------------------
If I install and license the vmware_workstation provider on wsl, the vagrant
complains that it cannot find a vmware installation (which is actually correct).
Any idea what am I doing wrong? I suppose installing and licensing the vmware_workstation provider
on Windows and not WSL should be sufficient, but this does not work currently.
Thank you in advance.