VirtualBox network adapter name on guest machine is not fixed all the time, each time you have disable and enable host adapter from VB prefrences, the network device name post-appended number will increase . For example, if you disable and enable network host-only adapter five times, the new network name should be eth4, and if it was eight times , network name will should be eth7 and so on.
if you don't know what is your current network device name, use:
it will print all available network adapters ( devices ), find your new name and reconfigure /etc/network/interfaces file with new name.
for DHCP configuration use code below with changing eth5 with your current device name
auto eth5 iface eth5 inet dhcp
And for static ip you can code below: ( you still need to change eth5 with your device name, and also the static ip, no need to change netmask in most situations):
auto eth5 iface eth5 inet static address 192.168.56.101 netmask 255.255.255.0
I hope this will help somebody else.
I have problem with implementing Host-Only network in Virtualbox. my host machine is running under Windows 7 Ultimate, and guest OS is Ubuntu Server 12.04.2 64bit.
I configure virtual box host-only adapter.
As you can see DHCP Server is disabled and i try both enabled and disabled but problem still there.
Below is result of
from Windows CMD
Now My Virtual Machine Network Settings
When i run VM the ubuntu force some problem with network configuration as image below
My /etc/network/interfaces file as below:
When i restart networking service, show "Cannot find device eth1, Failed to bring up eth1 as below:
if i go with "ifdown" options, response as bleow:
any help will be appreciated
Thanks in advance