WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Bug in lifecycle management start wrt suspended VMs

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Bug in lifecycle management start wrt suspended VMs
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Wed, 6 Dec 2006 19:11:33 +0000
Delivery-date: Wed, 06 Dec 2006 11:11:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
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  -=| 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Bug in lifecycle management start wrt suspended VMs, Daniel P. Berrange <=