我有一个令人沮丧的问题。我想从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
我创建的环境变量如下:
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
此链接提供vagrant up --debug
:https://pastebin.com/MT40DLHT
有谁知道我做错了什么?