如何设置网络上的VirtualBox为Android 2.3如何设置、网络、VirtualBox、Android

2023-09-12 09:11:36 作者:被强煎的蛋

我试图安装在VirtualBox虚拟机开发在Android 2.3(姜饼),但我不能正确地配置互联网连接。

I'm trying to install a VirtualBox virtual machine for developing on Android 2.3 (Gingerbread) but I cannot properly configure the internet connection.

我也跟着在网络上很多教程,并试图采用一些变通方法在这里计算器(即的Andr​​oid x86的移植建议,无法进行它的工作),但我仍然无法从我的Andr​​oid机连接。

I followed many tutorials on the web and tried to apply some workaround suggested here on StackOverflow (ie. Android x86 porting, unable to make it work ), but I still can't connect from my Android machine.

的一些细节:

当我执行加上netcfg 在Android控制台仅返回接口(127.0.0.1)。 在我使用的ISO映像的Android的x86-2.3-RC1-asus_laptop.iso从的 http://www.android-x86.org/download 。我在联想笔记本电脑与Windows 7的使用(不过我也试过在Ubuntu 11.04)。 在我试图设置两个主机仅和桥在我的虚拟机接口,但他们似乎并没有工作。 When I execute netcfg on android console it returns only the lo interface (127.0.0.1). The iso image I'm using is "android-x86-2.3-RC1-asus_laptop.iso" downloaded from http://www.android-x86.org/download. I use it on a Lenovo notebook with Windows 7 (but I've tried also on Ubuntu 11.04). I've tried to setup both host only and bridged interface on my virtual machine, but they don't seem to work.

推荐答案

如果你打算使用VirtualBox的,你需要使用的 eeepc.iso 形象不是华硕laptop.iso形象。

If you are going to be using VirtualBox, you need to use the eeepc.iso image not the asus-laptop.iso image.

此外,你将要仔细检查你的虚拟机中的一些设置,以确保它们被正确配置:

Also, you will want to double check a few settings on your VM to make sure they are configured correctly:

操作系统类型:Linux的2.6 内存:256MB以上 声音:声霸卡16 网络:NAT或桥接适配器必须是PC-NET-FAST III OS Type: Linux 2.6 Memory: 256MB or more Sound: Sound Blaster 16 Network: NAT or Bridged, the adapter must be PC-net-FAST III

从http://www.android-x86.org/documents/virtualboxhowto

我还发现下面的两件事情是非常有帮助的:

I also found the following two things to be very helpful:

禁用鼠标集成(本机菜单下) 一旦虚拟机启动后,打开应用程序抽屉,启动设置。找到以太网部分并启用它。您应该看到一个eth0设备可以配置。