Android Blues

Recently, I had to install Android OS in a Virtual Box machine, in order to test some features. The whole process is quite smooth and there are many tutorials about this, so I am not gonna write an install guide.

However, the network is a bit of an headache; and without network there is little you can do with this nice OS 😦

Here is how I solve the problem, after “banging my head on the wall” for a couple of hours.

First of all, download Android from the X86 Android port website.Β 

The network won’t work at first. Make sure to set the VM adapter to NAT, PCNET-Fast III.

With the machine switched off, go to a command line and type:

VBoxManage modifyvm [insert name of your machine here] --natpf1 adb,tcp,*,5555,*,5555

Start the Android and open a command line. As root, type:

netcfg

You should see an eth0 interface coming up, with an ip address. Ping something (e.g. google.com); it won’t work.

Type:

netcfg eth0 dhcp
setprop net.dns1 8.8.8.8

Ping a host again: it should work now. Go back to your Android UI. Do not try to configure the net, using the wireless interface! Just use the internet and enjoy it! πŸ™‚

Hope this can be useful to Android developers! πŸ™‚

P.S.:Do not forget to disable the mouse integration: it sucks

Β 

Advertisements

4 thoughts on “Android Blues

  1. Nice post doublebyte! I also installed an Android X86 distibuition in a VMWare Box… I agree, the mouse integration was terrible! But I did not find a better alternative to navigate the android interface… do you use the keyboard?

  2. I installed it just to see what it was the Android interface (before you buy a real Android device!). So I never tried to configure the network … But now I know how to do it! πŸ˜‰

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s