windows下用qemu搭建android

1.下载Qemu for windows 版本为qemu-0.9.0-windows

2.下载qemuwith-kqemu-support 安装kqemu的目的就是为了加快qemu的子系统运行速度.在X86的硬件平台上模拟x86的操作系统可以飙到真实机器速度. 直接用QEMU来安装或者运行系统的话,速度会很慢.用kqemu会改善很多.右键点击kqemu.inf,选择“安装”,然后在CMD窗口下输入命令:net start kqemu。服务启动后即可运行启动qemu的命令,注意,启动命令中要加参数-kernel-kqemu.把压缩包里的两个文件:qemu:qemu-img:覆盖到qemu-0.9.0-windows的文件夹的同名文件

3.打开命令行 如果windows7或更高 则用管理员执行命令行,命令行进入进入解压qemu的目录执行
    C:\qemu-0.9.0-windows>qemu-img create android.img 512M //创建一个512M的硬盘镜像

4.把android镜像直接拷贝到qemu的目录下

5.在命令行下 运行 

C:\qemu-0.9.0-windows>qemu.exe -L . 512 -hda android.img -cdrom android-x86-4.0-
RC2-eeepc.iso -boot d
    如果用kqemu加速 则命令为以下
C:\qemu-0.9.0-windows>qemu.exe -kernel-kqemu -L . 512 -hda android.img -cdrom android-x86-4.0-
RC2-eeepc.iso -boot d

6.选择安装android 到硬盘
在设置过程中,进行如下操作:
创建一个新的分区 将它格式化成 ext3 格式 选择该分区用作 Android 安装 一旦安装完成:关闭qemu

7.执行以下命令运行安装好的android,为了方便直接把命令

qemu.exe -L . 512 -hda android.img -boot c

用kqemu加速则

qemu.exe -kernel-kqemu -L . 512 -hda android.img -boot c


转载于:https://my.oschina.net/cjkall/blog/96679

Qemu 1.0.1 Windows QEMU emulator version 1.0.1, Copyright (c) 2003-2008 Fabrice Bellard usage: qemu [options] [disk_image] 'disk_image' is a raw hard disk image for IDE hard disk 0 Standard options: -h or -help display this help and exit -version display version information and exit -machine [type=]name[,prop[=value][,...]] selects emulated machine (-machine ? for list) property accel=accel1[:accel2[:...]] selects accelerator supported accelerators are kvm, xen, tcg (default: tcg) -cpu cpu select CPU (-cpu ? for list) -smp n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets] set the number of CPUs to 'n' [default=1] maxcpus= maximum number of total cpus, including offline CPUs for hotplug, etc cores= number of CPU cores on one socket threads= number of threads on one CPU core sockets= number of discrete sockets in the system -numa node[,mem=size][,cpus=cpu[-cpu]][,nodeid=node] -fda/-fdb file use 'file' as floppy disk 0/1 image -hda/-hdb file use 'file' as IDE hard disk 0/1 image -hdc/-hdd file use 'file' as IDE hard disk 2/3 image -cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master) -drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i] [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off] [,cache=writethrough|writeback|none|directsync|unsafe][,format=f] [,serial=s][,addr=A][,id=name][,aio=threads|native] [,readonly=on|off] use 'file' as a drive image -set group.id.arg=value set parameter for item of type i.e. -set drive.$id.file=/path/to/image -global driver.property=value set a global default for a driver property -mtdblock file use 'file' as on-board Flash memory image -sd file use 'file' as SecureDigital card image -pflash file use 'file'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值