[libvirt] kvm savevm/loadvm
Serge Hallyn
serge.hallyn at canonical.com
Tue Jul 20 20:29:51 UTC 2010
Quoting Jason Krieg (jason.krieg at collax.com):
> 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
Thanks! That worked beautifully. Well, interestingly, the
first time I made this change, the '<driver name=' line got
cut off so the type and cache options were gone, but once it
let those stick, it worked great.
thanks!
-serge
More information about the libvir-list
mailing list