小编Hai*_*oeg的帖子

流浪的WSL无法访问VirtualBox

我有一个令人沮丧的问题。我想在WSL中运行Vagrant。我遵循了关于Vagrant的指南:https : //www.vagrantup.com/docs/other/wsl.html

遵循指南后,我使用以下内容创建了一个Vagrantfile:

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
Run Code Online (Sandbox Code Playgroud)

我创建的环境变量如下:

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
Run Code Online (Sandbox Code Playgroud)

该链接提供以下内容的输出vagrant up --debughttps : //pastebin.com/MT40DLHT

有人知道我在做什么错吗?

vagrant vagrant-windows windows-subsystem-for-linux

5
推荐指数
0
解决办法
2054
查看次数