[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [libvirt] Question regarding Snapshots
From: |
Kashyap Chamarthy |
Subject: |
Re: [Qemu-devel] [libvirt] Question regarding Snapshots |
Date: |
Mon, 27 Feb 2017 14:17:57 +0100 |
User-agent: |
Mutt/1.6.0.1 (2016-04-01) |
On Mon, Feb 27, 2017 at 01:33:56PM +0100, Kashyap Chamarthy wrote:
[...]
> > > Can you make a snapshot, then go back to the base and ignore that snapshot
> > > like a closed branch, make another snapshot, and then go back and forth
> > > from each to each?
>
> If you edit the '--disk' element as above and point to the right
> 'snapshot', you should be able to switch between several of them.
[...]
> And conveniently, you can tell libvirt to not track the metadata:
>
> $ virsh snapshot-create-as --domain vm1 guest-state1 \
> --diskspec vda,file=/export/overlay1.qcow2 \
> --disk-only --atomic --no-metadata
>
> This way, libvirt will not track 'overlay1.qcow2'. But if you do need
> it, as you know, just update the
Err, unfinished sentence there. Meant to write: just update the
'source file' attribute in the guest XML, pointing to the said disk.
> For the long answer to the complications involved in reverting to
> external snapshots, refer this (long read):
>
> https://wiki.libvirt.org/page/I_created_an_external_snapshot,_but_libvirt_will_not_let_me_delete_or_revert_to_it
[...]
--
/kashyap