我的问题几乎与这个问题 https://stackoverflow.com/questions/8227825/android-x86-porting-unable-to-make-it-work。我尝试了这些解决方案,但没有一个有效。但我使用的是不同的 Android x86 映像。我正在使用 ICS (4.0-RC1) asus_laptop 映像。 (我之前尝试过不同的映像,但无法安装。)
我在 Kubuntu 12.04 上安装了 VirtualBox 4.1.12。我跟着这些步骤 https://stackoverflow.com/questions/1554099/slow-android-emulator/6058689#6058689并安装了我的虚拟机中的图像。除了网络之外,它可以正常启动并正常工作。
Alt-F1 netcfg
除 lo (127.0.0.1) 外,没有显示任何接口。应该可用的 eth0 没有显示。这阻止了我尝试解决方案在这里 http://osdir.com/ml/android-x86/2011-11/msg00352.html.
我正在查看的新参考资料:
- VirtualBox 上具有 Internet 连接的 Android ICS x86 https://stackoverflow.com/questions/9847285/android-ics-x86-on-virtualbox-with-internet-connection
- http://groups.google.com/group/android-x86/browse_thread/thread/30fa23d81cddfab1/2e480f6b9cbf773d http://groups.google.com/group/android-x86/browse_thread/thread/30fa23d81cddfab1/2e480f6b9cbf773d
- 如何在 VirtualBox 中为 Android Honeycomb 设置网络? https://stackoverflow.com/questions/7825934/how-to-setup-network-for-android-honeycomb-in-virtualbox
以下对我来说非常有用
sudo vi /etc/init.sh
在 init.sh 中添加以下 4 行
netcfg eth0 dhcp
echo nameserver <ip> > /etc/resolv.conf
dnsmasq
setprop net.dns1 8.8.8.8
在 virtualbox 上将网络接口设置为桥接(PCnet Fast III),仅此而已。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)