Vagrant using Trellis on Windows 10 WSL2

Were you able to get everything working?

I have been doing the same thing on NTFS. Not sure why I installed NTFS instead of exfat but I know it has some issues playing nicely with WSL but the necessary actions below are necessary for windows on any filesystem.

In WSL go to your wsl.conf file in the root etc folder. Add the line below to your profile

[automount]
options = “metadata,umask=22,fmask=11”

Since you are mounting things in a directory outside of WSL you will also need to specify where WSL will need access on Windows. I put the access directing to my dev folder where I am keeping my projects by using the line below and typing it into the WSL prompt.

export VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH=“/mnt/c/dev”

“/mnt/c/dev”, is the root folder where I keep my projects and that can be changed to what yours is.

Right now I can’t get the server pulled up when I goto to the site in a browser. I think everything is working since I can SSL into the vagrant machine trellis created but I can’t access the actual website. When I go to the local dev site at the ________.test page it refuses to connect. so I am currently stuck there trying to figure out what is going on. It might have something to do with my work firewall or something else but I am currently stumped.