Hi Everyone,
I am trying to get Trellis up and running on a windows machine. Work makes me use a PC instead of Mac which I hate but what can you do. I have followed the guide but still running into a few issues.
- Setup WSL2 and Ubuntu 22.04
- Installed Python3, HomeBrew, trellis-cli, vagrant, virtualbox
a. Vagrant - Ubuntu and Windows (2.3.4)
b. VirtualBox - Ubuntu and Windows (7.0) - From Ubuntu - /home/user/projects/ trellis new opco.com - Everything worked as expected
trellis up
Output Below
Starting galaxy role install process
- composer (1.9.0) is already installed, skipping.
- ntp (2.3.1) is already installed, skipping.
- logrotate (v0.0.5) is already installed, skipping.
- swapfile (v2.0.36) is already installed, skipping.
- mailpit (v1.0.0) is already installed, skipping.
Running command => vagrant up
Installing plugin vagrant-bindfs
Fetching vagrant-bindfs-1.2.0.gem
Installing plugin vagrant-hostmanager
Fetching vagrant-hostmanager-1.8.9.gem
`vagrant up` must be re-run now that plugins are installed
- trellis up - again
Starting galaxy role install process
- composer (1.9.0) is already installed, skipping.
- ntp (2.3.1) is already installed, skipping.
- logrotate (v0.0.5) is already installed, skipping.
- swapfile (v2.0.36) is already installed, skipping.
- mailpit (v1.0.0) is already installed, skipping.
Running command => vagrant up
Vagrant failed to initialize at a very early stage:
Vagrant is unable to use the VirtualBox provider from the Windows Subsystem for
Linux without access to the Windows environment. Enabling this access must be
done with caution and an understanding of the implications. For more information
on enabling Windows access and using VirtualBox from the Windows Subsystem for
Linux, please refer to the Vagrant documentation:
https://www.vagrantup.com/docs/other/wsl.html
exit status 1
- After viewing the link above I ran the following commands
a.export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
b.export PATH="$PATH:/mnt/c/Program Files/Oracle/VirtualBox"
-
trellis up
- again
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The host path of the shared folder is not supported from WSL. Host
path of the shared folder must be located on a file system with
DrvFs type. Host path: /home/summitmaterials/projects/opco.com/site
* The host path of the shared folder is not supported from WSL. Host
path of the shared folder must be located on a file system with
DrvFs type. Host path: /home/summitmaterials/projects/opco.com/trellis
* The host path of the shared folder is not supported from WSL. Host
path of the shared folder must be located on a file system with
DrvFs type. Host path:
-
Cannot make trellis work on Win10 + WSL2 - vagrant up run to an error : `playbook` does not exist on the guest
I read that this issue was supposed to be fixed in the newer version of Vagrant but I am still having the issue. Do I need to downgrade Vagrant in order for this to work?
If you need additional information just let me know.
Thanks in advance