I created a new VM using an Ubuntu server iso.

Then to create the snapshot:

virsh snapshot-create-as ubuntu ubuntu-snap "snap description" --disk-only --atomic

I started a apt-get update and while it was running observed that the original .img was not being updated but that the snap img was.

After a bit:

virsh blockpull --domain ubuntu --path /var/lib/libvirt/images/ubuntu.ubuntu-snap --base /var/lib/libvirt/images/ubuntu.img --wait --verbose

virsh blockpull --domain ubuntu --path /var/lib/libvirt/images/ubuntu.ubuntu-snap --wait --verbose

virsh snapshot-delete ubuntu ubuntu-snap --metadata

other interesting commands

virsh snapshot-list ubuntu

-- Marcos Woehrmann - 2014-12-21


Created ubuntu vm with 250 gb of disk.

Ran snapshot:

virsh snapshot-create-as ubuntu snap "test snap" --disk-only --atomic

this takes no time and creates the file /var/lib/libvirt/images/ubuntu.snap (the volume name is ubuntu.img).

To see the snapshot info:

virsh snapshot-list ubuntu

-- Marcos Woehrmann - 2014-12-21

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2014-12-21 - MarcosWoehrmann
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2014 Artifex Software Inc