Roots Discourse

Command, "vagrant up" in WSL is failed

Command “vagrant up” in WSL is failed.
I got an error message like below.

~/Sites/$ 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/
Line number: 0
Message: Errno::ELOOP: Cannot translate name. @ rb_sysopen - /etc/resolv.conf

I’ve followed Windows Development Environment Trellis and Local Development Setup.
But I stuck at “vargrant up” command.

What should I have to do solve this problem?

See this (closed) issue.

Short version:

Roots doc say: alias vagrant in WSL to vagrant.exe

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. Many other problems happened.

If you checkout the latest commits from the github master branch, and install from DOS as admin, It works. Specifically, this commit:

Thanks for reply.
But I couldn’t get it.
I finally choose to use PhpStorm IDE with Roots’ products.