no network in Android x86 on VirtualBox 4.1.2

后端 未结 7 1885
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 11:06

My issue is nearly identical to this question. I tried those solution and none worked. But I am using a different Android x86 image. I\'m using the ICS (4.0-RC1) asus_laptop ima

相关标签:
7条回答
  • 2021-01-30 11:22

    For me the solution of user1330614 worked very well. Another nice writeup for the problem can be found here: http://davematthew.blogspot.de/2012/04/android-x86-ics-on-virtualbox.html

    0 讨论(0)
  • 2021-01-30 11:22

    Some sources in the net says you should use the PCnet-Fast III either in bridged mode or NAT in your VBox Machine settings. Just give it a try. This is a guide i found, but to be sincere, i am new to Android on VBox (and to Android at all) and i didn't test it myself.

    0 讨论(0)
  • 2021-01-30 11:25

    The following works very good for me

    sudo vi /etc/init.sh
    

    add 4 lines below to init.sh

    netcfg eth0 dhcp
    echo nameserver <ip> > /etc/resolv.conf
    dnsmasq 
    setprop net.dns1 8.8.8.8
    

    on virtualbox set the network interface to bridged (PCnet Fast III) and that's all.

    0 讨论(0)
  • 2021-01-30 11:26

    Update: If Android x86 does not work well for you, you might want to look at AndroVM. I run it in VirtualBox and have had no hardware related issues.

    Real Answer:

    Somewhat of a follow-up answer since I can't add comments yet. I think getting this setup is highly dependent on your host hardware. I am not using hardware that perfectly fits any of the current ISOs. So I tested all of them with all Ethernet settings to see what would work.

    On a Dell Latitude D820 here is what I got:

    • eeepc - Bridged Adapter with PCnet-PCI II
    • tegav2 - NAT adapter with PCnet-PCI III
    • amd_brazos - No CPU support
    • asus_laptop - No eth0 option for any Ethernet adapter setting
    • s104t - Would not boot

    For the two ISOs that would work for me (eeepc and tegav2), I added the following two lines to /etc/init.sh (as per the other answer)

    netcfg eth0 dhcp
    setprop net.dns1 8.8.8.8
    
    0 讨论(0)
  • 2021-01-30 11:30

    If you can't edit /etc/init.sh or /etc/init.androVM.sh and the error is the read-only file (despite being su) you can just write the following as superuser on the commandline:

    setprop net.dns1 10.0.0.138
    

    or any other IP, this is often the local router (capable of DNS). Check your network connection details for getting this IP.

    The drawback is, that you have to do this every time, but it is not very time-consuming.

    0 讨论(0)
  • 2021-01-30 11:31

    I had to enable WiFi in the Android settings and select the virtual network created by VirtualBox. In my case it was called "VirtWifi", which is a fake WiFi network using my computer network.

    0 讨论(0)
提交回复
热议问题