qemu-img create -f raw win7.img 50G
./qemu-system-x86_64 -L ./qemu -enable-kvm -smp 2 -hda /data/qemu_img/ubuntu1204 -m 1400 -share-mem file=/data/qemu_img/myshmem,offset=0
qemu-system-x86_64 -hda ubuntup_w_picpath -cdrom /home/james/Downloads/ubuntu-12.04-desktop-amd64.iso -m 1024 -boot d
-no-acpi -usb -usbdevice host:0421:0178
使用如下命令将raw格式的镜像转化为qcow2格式。
qemu-img convert -f raw -O qcow2 CentOS5.5_64bit.img CentOS5.5_64bit_basesys_qcow2.img
qemu-img snapshot -c name.img
ps ax|grep qemu
3323 pts/1 SLl+ 5510:20 qemu-system-x86_64 -L /compass/bin/qemu -enable-kvm -smp 2 -boot dc -drive if=ide,cache=off,file=/dev/vd1 -net none -device pci-assign,host=1a:04.0,iommu=on,rombar=0 -monitor unix:/var/run/efs.socket,server,nowait -m 16388M -share-mem file=/dev/plmm,offset=102705 -vnc -smbios type=1,product=efs_node,serial=EFS0001 -uuid df419e4c-d1b1-44ec-a04d-a24ea8d4ce47 -serial file:/dumps/efs.serial.log.130506.042000
转载于:https://blog.51cto.com/qihua/1417566