Vagrant wsl cant access virtualbox

Viewed 4307

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?

0 Answers
Related