创建img文件
1. qemu-img create -f raw /opt/ol6.img 40G
安装系统到img文件上
2. qemu-system-x86_64 -enable-kvm -m 2048 -hda /opt/ol6.img -cdrom /opt/ubuntu-Server-x86_64-dvd.iso -boot d -vnc 10.10.1.1:1
启动qemu
3. qemu-system-x86_64 -enable-kvm -m 4096 -drive file=/opt/ol6.img -vnc 10.10.1.1:1