I\'m trying to install a VirtualBox virtual machine for developing on Android 2.3 (Gingerbread) but I cannot properly configure the internet connection.
I followed m
An answer for Android 4.0, which is a combination of Goyuix's advice and other information on the internet.
ifconfig eth0 up
. (Note it is not "ipconfig"!)dhcpcd -LK -d eth0
.ipconfig
on the host machine. Now execute setprop net.dns1 192.168.56.1
, substitute the correct IP address.The answer above allowed me to finally connect to my virtual android device. The problem, however, was that I was unable to connect to the internet.
I have PC-net-FAST III, bridged, adapter, and ethernet enabled in my android settings with eth0 selected in ethernet devices. Other isos did not have the ethernet options in settings.
If you are going to be using VirtualBox, you need to use the eeepc.iso image not the asus-laptop.iso image.
Also, you will want to double check a few settings on your VM to make sure they are configured correctly:
From http://www.android-x86.org/documents/virtualboxhowto
I also found the following two things to be very helpful:
I have my in NAT, and works fine
try it in bridge and it works as well
the problem must be in your configuration, try to see if the network interface is active