Virtualbox problem - Host only network not work on Ubuntu server 16.04

I have a problem when trying to connect with host only network, from host to guest ... (guest using ubuntu 16.04). Host only network not detected in guest when i type 'ifconfig' by terminal.

Step by step from video: Open terminal

Check Host only network

ifconfig - Shows available networks and check host only network
Edit file


            sudo vi /etc/network/interfaces
        
Config file contains only two interfaces: loopback network interface and primary network interface. We need setup 'Host only' interface in file /etc/network/interfaces Name for 'Host only' network interface: enp0s8
            NAT - enp0s3
            Host only - enp0s8
        

Add to file new network interaface


# Host only network interface
auto enp0s8
iface enp0s8 inet static
address 192.168.56.103
        
This config added static ip for host only network interface, than start new interface
sudo ifconfig enp0s8 up 
Need restart network
sudo /etc/init.d/networking restart 
After restart check available networks interface via command ifconfigs

2018-01-08 17:58:30