[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    Re: [libvirt-users] difference between ` virsh save ` and `virsh snapshot
From:       Eric Blake <eblake () redhat ! com>
Date:       2012-11-13 0:25:18
Message-ID: 50A1936E.5050106 () redhat ! com
[Download RAW message or body]


On 11/12/2012 03:58 AM, zhijun liu wrote:
> what the difference between ` virsh save ` and  `virsh snapshot`? are they
> all used for backup for vm?have any details articles to introduce vm bakcup
> or image bakcup with libvirt?
> 
> thanks in advance.

'virsh save' saves _just_ memory state, and then shuts down the guest.
If you alter the disks externally before restoring, you've hosed your guest.

'virsh snapshot' has more features.  In fact, when libvirt 1.0.1 is
released, 'virsh save $dom $file' will be shorthand for 'virsh
snapshot-create-as --no-metadata $dom --memspec $file --diskspec
vda,snapshot=no' for a guest with a single disk named vda.  But right
now, we're still working on getting all the corner cases right for that
sort of usage.

Yes, both commands can be used in VM backup; the list archives have
several threads on these topics (it's a hot question lately).

If you have more specific questions (and when I have more time than I
had for this email), I'd be glad to provide more details.

-- 
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic