qemu1.0编译及kvm支持

使用qemu1.0,利用kvm加速 1.安装环境 qemu1.0+ubuntu12.042.编译支持kvm a.进入qemu目录,进行基本需要的配置,需要其他配置可以进行configure --help【linux下 -h是必不可少的】./configure --enable-kvm --enable-sdl --target-list="i386-softmmu"*--enable-k
摘要由CSDN通过智能技术生成

1.安装环境

qemu1.0+ubuntu12.04

2.编译支持kvm

a.进入qemu目录,进行基本需要的配置,需要其他配置可以进行configure --help【linux下 -h是必不可少的】
./configure --enable-kvm  --enable-sdl --target-list="i386-softmmu"
*--enable-kvm:编译KVM模块,使QEMU可以利用KVM来访问硬件提供的虚拟化服务。
--enable-sdl:支持sdl,不然会没有界面
--target-list:选择目标机器的架构。默认是将所有的架构都编译,但为了更快的完成编译,此时优先编译x86_64。

b.编译qemu,安装
sudo make -j4 //并行编译,使4个编译任务同时进行
sudo make install

*编译时候遇到的问题及解决
sudo apt-get install libsdl1.2-dev //sdl需要,出现界面
sudo apt-get install build-essential sudo apt-get install libglib2.0-dev (缺失glib2.0)
sudo apt-get install zlib1g-dev (缺失zlib)
sudo apt-get install libtool     (不知道缺少啥,还没有遇到过,在网上看到需要)
sudo apt-get install dh-autoconf (缺少autoreconf) 
或者确实pixman之类的,到官网上下载相应的包自己进行编译安装

3.制作磁盘镜像及安装系统

qemu
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
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、付费专栏及课程。

余额充值