I have a virtual machine with a Ubuntu 16.04 guest and two network interfaces
- First interface: NAT
- Second interface: Bridge
I want to access the guest from my host and I want to access a second ethernet device from the guest. The device is connected with the host over a switch. I can ping the host, the external device and 8.8.8.8
with my current setup from the guest, but I don´t have any internet access (chrome stucks at "resolving host").
When I deactivate the bridge the internet access does work, but not with the active bridge.
ifconfig
gives me the following output
What is wrong?
/etc/resolv.conf
with a bad DNS server, or pointing to a DNS server that can not reach the internet.8.8.8.8
by hand. How can I set this automatically?8.8.8.8, 8.8.8.4
in the field "Additional DNS-Server" This works with chrome and apt. Modify the DNS-Server by hand over resolve.conf doens´t work for apt, but with chrome...don´t understand why, but this solution is a little bit better than the "hacky" way :)