I have a fresh virtual box Ubuntu Server 16.04 32-bit guest installation on a Linux Mint 18 Cinnamon 64-bit host. I want to have the guest system to appear to the local network like a physical machine. Therefore, I need bridged network mode for the guest---host-only and/or NAT won't do. The host system is connected via ethernet cable and guest additions are installed on the virtual machine.
The odd thing is, during installation, the guest system is perfectly able to download additional packages. Once logged in, however, I can neither ping computers in the local network nor external servers like google.com.
For google.com
, it says "ping: host unknown", for the local router (192.168.178.1), it says "connect: Network is unreachable".
Upon closer examination, I found out that the virtual machine has not received an IPv4 address from the DHCP server of my router. However, my router displays that an address has been assigned (the fourth entry).
I tried setting a static IPv4. Then, the according address shows up on ipconfig
. But still, the guest cannot ping anything. Also, actually I want the virtual machine to receive its IPv4 address from the local DHCP server anyways.
In /etc/network/interfaces
, the network interface from ipconfig
is initialized as follows:
allow-hotplug enp0s17
iface enp0s17 inet dhcp
Things I tried:
- setting the guest to a static IPv4
- disabling IPv6
- deleting
/etc/udev/rules.d/70-persistent-net.rules
sudo ip link set enp0s17 up
dhclient enp0s17
None of these worked. Can anyone help me to solve this problem?