Command “vagrant up” in WSL is failed.
I got an error message like below.
~/Sites/example.com/trellis$ vagrant up
Installing plugin vagrant-bindfs
Vagrant failed to initialize at a very early stage:
There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.
Path: //wsl$/Ubuntu-18.04/home/devdmoji/Sites/example.com/trellis/Vagrantfile
Line number: 0
Message: Errno::ELOOP: Cannot translate name. @ rb_sysopen - /etc/resolv.conf
Vagrant docs say: Vagrant must be installed within the Linux distribution used with WSL. While the vagrant.exe executable provided by the Vagrant Windows installation is accessible from within the WSL, it will not function as expected.
If you follow the Vagrant docs, the “Cannot translate name. @ rb_sysopen” goes away. That being said, I couldn’t get it working under WSL. Manyotherproblemshappened.
If you checkout the latest commits from the github master branch, and install from DOS as admin, It works. Specifically, this commit: