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



Reply via email to