Vagrant wsl cant access virtualbox
I have a frustrating problem. I want to run Vagrant from WSL. I followed the Vagrant guide: https://www.vagrantup.com/docs/other/wsl.html
After following the tutorial, 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 as follows:
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 vagrant up --debug
: https://pastebin.com/MT40DLHT
Does anyone know what I am doing wrong?
+3
source to share
No one has answered this question yet
Check out similar questions: