qemu针对设备加snapshot

/usr/local/bin/qemu-system-x86_64 -enable-kvm -M pc -nodefconfig -nodefaults -rtc base=localtime,clock=host -chardev socket,id=monitor,path=/opt/keqi/monitors/c0791170-3fa6-492b-9002-23e6ac334f1e68,server,nowait -mon chardev=monitor,mode=readline -smp 2,cores=2 -m 2048 -name jwang-net -boot order=cdn -drive if=none,id=drive-fdc0-0-0,readonly=on,format=raw -global isa-fdc.driveA=drive-fdc0-0-0 -drive file=/opt/keqi/.source/keqisoft_tools_4_0_0.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive media=disk,file=/opt/datastore/default/jwang/.VM-c0791170-3fa6-492b-9002-23e6ac334f1e68/jwang_1.qcow2,if=none,id=drive-ide0-0-0,format=qcow2,cache=writethrough,snapshot=on -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -net nic,model=rtl8139,macaddr=00:e0:4c:4e:68:da,vlan=0 -net tap,script=/opt/keqi/.network/if-up,downscript=/opt/keqi/.network/if-down,ifname=tap-s0-8,vlan=0 -vga qxl -soundhw ac97 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+x2apic -spice addr=0.0.0.0,port=5908,password=11111111 -usb -usbdevice tablet -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0 -chardev spicevmc,name=vdagent,id=vdagent -device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0 -readconfig /etc/qemu/ich9-ehci-uhci.cfg -chardev spicevmc,name=usbredir,id=usbredirchardec1 -device usb-redir,chardev=usbredirchardec1,id=usbredirchardec1,debug=3 -chardev spicevmc,name=usbredir,id=usbredirchardec2 -device usb-redir,chardev=usbredirchardec2,id=usbredirchardec2,debug=3 -chardev spicevmc,name=usbredir,id=usbredirchardec3 -device usb-redir,chardev=usbredirchardec3,id=usbredirchardec3,debug=3

 

 

红色注释部分

你可能感兴趣的:(qemu)