In the virutal box UI, Global Tools tab > create vboxnet0
host network with DHCP disabled (untick Enable Server).
Select the VM (it must be shut down to add a 2nd network adapter) > Settings > Network tab > Adapter 2 > Attach Host-only adapter and vboxnet0
Start the VM.
Edit /etc/network/interfaces
auto enp0s8
iface enp0s8 inet static
address 192.168.56.10
netmask 255.255.255.0
Restart interface
sudo ifdown enp0s8
sudo ifup enp0s8
Check that it has been updated
ifconfig
sudo apt-get update
sudo apt-get install openssh-server
On host machine, you should be able to ssh:
ssh root@192.168.56.10