Android x86 porting, unable to make it work Android x86 porting, unable to make it work android android

Android x86 porting, unable to make it work


I solved the problem. This is what I do to get internet connection.

In my case, the gateway address was 192.168.0.254 and the DNS server was 192.168.0.10.I select an IP address for the VirtualBox host from the unused ones (192.168.0.250).

1) First of all, I set my VirtualBox network configuration:

Attached to: Bridged Adapter

Adapter type: PCnet-FAST III

2) After that, I start Android from VirtualBox; after boot, I open a root shell, pressing Alt+F1

3) Here, I use these commands:

ifconfig eth0 up 192.168.0.250route add default gw 192.168.0.254 dev eth0setprop net.dns1 192.168.0.10

4) Now, I return to Android (Alt + F7), and I can surf on internet!

Unfortunately, this process must be followed each time you start Android


In order to obtain gateway and DNS IP addresses, from Windows you can use this command

ipconfig /all

You must refer to your network card


After some research, I found simplest way to solve this! The Key is dhcpcd and dns setting.

  1. Config VirutalBox network card as Bridged Adapter. Adapter type: PCnet-FAST III(Maybe other type is ok, i did not test)

  2. Start Android from VirtualBox; after boot, open a root shell by pressing Alt+F1, type following command:

    dhcpcd
  3. Type following command to set DNS server:

    setprop net.dns1 yourDnsServerIp

finish!


This worked for me:

attached to: NATPCnet-Fast III
  1. press ctrl-f1
  2. type dhcpcd eth0
  3. type setprop net.dns1 [your DNS for your internet provider] mine is 75.75.75.75
  4. press ctrl-f7 to go back to GUI