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
vagrant windows-subsystem-for-linux vagrant-windows


source to share


No one has answered this question yet

Check out similar questions:

1727
Should I use Vagrant or Docker to create an isolated environment?
411
Retry connection timeout
21
Vagrant setup error with VirtualBox in PyCharm under OS X 10.10
2
How to get port forwarding to work with gatsby and vagrancy or virtualboxes
2
Vagrant: port forwarding not working (iptables service provided by salt won't start)
1
Can't create vagrant machine on Windows 7 computer
0
Can I use an absolute path from windows for an application installed on WSL ubuntu?
0
Vagrant on Windows 7: check your certificate settings
0
cannot access apache from local machine even though it is running on vagrant
0
django + vagrant + runningerver



All Articles
Loading...
X
Show
Funny
Dev
Pics