[libvirt] booting a snapshot

Hi all I have created a snapshot of qcow2 image as qemu-img create -f qcow2 -b guestqcow2 snapshot1 now I want to boot from this snapshot but I don't know how can any one tell me ? DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------

Hello, On Wednesday 21 March 2012 08:02:08 Pankaj Rawat wrote:
I have created a snapshot of qcow2 image as
qemu-img create -f qcow2 -b guestqcow2 snapshot1
now I want to boot from this snapshot but I don't know how
You remove that snapshot file (or move it aside) and create the samefile again with exactly the same command you used above. Then you're back to the state as of 'guestqcow2'. "snapshot1" only stores the delta relative to "guestqcow2", so all your changes are in that file. To undo them, you just need to to forget those changes and start with a new snapshot file, where the delta is zero. Hope that helps. Sincerely Philipp -- Philipp Hahn Open Source Software Engineer hahn@univention.de Univention GmbH be open. fon: +49 421 22 232- 0 Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99 http://www.univention.de/
participants (2)
-
Pankaj Rawat
-
Philipp Hahn