[libvirt-users] snapshot of a raw file - how to revert ?

Kashyap Chamarthy kchamart at redhat.com
Thu Feb 15 11:53:05 UTC 2018


On Thu, Feb 15, 2018 at 11:41:37AM +0100, Lentes, Bernd wrote:

[...]

> Hi,
> 
> i found that: https://dustymabe.com/2015/01/11/qemu-img-backing-files-a-poor-mans-snapshotrollback/
> 
> I tried it and it seemed to work, although my root fs was checked
> after the commit, anything else seemed to work.  What do you think of
> this procedure ?

Instead of 'qemu-img create', I'd suggest using `virsh
snapshot-create-as` (as shown in my previous email).   This will tell
libvirt to automatically use the just created QCOW2 overlay.

But yeah, one useful bit is to use the `virt-xml` tool to point to the
desired disk image (instead of `virsh edit` that I mentioned in the
previous email):

    $ virt-xml F21server --edit target=vda \
        --disk driver_type=raw,path=./A.raw


-- 
/kashyap




More information about the libvirt-users mailing list