Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
391 views
in Technique[技术] by (71.8m points)

virtualization - How to set up network on VirtualBox for 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.

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

Some details:

  • 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 Natty).
  • I've tried to setup both host-only and bridged interface on my virtual machine, but they don't seem to work.
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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:

  • 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

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

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

  • Disable Mouse Integration (under the Machine Menu)
  • Once the VM has started, open the app drawer and launch Settings. Find the ethernet section and enable it. You should see an eth0 device you can configure.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...