Im using virtualbox + ubuntu + vagrant
.
However im not able to ping
or wget
any url. Please guide me on how I can allow the VM to access my host machine's internet?
this works for me. Configure the Vagrantfile with this.
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
I hope this help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With