qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 4/8] replay: save/load initial state


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 4/8] replay: save/load initial state
Date: Tue, 20 Sep 2016 15:53:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0


On 20/09/2016 15:51, Pavel Dovgalyuk wrote:
>> From: Paolo Bonzini [mailto:address@hidden
>> On 20/09/2016 15:37, Pavel Dovgalyuk wrote:
>>>> c) no rrsnapshot implies -snapshot:
>>>>    without overlay:
>>>>       -drive file=disk.raw,if=none,id=img-direct
>>>>       -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay
>>>>
>>>>    with overlay:
>>>>      -drive file=foo.qcow2,if=none,id=img-direct
>>>>      -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay
>>>>      -icount ...,rrsnapshot=snapname
>>>
>>> But how record will create this overlay?
>>> This method requires creating overlay manually, because backing file is
>>> not specified at all.
>>
>> You create it manually, or you just use a .qcow2 file to begin with for
>> your image.  Then:
>>
>> 1) if you specify no snapshot, a temporary .qcow2 file is created on top
>> so data is not destroyed
>>
>> 2) if you specify a snapshot, that snapshot is preserved (so you don't
>> lose the base state even though the file changes)
> 
> Now I see.
> This seems ok, but:
>  - this approach adds some garbage to original disk image
>  - won't work with raw images

Yes, for raw images or if you want to keep the pristine image you have
to do a "qemu-img create -f qcow2 -b disk.raw foo.qcow2".

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]