[libvirt] kvm savevm/loadvm
Jason Krieg
jason.krieg at collax.com
Tue Jul 20 14:59:18 UTC 2010
On 07/20/2010 04:24 PM, Serge Hallyn wrote:
> Quoting Daniel P. Berrange (berrange at redhat.com):
>
>> On Tue, Jul 20, 2010 at 05:17:43AM -0500, Serge Hallyn wrote:
>>
>>> Hi,
>>>
>>> virsh has save/restore to do a one-time save+shutdown. But it
>>> does not expose kvm's savevm/restorevm, which let's me do
>>> incremental snapshots. Is there a specific reason why that
>>> is not exposed in libvirt, or is it just that noone has
>>> implemented it?
>>>
>> This is included in the 'snapshot' APIs / virsh commands as of 0.8.1
>> libvirt release
>>
> Oh, excellent! (Alas, my libvirt 0.8.1 doesn't seem to think that
> my qcow2 images can support snapshots, but I"ll have to look into
> that some more)
>
>
You will need to set the driver type <driver name='qemu' type='qcow2'/>
example:
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writethrough'/>
<source file='/var/lib/vm/data/images/debian.img'/>
<target dev='vda' bus='virtio'/>
</disk>
Regards,
Jason
More information about the libvir-list
mailing list