vagrant 专用网络无法在 windows 10 主机上解析

vagrant private network fails to resolve on windows 10 host

我什么都做不了。我有 windows 10 作为我的主机,我的来宾虚拟机是 centos/7 框。它与 forwarded_ports 一起工作很好,但使用 private_network 设置没有解决。我不确定要做什么或检查

vagrant 文件看起来像

Vagrant.configure("2") do |config|
  config.vm.box = "bento/centos-7.4"
  config.vm.synced_folder "./website", "/var/www/html/", :mount_options => ["dmode=777", "fmode=777"], owner: "apache", group: "apache"
  config.vm.network "private_network", ip: "192.168.50.4"
  ## Bootstrap script to provision box.  All installation methods can go here. 
  config.vm.provision "shell" do |s|
    s.path = "bootstrap.sh"
  end
end

来宾上的 ifconfig 看起来像

我的 virtualbox 显示两个适配器

当我浏览到 windows 上的 IP 时,我什么也没得到

其实跟vagrant一​​点关系都没有。一切都设置正确,但我的 magento 网站出现了一个奇怪的错误。感谢 Frederic 抽出宝贵时间!