All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Bug in lifecycle management start wrt suspended VMs
Date: Wed, 6 Dec 2006 19:11:33 +0000	[thread overview]
Message-ID: <20061206191133.GC13126@redhat.com> (raw)

With the lifecycle patches that were recently added, XenD now keeps track
of suspended domains automatically. It does not, however, stop you from
shooting yourself in the foot. eg, if you suspend a domain 'foo', it'll
quite happily let you then start it, use it for a while, shut it down,
and then restore the original state file.  This will likely trash the
filesystem of the guest. What's worse is that 'xm list' does not provide
any visual distinction between shutoff & suspended guests, so you can't
tell if there's a suspended image lying around on disk.

In essence it was possible for me to do the following sequence:

    xm create demo
    xm start demo
    xm suspend demo
    xm start demo
    xm shutdown demo
    xm resume demo

I'd suggest that the 4th command 'xm start' should not be allowed to
succeed given that there is a saved VM image for demo there from step 3.

Of course we would still need a way to recover from situation where
a resume failed - some way to explicitly blow away the saved image
and start from fresh. Perhaps  'xm start --force demo' could be used
to get rid of any state file from a suspended VM in this case ?

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

                 reply	other threads:[~2006-12-06 19:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20061206191133.GC13126@redhat.com \
    --to=berrange@redhat.com \
    --cc=xen-devel@lists.xensource.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.