[ kvm-Bugs-2099075 ] qcow2 images corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bugs item #2099075, was opened at 2008-09-07 22:22
Message generated for change (Comment added) made by avik
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2099075&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Fabio Coatti (cova)
Assigned to: Nobody/Anonymous (nobody)
Summary: qcow2 images corruption

Initial Comment:
I'm running a 32bit vm under x86_64 AMD host with kvm-74. using raw image all works fine, but with qcow2 image I'm able to get deep fs corruption with a disk intensive operation like kernel compilation.
it happened every time I tried, and -no-kvm-irqchip didn't make any difference.

I've browsed the archives for hints, but no luck.

Details:
Host (64):
Linux  2.6.26.3 #6 SMP PREEMPT Sun Aug 31 16:00:51 CEST 2008 x86_64 AMD Phenom(tm) 9850 Quad-Core Processor AuthenticAMD GNU/Linux
single CPU/quad core.
fs on image partition: XFS

Gentoo ~amd64, kvm compiled on host system.
Guest (32):
Linux  2.6.26.3vm #4 Tue Aug 26 17:29:00 CEST 2008 i686 QEMU Virtual CPU version 0.9.1 AuthenticAMD GNU/Linux
Gentoo x86


command line:
kvm -m 1G -drive file=test.qcow2,if=virtio,boot=on -localtime -net nic,macaddr=DE:AD:BE:EF:15:5,model=virtio -net tap
fs on image: ext3

kvm-img info of image that show corruption:

image: test.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 103M
cluster_size: 4096
backing file: gentoo-i386-virtio.qcow2 (actual path: gentoo-i386-virtio.qcow2)

kvm-img info of working image:

image: gentoo-i386-virtio.img
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 4.5G

virtio partitions are in use on guest machine

Let me know it other details are needed.

Thanks for any answer. 


----------------------------------------------------------------------

>Comment By: Avi Kivity (avik)
Date: 2009-08-10 15:22

Message:
qcow2 problems should be fixed in kvm-88.

----------------------------------------------------------------------

Comment By: Fabio Coatti (cova)
Date: 2008-09-08 00:46

Message:
Logged In: YES 
user_id=220554
Originator: YES

Many thanks for the quick answer.

Not sure about how to get kvm head, I've used
http://people.qumranet.com:8888/avi/snapshots/kvm-snapshot-20080906.tar.gz
The result is the same: fs corruption using qcow2 image.
as suggested, I've tried with ide emulation and it seems that I'm unable
to reproduce the bug, with this command line:

kvm -m 1G test-hda.qcow2 -localtime -net
nic,macaddr=DE:AD:BE:EF:15:5,model=rtl8139 -net tap

all goes fine: 3 kernel compilation on the same image, rebooting each
time, without glitches.

maybe it's related to virtio disk driver?

Of course I'm available for other info and tests, if needed.

Thanks. 


----------------------------------------------------------------------

Comment By: Dor Laor (thekozmo)
Date: 2008-09-07 23:39

Message:
Logged In: YES 
user_id=2124464
Originator: NO

Hi there,

Can you first check against kvm head, there was a missing tlb flush that
was fixed.
Second, can you replace virtio with scsi/ide and check if the bug still
exist?
10x

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2099075&group_id=180599
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux