kvm android x86,QemuHowTo - Android-x86 - Porting Android to x86

# qemu howto

Introduction

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

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).

Screenshots

Browsing Internet

Qemu-Network.png

Playing music

Qemu-Music.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值