Android-x86

Run Android on your PC


QEMU How To

This article describes how to run eeepc.iso inside Qemu, a generic and open source machine emulator and virtualizer.
The tested version is 0.10.5 on Fedora 11, and 0.9.1 on Debian 5.0.

Workable features:
• Internet access (DHCP mode).
• Audio, playing music.

Details

Create a script qemu-android like

#!/bin/sh
qemu-kvm -soundhw es1370 -net nic -net user -cdrom \
${@:-out/target/product/eeepc/eeepc.iso}
Run it by:
qemu-android <path to eeepc.iso>
The script configures the qemu machine to have a sound card es1370, and a network card rtl8139 (the default one), and use the user mode network stack.

Note the script runs qemu in KVM mode.
You must have kvm module (kvm-intel or kvm-amd) installed for your kernel, and the permission of /dev/kvm is set to allow your user to access it.
Otherwise the KVM support will be disabled and it may run very slow.
If you don't have qemu-kvm in your distribution, use qemu.

Advanced

Like Virtual Box, you can save data to a qemu virtual disk.
First, create a qemu virtual disk (size 1GB) by

qemu-img create -f qcow2 android.img 1G
Run
qemu-android eeepc.iso -hda android.img -boot d
Then follow the VirtualBoxHowTo for how to mount user data and sdcard on the virtual disk.
You can also follow that article to upload music files and play them.
(Use wget to pull file from the host. Adb push may not work)

Known bugs

If the Android inside Qemu enters suspend mode, it cannot wake up. So it is better to set the Screen timeout to be Never (Setting -> Sound & display -> Screen timeout).