qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] snapshots
@ 2005-05-23  8:04 Pascal Terjan
  0 siblings, 0 replies; 11+ messages in thread
From: Pascal Terjan @ 2005-05-23  8:04 UTC (permalink / raw)
  To: qemu-devel

hello,
qemu has -loadvm and -snapshot but I don't like having to take care of
using the right vm dump with the snapshot, and having to think to
savevm to the right file when I commit the disk.

What do you think of snapshot/commit (or an additionnal equivalent
command) working with full state ?

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

* [Qemu-devel] snapshots
@ 2010-09-27  5:47 chandra shekar
  2010-09-28  2:03 ` edison
  0 siblings, 1 reply; 11+ messages in thread
From: chandra shekar @ 2010-09-27  5:47 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

hi,everyone i want to change the default location of qemu to store
snapshots.
I have searched savem.c file completely and i am unable to find where does
qemu stores snapshots
and the relevant code for it plz help anyone,thanks

[-- Attachment #2: Type: text/html, Size: 243 bytes --]

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

* Re: [Qemu-devel] snapshots
  2010-09-27  5:47 chandra shekar
@ 2010-09-28  2:03 ` edison
  0 siblings, 0 replies; 11+ messages in thread
From: edison @ 2010-09-28  2:03 UTC (permalink / raw)
  To: chandra shekar; +Cc: qemu-devel

QCOW2 snapshots are stored inside the disk image, which is the kind of
internal snapshot.
I had send out a patch
(http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html)
last weeks, that can copy the snapshot out of the disk. FYI.

On Sun, Sep 26, 2010 at 10:47 PM, chandra shekar
<chandrashekar512@gmail.com> wrote:
> hi,everyone i want to change the default location of qemu to store
> snapshots.
> I have searched savem.c file completely and i am unable to find where does
> qemu stores snapshots
> and the relevant code for it plz help anyone,thanks
>
>

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

* [Qemu-devel] snapshots
@ 2010-10-04  4:56 chandra shekar
  2010-10-05  4:44 ` Mulyadi Santosa
  0 siblings, 1 reply; 11+ messages in thread
From: chandra shekar @ 2010-10-04  4:56 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

i have installed the patch
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html<http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html,thanks>and
do i need to compile qemu
again and how to use this patch that is what options and command i may use
in the qemu monitor to use this patch,thanks

[-- Attachment #2: Type: text/html, Size: 363 bytes --]

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

* Re: [Qemu-devel] snapshots
  2010-10-04  4:56 chandra shekar
@ 2010-10-05  4:44 ` Mulyadi Santosa
  0 siblings, 0 replies; 11+ messages in thread
From: Mulyadi Santosa @ 2010-10-05  4:44 UTC (permalink / raw)
  To: chandra shekar; +Cc: qemu-devel

Hi...

On Mon, Oct 4, 2010 at 11:56, chandra shekar <chandrashekar512@gmail.com> wrote:
> i have installed the patch
> http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html and do
> i need to compile qemu
> again and how to use this patch that is what options and command i may use
> in the qemu monitor to use this patch,thanks
>

Haven't tried it by myself, but I am quite sure you need to recompile
the whole binaries (qemu, qemu-img and so on). Just to be safe...

And as how to use it:
1. do snapshot e.g using "savevm" command in qemu monitor

2. I think it's better to shutdown the guest first to prevent in
flight disk I/O during snapshot copy, then execute:
qemu-img convert -f qcow2 -O qcow2 -s snapshot_name src_img bck_img
where:
-s is the snapshot name of the result image. This will contain ONLY
your snapshots...

src_img_bck_img: your current disk image filename which contains your snapshot.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

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

* [Qemu-devel] snapshots
@ 2010-10-12  9:13 chandra shekar
  2010-10-12  9:46 ` Stefan Hajnoczi
  0 siblings, 1 reply; 11+ messages in thread
From: chandra shekar @ 2010-10-12  9:13 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 482 bytes --]

Hi,everyone i have applied this  patch
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html  to
qemu source and compiled my qemu source and now i like to
bring the snapshot out of the image file so i used


qemu-img convert -f qcow2 -O qcow2 -s one guest1.img
where:

one -> is the snapshot i created in guest1.img and guest1.img contains
windows xp

 but i get an error

*convert: invalid option -- 's'
qemu-img: Could not open 'one'*

please someone help ,thanks

[-- Attachment #2: Type: text/html, Size: 656 bytes --]

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

* Re: [Qemu-devel] snapshots
  2010-10-12  9:13 chandra shekar
@ 2010-10-12  9:46 ` Stefan Hajnoczi
  0 siblings, 0 replies; 11+ messages in thread
From: Stefan Hajnoczi @ 2010-10-12  9:46 UTC (permalink / raw)
  To: chandra shekar; +Cc: qemu-devel

