I have installed Ubuntu Server 10.04 as a guest operating system under VirtualBox 3.2.10. My host system is Ubuntu 9.04
I have configured two network adapters for the guess (a NAT one and a host-only one)
The NAT one is recognized without problems by the guest, but in order to recognize the host-only adapter I have to run
sudo dhclient, thus making it impossible to run the guest
in headless mode.
I'm sure I am forgetting something.
When i run
ifconfig right after login I see two interfaces (eth0 and lo), then after running
sudo dhclient I see three interfaces (eth0, eth1 and lo)
So the question is: How can I make ubuntu to get the IP from the second adapter at boot time in order to be capable of running headless and accessing it via ssh?