I have two virtual machines set up on my Virtualbox: a Debian 8.7.1 and a Ubuntu Server 17.04 one. My host is Windows 10.
I made it work the host-only adapter from Virtualbox on Debian by simply turning it on the option on Virtualbox and it worked like magic. However on Ubuntu Server it doesn't display the new network on
ifconfig. I tried with DHCP on and off.
I tried to set it up manually on
/etc/network/interfaces with a static IP by the name of
enp0s4 (the NAT interface has the name of
enp0s3 and no results.
However, I tired to swich places with the adapters and I found out that
enp0s3 was now the host-only network, but the NAT network was gone. So apparently the guest doesn't know more than two networks (the
enp0s3 and the loopback).
How to fix this?