I have a frustrating problem. I want to run Vagrant from within WSL. I followed the guide on Vagrant: https://www.vagrantup.com/docs/other/wsl.html
After following the guide I created a Vagrantfile with the following:
Vagrant.configure(2) do |config|
config.vm.provider "virtualbox" do |vb|
vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
end
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 8000, host: 8001
end
My environment variables that I created are the following:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mnt/c/Windows/System32/:/mnt/c/Program:/mnt/c/Program Files/Oracle/VirtualBox
VAGRANT_WSL_ENABLE_WINDOWS_ACCESS=1
This link provides the output of vagrant up --debug
: https://pastebin.com/MT40DLHT
Does anyone know what I am doing wrong?
VBoxManage --version
from wsl ? it probably won't work, you'd need to fix your PATH (check where VBoxManage program is installed and put this folder in your PATH, not the main VirtualBox directory, there might be a subdirectory but I don't have windows available to check) – Thoreauvagrant.exe
to your PATH variable and it should work – Thoreau