I’m trying to setup host only network at virtualbox by following http://christophermaier.name/2010/09/01/host-only-networking-with-virtualbox/
but facing to choice network adapter at guest [ubuntu]
To see a list of the adapters your virtual machine can access, use this:
ls /sys/class/net
This will show you the interface names. For example, with two network adapters set up, my Ubuntu guest looks like this.
eth1 eth2 lo
To see a list of active network with IP address assigned
ifconfig
So you can easily guess what network adapter should use for host only network.
Well in a brand new ubuntu machine the permanent network save is not work in the way described in that article. For this you need to install ifupdown or ifupdown2 package
apt install ifupdown2
After install execute following command
ifup eth1
Then reboot.