Bug 589461 - savevm function can not use in qemu monitor
savevm function can not use in qemu monitor
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.0
All Linux
medium Severity medium
: rc
: ---
Assigned To: Markus Armbruster
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-06 04:30 EDT by Mike Cao
Modified: 2013-01-09 17:32 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-06-07 05:29:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mike Cao 2010-05-06 04:30:34 EDT
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:
Comment 2 RHEL Product and Program Management 2010-05-06 05:35:53 EDT
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.
Comment 3 Markus Armbruster 2010-06-05 02:30:17 EDT
I suspect your snapshot device is not snapshot-capable.  Please give me your complete qemu invocation.
Comment 4 Mike Cao 2010-06-07 03:15:02 EDT
(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
Comment 5 Mike Cao 2010-06-07 04:25:10 EDT
the Image in commandLine is raw format.
Comment 6 Mike Cao 2010-06-07 05:28:41 EDT
Savevm function is only supported by qcow2 format.

Note You need to log in before you can comment on or make changes to this bug.