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:


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


netcfg eth0 dhcp
setprop net.dns1

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


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: Logo

You are commenting using your 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