[Tutorial] Enable network connection in Android x86 4.0 ICS using VirtualBox

If you're an Android developer like me, you'll come to hate the sluggish performance of the emulator that came bundled with the SDK. So you try to install Android x86 as a VM in Virtual Box. Things work out pretty good and there's no more annoyance of the slow down. But one thing that you'll realize fast enough is THERE IS NO NETWORK CONNECTION! Googling for this and you'll come across to many workaround, which you might find it not working.


Following the instruction below to get the network connection working in Android x86 4.0 RC (eecpc version) on VirtualBox.


Several shortcut that you should know:
Alt+F1 : Enter terminal mode
Alt+F7 : Return to the GUI


1. Before starting your Android x86 VM, open up your terminal and enter the following. This will create a NAT rule:
VBoxManage modifyvm "Your Android VB name" --natpf1 adb,tcp,*,5555,*,5555

Alternatively, you could also add the NAT rule manually using the GUI.

Select your VM and click the Settings button at the toolbar.


Select Port Forwarding and add the following rules as shown.


2. Make sure the network is set as NAT. I've tried Bridged Networking but no avail.

3. Start up your VM and wait until it is boot up. Then enter terminal mode by pressing Alt+F1.


4. Type netcfg to make sure the interface is up and running. Try to send a ping to your default gateway and it should be successful.


5. Enter the following to use the Google DNS. You can use your own DNS server too.
setprop net.dns1 8.8.8.8

6. Return to GUI mode by pressing Alt+F7 and you can now start to browse the Internet!

3 comments

I dont have eth0 and no intenet :/

Reply

Hiv disease for the last 3 years and had pain hard to eat and cough are nightmares,especially the first year At this stage, the immune system is severely weakened, and the risk of contracting opportunistic infections is much greater. However, not everyone with HIV will go on to develop AIDS. The earlier you receive treatment, the better your outcome will be.I started taking ARV to avoid early death but I had faith in God that i would be healed someday.As a Hiv patent we are advise to be taking antiretroviral treatments to reduce our chance of transmitting the virus to others , few weeks ago i came on search on the internet if i could get any information on Hiv treatment with herbal medicine, on my search i saw a testimony of someone who has been healed from Hiv her name was Achima Abelard and other Herpes Virus patent Tasha Moore also giving testimony about this same man,Called Dr Itua Herbal Center.I was moved by the testimony and i contacted him by his Email.drituaherbalcenter@gmail.com We chatted and he send me a bottle of herbal medicine I drank it as he instructed me to.After drinking it he ask me to go for a test that how i ended my suffering life of Hiv patent,I'm cured and free of Arv Pills.I'm forever grateful to him Drituaherbalcenter.Here his contact Number +2348149277967...He assure me he can cure the following disease..Hiv,Cancer,Herpes Virus,Epilepsy, fibromyalgia ,ALS,Hepatitis,Copd,Parkinson disease.Diabetes,Fibroid...

Reply

Why is My Yahoo Email Not Syncing?

The users often get stuck and so users they keep on looking for the ways to resolve the issue of why is my Yahoo email not syncing issue. And to resolve it, you need to check out the essential instructions. To resolve it, start by opening iPhone. After that, open settings and scroll down the page to resolve the issue. You need to open the mail, contacts, and calendars option. Simply, tap on add account option and choose Yahoo as an option from the available list. And then users need to type their name, Yahoo email address, password, and description of account. Tap to next and then users can switch on mail option. Lastly, save the desired changes.

Why Yahoo mail is not working in Crome?

Yahoo mail not working in Chrome can be caused by various factors. It could be due to a server issue, blocked cookies, or a conflict with other applications or extensions. The most common issue is when a user’s browser isn’t able to connect to Yahoo’s server. First, make sure that you are running the latest version of Chrome. If you are still having issues, try clearing your browser’s cache and cookies. Additionally, if you have any extensions installed, try disabling them one at a time and testing whether or not Yahoo works. If that still doesn’t work, try signing out of Yahoo, quitting Chrome, and then signing back in.

Reply

Post a Comment

If you found this article or post helpful to you, feel free to enter your comments below ;)