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/
Home Products Support Community News


Re: [Xen-users] How to wait for a destroying domU?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to wait for a destroying domU?
From: Gregory Orange <gregory.orange@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Jul 2008 14:24:26 +0800
Delivery-date: Wed, 23 Jul 2008 23:25:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4887EF49.8000104@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: RPS MetOcean
References: <9c2cca270807170518u2c633c93r6560262a32ca41e0@xxxxxxxxxxxxxx> <FCCC8920-B1D8-4DA5-8301-7AA9533495D4@xxxxxxxxxxxxx> <9c2cca270807172119l26eeb022x623c70e0d3e00665@xxxxxxxxxxxxxx> <4887EF49.8000104@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (Windows/20080213)
Steve Wray wrote:
Amos Shapira wrote:
2008/7/18 Robert Read <rread@xxxxxxxxxxxxx>:
Well, you easily make a command out of something like this:
  while xenstore-exists /local/domain/$DOMID/vm ; do sleep 1; done
Ah good! Thanks. That's the sort of thing I was looking for.
Looks like I'll have to learn about the entire xenstore-* command family.
What I do, on the commandline anyway is:
xm shutdown $DOMU ; xm console $DOMU ; do some stuff
the console exits to the dom0 commandline when the domU finishes.

Slightly less clean, I use
xm shutdown $DOMU; wait=0; until (( $wait == 1 )); do
  sleep 10; xm list | egrep "$DOMU" > /dev/null; wait=$?

I think it's time for me also to go and read about xenstore-*


Xen-users mailing list