I had exactly the same problem using custom kernel on Debian GNU/Linux /
qemu-kvm 1.1.1 or 1.2.0.
CPU: Intel(R) Xeon(R) CPU E5-2667 0 @ 2.90GHz stepping 7 microcode 0x70b
I have two solutions: (VERY UGGLY) patch the kernel to remove intel perf
events (hardware events):
--- ../linux-3.4.10-fai-se
The best approch for me I think is to extend "convert".
Example:
qemu-img -f qcow2 -O qcow2 original5G.qcow2 output10G.qcow2 +5G
Thanks,
--
Laurent coustet
ng the L1 table already exist.
>
Yeah, I was just experimenting with this script.
The second version I tried of the script I wrote was copying old L1 then
padding to l1_table_size, and shifting all others offsets. Are there
other things to care about, like L2 table, and refcount table ?
Thanks,
--
Laurent Coustet
Le 29/12/2009 16:32, Laurent Coustet a écrit :
Le 29/12/2009 14:07, Laurent Coustet a écrit :
use at your own risks !
Don't use it, I just forgot to move all datas if l1 needs more blocks..
Le 29/12/2009 14:07, Laurent Coustet a écrit :
Hi,
I just wrote a small python script that helps resizing a QCow2 image
without rewriting it.
I'm sure that's not the correct way to do it, but it seems to work well.
Beware this script DO NOT SUPPORT SHRINKING !! It do not check any
--
Laurent Coustet
http://ed.zehome.com/
#!/usr/bin/env python
## (c) 2009 Laurent Coustet
# Clarisys Informatique
#
# Script to resize a qcow2 qemu image
import struct
import decimal
qcow2header = struct.Struct(">IIQIIQIIQQIIQ") # Big Endian
def sizeof_fmt(num):
bak = num
for