qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Loading snapshot with readonly qcow2 image
@ 2018-11-30 14:44 Michael Spradling
  2018-11-30 14:58 ` Eric Blake
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Spradling @ 2018-11-30 14:44 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

Hello,

I would like to resume a snapshot via the command line option -loadvm
with a read only QCOW2 file.  For my use case, I would ideally like to
load multiple instances of different snapshots from the same QCOW2 image.

It seems this is not possible at the moment as when a snapshot is loaded, QEMU
copies some meta data around in the qcow2 image.

I have also tried to use the "-snapshot" option, which to my understanding
creates a new temporary QCOW2 file with a backing file pointing the original
image passed on the command line.  This also does not work, when looking
through the source it appears QEMU only supports loading snapshots from writable
QCOW2 images and doesn't support loading from images in backing files.

My question is has anyone looked into loading snapshots from a backing
file?  I have attempted to look through the code and this looks to be
difficult.  If I attempt to add support for this is there any general
advice to follow?  Any other ideas?

Thanks,
Michael

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-14 20:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-30 14:44 [Qemu-devel] Loading snapshot with readonly qcow2 image Michael Spradling
2018-11-30 14:58 ` Eric Blake
2018-12-13 18:33   ` Michael Spradling
2018-12-13 21:43     ` Eric Blake
2018-12-14 16:03       ` Michael Spradling
2018-12-14 20:28         ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).