[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] "Hot" resizing QCow2 image using a simple python script
From: |
Laurent Coustet |
Subject: |
Re: [Qemu-devel] "Hot" resizing QCow2 image using a simple python script |
Date: |
Wed, 30 Dec 2009 09:28:04 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
Le 29/12/2009 21:49, Kevin Wolf a écrit :
> You need to really resize the L1 table and not just extend the
l1_size in the
> qcow2 header. And don't use the script with snapshots. VM state is saved
> after the end of the virtual disk, so if you extend the disk it might
overlap
> the VM state (you would need to move the VM state to make it safe with
> snapshots).
Ok.
> The right way would be a patch to qemu rather than an external python
script
> anyway. Doing it correctly would probably even be easier this way because
> things like a function for growing 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