KVM and snapshots

Rick Stevens ricks at alldigital.com
Wed Nov 7 23:25:12 UTC 2012


On 11/07/2012 02:58 PM, Tommy Pham issued this missive:
> On Wed, Nov 7, 2012 at 2:28 PM, Rick Stevens <ricks at alldigital.com> wrote:
>> On 11/07/2012 02:20 PM, Tommy Pham issued this missive:
>>
>>> Hi,
>>>
>>> Is it possible to have multiple snapshots per VM for KVM similar to
>>> VMWare?
>>
>>
>> Have a look at the "SNAPSHOT COMMANDS" section of "man virsh".
>> ----------------------------------------------------------------------
>> - Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
>> - AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
>> -                                                                    -
>> -   "Do you suffer from long-term memory loss?"  "I don't remember"  -
>> -                            -- Chumbawumba, "Amnesia" (TubThumping) -
>> ----------------------------------------------------------------------
>> --
>
> Hi Rick,
>
> I don't know how I missed it
>
> su -c "virsh save <virtual machine (name | id | uuid)> <filename>"

Note that "virsh save" will save the memory image of the domain, then
shut it down. It's not really a snapshot--more like a checkpoint.

You probably want something more like

     su -c virsh snapshot-create <domainname> <xmlfilename> --atomic

to create a real snapshot and leaving the domain in a run state. As I
said, look at the "SNAPSHOT COMMANDS" part of virsh's man page to get
the real lowdown.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-       Charter Member of the International Sarcasm Society          -
-                "Yeah, like we need YOUR support!"                  -
----------------------------------------------------------------------


More information about the users mailing list