-
First create a host-only network if not already done so. Use the IP Address
192.168.56.1
with the netmask255.255.255.0
. Don't enable DHCP server (next tab), it should be unchecked. -
Make sure two network interfaces are assigned to the VM. The first being a
NAT
interface (note: NOT NAT Network). The second being aHost-Only Adapter
. -
In the Ubuntu guest the
/etc/network/interfaces
file should look something similar to below.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# Secondary network interface
auto eth1
iface eth1 inet dhcp
- Reboot the guest