Bug 616525

Summary: savevm needs to reset block info on each new save
Product: Red Hat Enterprise Linux 6 Reporter: Alex Williamson <alex.williamson>
Component: qemu-kvmAssignee: Alex Williamson <alex.williamson>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: lihuang, llim, mkenneth, syeghiay, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.98.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:26:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 596328    
Bug Blocks:    

Description Alex Williamson 2010-07-20 17:29:20 UTC
Description of problem:
savevm states continue from each other such that we can't restore from an intermediate version.

Version-Release number of selected component (if applicable):


How reproducible:
100%


Steps to Reproduce:
1.
# qemu-img create -f qcow2 test.qcow2 2G
Formatting 'test.qcow2', fmt=qcow2 size=2147483648 encryption=off cluster_size=0 

2.
# /usr/libexec/qemu-kvm -hda test.qcow2 -monitor stdio -vnc :0
QEMU 0.12.1 monitor - type 'help' for more information
(qemu) savevm
(qemu) savevm
(qemu) savevm
(qemu) info snapshots
Snapshot devices: ide0-hd0
Snapshot list (from ide0-hd0):
ID        TAG                 VM SIZE                DATE       VM CLOCK
1                                1.2M 2010-07-20 11:22:54   00:00:14.365
2                                1.2M 2010-07-20 11:23:00   00:00:16.872
3                                1.2M 2010-07-20 11:23:06   00:00:19.169
(qemu) quit

3.
# /usr/libexec/qemu-kvm -hda test.qcow2 -monitor stdio -vnc :0
QEMU 0.12.1 monitor - type 'help' for more information
(qemu) loadvm 2
Ack, bad migration stream!
Segmentation fault (core dumped)

Actual results:
loadvm failed, segfault

Expected results:
loadvm succeeds

Additional info:
This problem is introduced by bz596328

Patch posted upstream http://lists.nongnu.org/archive/html/qemu-devel/2010-07/msg01114.html

Comment 5 releng-rhel@redhat.com 2010-11-10 21:26:44 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.