For how to install the android-x86, see the following article, which is based on vitrualbox. If you are using vmvare, the installation process is similar.
Http://www.cnblogs.com/MaxWoods/archive/2011/09/16/2179310.html
First, describe my network conditions. No DHCP is required. Proxy authentication is required to connect to the Internet.
The proxcap is installed on your PC. You can automatically redirect network access to the proxy server.
1. vitrualbox
Currently, the test is successful in the bridged adapter mode, which can be connected to the Intranet and can be debugged using eclipse. However, because it is equivalent to a new network card connecting to the network,
Proxycap cannot be automatically redirected to the proxy server,
You need to manually set IP address information
Android-x86 IP Address Settings
Ifconfig eth0 10.10.69.199 netmask 255.255.255.0 up
Route add default GW 10.10.69.1 Dev eth0
Setprop net. dns1 202.107.117.11
Your own IP Address
10.10.69.177/255.255.255.0
DNS 202.107.117.11
Set the NAT mode according to the official documentation.
Ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
Route add default GW 10.0.2.2 Dev eth0
Setprop net. dns1 10.0.2.3
However, both the Intranet and the Internet cannot be connected.
Tracing: It turns out that the built-in DHCP service has not been started.
Execute Command
Dhcpcd
In this way, the automatically assigned IP address can be obtained.
In addition, the DNS should be the same as the physical host, instead of being configured as 10.0.2.3.
The final command set is as follows:
Dhcpcd
Ifconfig eth0 up
Setprop net. dns1 202.107.117.11
In this way, you can access the Internet.
If you need an eclipse connection for debugging, You need to enable port ing.
Ing ports 5555 and 8600
Vitrualbox can append custom resolution so that you can choose a non-standard resolution when guiding the android-x86
The command example is as follows. You must select a 16-bit color. Otherwise, it will not work.
"C: \ Program Files \ oracle \ virtualbox \ vboxmanage.exe" setextradata "Android-x86" "customvideomode1" "480x800x16"
2. VMWare
The bridged adapter mode is the same as the vitrualbox mode. You can only access the Intranet, but not the proxy.
It is tested that the proxy can be automatically used in Nat mode.
First, find vmnet8 and check its IP information as follows:
192.168.211.1
So, the android-x86 settings are as follows
Ifconfig eth0 192.168.211.6 netmask 255.255.255.0 up
Route add default GW 192.168.211.2 Dev eth0
Setprop net. dns1 202.107.117.11
If you want to use adbhost for debugging in eclipse, enter the IP address 192.168.211.6.
However, there is a problem with Vmware that it is unable to append custom screen resolutions, so it cannot be selected during Android-86 boot.
Further research is required.