设想
我有一个流浪盒子:
...
config.vm.box = "boxname"
config.vm.hostname = "boxnameVM"
config.vm.network :private_network, ip: "192.168.33.44"
# Configure A Few VirtualBox Settings
config.vm.provider "virtualbox" do |vb|
vb.name = "boxnameVM"
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--ostype", "Debian_64"]
end
...
我在我的主机/etc/hosts
文件上设置了域:
192.168.33.44 website.local
我有一个来自http://modern.ie的 Windows/IE VM
问题
我似乎无法从 Windows/IE VM中访问http://website.local 。
任何人都可以帮忙吗?