编译qemu

el7上编译

git clone git://git.qemu-project.org/qemu.git

./configure --target-list=x86_64-softmmu --cpu=x86_64 --enable-kvm --disable-werror --disable-fdt

sudo yum install pixman-devel

make -j 20 

qemu/qemu/qemu-img create -f qcow2 vm.img 10G

qemu/qemu/x86_64-softmmu/qemu-system-x86_64 -serial mon:stdio --nographic -enable-kvm -hda ./vm.img -boot d -cdrom ./Fedora-Server-dvd-x86_64-25-1.3.iso

qemu-system-x86_64 -m 2048 -enable-kvm --nographic  fedora.img -cdrom ./Fedora-Live-Desktop-x86_64-20-1.iso

posted @ 2017-09-06 22:36  苏小北1024  阅读(327)  评论(0编辑  收藏  举报