Hide Forgot
Description of problem: savevm function can not use in qemu Version-Release number of selected component (if applicable): # uname -r 2.6.32-23.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.48.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.start VM. 2.in the qemu monitor ,use savevm command,eg: savevm vm1 3.in the qemu monitor input # info snapshot Actual results: after step2,It prompts "Error while creating snapshot on 'virtio0' in the qemu monitor. after step3,It prompts following messages in the qemu monitor Snapshot devices: virtio0 bdrv_snapshot_list: error -95 Expected results: snapshot can be saved successfully. Additional info:
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion.
I suspect your snapshot device is not snapshot-capable. Please give me your complete qemu invocation.
(In reply to comment #3) > I suspect your snapshot device is not snapshot-capable. Please give me your > complete qemu invocation. CLI:/usr/libexec/qemu-kvm -rtc-td-hack -no-hpet -usbdevice tablet -drive file=/home/win7_64,if=virtio,format=raw,boot=on -net nic,macaddr=20:40:50:12:23:21,model=virtio,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -uuid a2618d4c-21f0-4c81-b0b8-8420270e82a3 -vnc :10 -boot c -cpu qemu64,+sse2 -smp 1 -m 2G -monitor stdio It seems that block device's snapshot function is disabled by default.Appending "snapshot=on" after -drive will not hit this issue eg. /usr/libexec/qemu-kvm -rtc-td-hack -no-hpet -usbdevice tablet -drive file=/home/win7_64,if=virtio,format=raw,boot=on,snapshot=on -net nic,macaddr=20:40:50:12:23:21,model=virtio,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -uuid a2618d4c-21f0-4c81-b0b8-8420270e82a3 -vnc :10 -boot c -cpu qemu64,+sse2 -smp 1 -m 2G -monitor stdio
the Image in commandLine is raw format.
Savevm function is only supported by qcow2 format.