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

Re: [Xen-devel] [PATCH] add a command to get the state of VMs

To: "Ian Jackson" <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] add a command to get the state of VMs
From: "James Song" <jsong@xxxxxxxxxx>
Date: Mon, 28 Jun 2010 21:04:59 -0600
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 28 Jun 2010 20:06:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19492.47858.916089.672139@xxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <28989229.post@xxxxxxxxxxxxxxx> <19492.47858.916089.672139@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


>>> Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> 2010-6-25 22:19 >>>
James (song wei) writes ("[Xen-devel] [PATCH] add a command to get the state of VMs"):
> add a command "domstate" to get the state of Vms, which may have one state of
> {'shutoff', 'idle','shutdown','running','crashed','paused' or 'paused by
> admin"}.

I'm going to apply this patch, but:

That you wrote this patch suggests that you're using the xend "managed
domains" feature.  This feature is not supported by the new xl/libxl
tools, and the current plans are to phase out xend.

Xend will still be in 4.1 but will very likely not be the default
toolstack in 4.1.  Personally at some point I hope it will be
removed; it's unreliable and unmaintainable.
 
-Sorry for replying late. By now, xl/libxl only contain part of function xm/xend. What the release date of 4.1 and would xl/libxl be enhanced in it?


So you may want to consider a migration path away from xend "managed
domains".  The xl toolstack supports the init.d-based machinery for
automatically saving and restoring domains on dom0 reboot;
 
- Yeah, I could get the status of VMs from Hypervisor by hypercall. I would implement it in xl/libxl.
 
 if you need a more heavyweight approach then XCP may be more to your liking.
 
-I am looking at it.

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