Sunday, June 03, 2012

Install Android in VirtualBox

  • Dowwnload android-x86-4.0-RC1-eeepc.iso or android-x86-4.0-RC1-asus_laptop.iso from http://www.android-x86.org/download.
  • Create a new virtual machine on VirtualBox. OS type: Linux, version Linux 2.6. Memory: 512 MB or 1000 MB. Create a new boot harddisk. Adjust the settings: Sound: Sound Blaster 16; Network: NAT (or Bridged), adapter: PC-net-FAST III
  • Install Android. Choose Install Android-x86 to harddisk from the boot menu. Create one partition for the full harddisk, formatted as ext3. Install the boot loader GRUB. When the installation finishes, select "Run Android x86" to boot the Andoid. (Before the next booting, remove the CD image from Settings-Storage-IDE Controller.)
  • To make the mouse work in the virtual machine, go to “Machine” in the menu and select “Disable mouse integration” (right Ctrl, by default, to restore the mouse in host machine). Alt-1 and Alt-7 to enter command line or go back to graphical interface. Shutdown the machine by command-line (halt) or from menu of VirtualBox. Press Esc to exit standby mode.
  • To connect the Internet (from command line, tested with NAT):
    • netcfg to list the devices.
    • dhcpd eth0
    • setprop net.dns1 8.8.8.8
Ref:
- http://maketecheasier.com/install-android-4-0-ice-cream-sandwich-in-virtualbox/2012/03/02
- http://groups.google.com/group/android-x86/browse_thread/thread/eb88bb948176f6b8
- http://groups.google.com/group/android-x86/browse_thread/thread/ec0aee3a027775d7

Note:
  • By the above method, the Internet can be accessed using browser, but other apps cannot access the Internet (they need "wifi").
  • To access the Internet with other apps: see http://keyable.blogspot.jp/2012/05/how-to-run-android-40-in-virtualbox.html

No comments: