All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <weil@mail.berlios.de>
To: Amador Pahim <amador@pahim.org>
Cc: Stefan Hajnoczi <stefanha@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] -snapshot
Date: Thu, 16 Dec 2010 19:16:16 +0100	[thread overview]
Message-ID: <4D0A5770.40308@mail.berlios.de> (raw)
In-Reply-To: <AANLkTikMX6rD8idVG4Wt8n_ZWi4oLVbSGLARug8fi=yk@mail.gmail.com>

Am 16.12.2010 18:45, schrieb Stefan Hajnoczi:
> On Thu, Dec 16, 2010 at 4:34 PM, Amador Pahim <amador@pahim.org> wrote:
>> Thank you for your answer. Just one more question: If, while my
>> "snapshot" vms are running, the main disk is modified by a non
>> "snapshot" vm? For example, installing some extra software.. this can
>> freeze vms or something?
>
> Correct, it is not safe to modify the base image while there is
> another disk image backed off it.
>
> The reason for this is that the image only needs to store the changes
> that were made on top of the base image. For anything which hasn't
> been modified it will go back to the base image and read data from
> there.
>
> If you modify the base image, then the filesystem in the base image is
> not longer what your image file was created from and you have an
> inconsistent view of the disk. It leads to odd behavior and is
> unsafe.
>
> Stefan

There are useful scenarios where using the same disk
simultaneously from a snapshot vm and a real system
works.

If you have a hard disk with a dual boot configuration,
it is sometimes useful to boot one configuration with
the real system, then start qemu and boot the second
configuration.

Even booting the same configuration twice
(once with the real machine, once with qemu snapshot)
is sometimes useful and works to a limited degree.
It is a simple way to try new bootloader configurations
or other boot setups.

Regards
Stefan

  reply	other threads:[~2010-12-16 18:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16 16:21 [Qemu-devel] -snapshot Amador Pahim
2010-12-16 16:28 ` Stefan Hajnoczi
2010-12-16 16:34   ` Amador Pahim
2010-12-16 17:45     ` Stefan Hajnoczi
2010-12-16 18:16       ` Stefan Weil [this message]
2010-12-16 19:00         ` Amador Pahim
2010-12-17  9:52         ` Kevin Wolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D0A5770.40308@mail.berlios.de \
    --to=weil@mail.berlios.de \
    --cc=amador@pahim.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.