On Tue, Oct 12, 2010 at 10:13 AM, chandra shekar
<chandrashekar512@gmail.com> wrote:
>
> Hi,everyone i have applied this  patch
> http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html  to
> qemu source and compiled my qemu source and now i like to
> bring the snapshot out of the image file so i used
>
>
> qemu-img convert -f qcow2 -O qcow2 -s one guest1.img
> where:
>
> one -> is the snapshot i created in guest1.img and guest1.img contains
> windows xp
>
>  but i get an error
>
> convert: invalid option -- 's'
> qemu-img: Could not open 'one'

Looks like you used your system qemu-img tool which is not compiled
with the patch.  Make sure to use the patched binary (./qemu-img).

Stefan

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

* [Qemu-devel] snapshots
@ 2010-10-14 10:22 chandra shekar
  2010-10-14 16:51 ` Mulyadi Santosa
  0 siblings, 1 reply; 11+ messages in thread
From: chandra shekar @ 2010-10-14 10:22 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

i still get a error message  invalid option -- 's'
when using the command
./qemu-img convert -f qcow2 -O qcow2 -s firstsnapshot guest1.img

which i used after applying the patch
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01663.html

but after using
cd qemu
./configure --prefix=/usr --target-list=x86_64-softmmu
make

there is the same error
invalid option -s
plz someone help i am struck at this and my project is not going
forward,thanks

[-- Attachment #2: Type: text/html, Size: 605 bytes --]

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

* Re: [Qemu-devel] snapshots
  2010-10-14 10:22 [Qemu-devel] snapshots chandra shekar
@ 2010-10-14 16:51 ` Mulyadi Santosa
  0 siblings, 0 replies; 11+ messages in thread
From: Mulyadi Santosa @ 2010-10-14 16:51 UTC (permalink / raw)
  To: chandra shekar; +Cc: qemu-devel

On Thu, Oct 14, 2010 at 17:22, chandra shekar
<chandrashekar512@gmail.com> wrote:
> i still get a error message  invalid option -- 's'

are you sure the patch applied cleanly? And are you sure you're
rebuilding from scratch?


> plz someone help i am struck at this and my project is not going
> forward,thanks

So touching... do you consider to donate some money then? And next
time, please use proper language. Plz is english slang.... and here
it's not bronx.


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

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

* [Qemu-devel] snapshots
@ 2011-01-07  4:37 chandra shekar
  2011-01-07  9:54 ` Stefan Hajnoczi
  0 siblings, 1 reply; 11+ messages in thread
From: chandra shekar @ 2011-01-07  4:37 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

hi everyone i have got snapshot out of the image file now i would like to
analyze the snapshot
like opening it or identifying the fields in it can anyone suggest any
softwares which i can use
to open the snapshot analyze it,thanks

[-- Attachment #2: Type: text/html, Size: 241 bytes --]

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

* Re: [Qemu-devel] snapshots
  2011-01-07  4:37 chandra shekar
@ 2011-01-07  9:54 ` Stefan Hajnoczi
  0 siblings, 0 replies; 11+ messages in thread
From: Stefan Hajnoczi @ 2011-01-07  9:54 UTC (permalink / raw)
  To: chandra shekar; +Cc: qemu-devel

On Fri, Jan 7, 2011 at 4:37 AM, chandra shekar
<chandrashekar512@gmail.com> wrote:
> hi everyone i have got snapshot out of the image file now i would like to
> analyze the snapshot
> like opening it or identifying the fields in it can anyone suggest any
> softwares which i can use
> to open the snapshot analyze it,thanks

I'm not sure what format your snapshot data is in.  What exactly did you do?

qemu-img and qemu-io can be used to manipulate image data.

Check what format the data is in:
qemu-img info <snapshot-file>

Read first sector (for debugging):
qemu-io -c 'read -v 0 512' <snapshot-file>

Convert to raw image (suitable for dd, fdisk, hex editor, etc):
qemu-img convert <snapshot-file> raw-data.img

If you want to inspect savevm data (saved device state) then you're on
your own.  AFAIK there isn't an external tool to dissect it.  It would
be quickest to add some code into QEMU to dump out the info you need.

Stefan

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

end of thread, other threads:[~2011-01-07  9:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 10:22 [Qemu-devel] snapshots chandra shekar
2010-10-14 16:51 ` Mulyadi Santosa
  -- strict thread matches above, loose matches on Subject: below --
2011-01-07  4:37 chandra shekar
2011-01-07  9:54 ` Stefan Hajnoczi
2010-10-12  9:13 chandra shekar
2010-10-12  9:46 ` Stefan Hajnoczi
2010-10-04  4:56 chandra shekar
2010-10-05  4:44 ` Mulyadi Santosa
2010-09-27  5:47 chandra shekar
2010-09-28  2:03 ` edison
2005-05-23  8:04 Pascal Terjan

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).