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] Running scripts at domain creation/destruction?

To: John Byrne <john.l.byrne@xxxxxx>
Subject: Re: [Xen-devel] Running scripts at domain creation/destruction?
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Sat, 10 Dec 2005 12:46:10 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 10 Dec 2005 12:47:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <439A29C4.8010901@xxxxxx>
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>
References: <439A29C4.8010901@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Fri, Dec 09, 2005 at 05:05:08PM -0800, John Byrne wrote:

> 
> Are there any hooks for running generic scripts/apps in domain 0 when a 
> domain is created or destroyed? I don't see any such thing in 
> xend-config.sxp.

Not per say.  This wouldn't be difficult for you to add though -- Xend has all
the information you need, so you just need to take a start-up and shutdown
script from the domain configuration, call the former on creation of the domain
(asynchronously, I presume), write the latter in the store for retrieval
by Xend, and then call it on domain destruction.

Alternatively, you could write your own tool (in Python or C would be easiest)
and watch the store in the same way as the other tools do, waiting for watches
on @introduceDomain and @releaseDomain.

> Taking it back a step, my desire is to have something in domain 0 export 
> the xen console via VNC. The reason for wanting to be available via VNC, 
> is that we expect Anthony Ligouri's frame buffer work (or something) to 
> eventually provide a VNC virtual console for para-virtualized domains. 
> If and when that happens, our tool for viewing consoles remotely will 
> continue to work.
> 
> Assuming that this is at all viable, does any have a piece of code for 
> libvncserver that might be useful as the interface between xenconsoled 
> and VNC?

I'll let others answer, as I don't know the specifics, but I do know that the
VMX guys use VNC, and I believe that VNC is used on the Xen demo CDs, so there
should be enough code lying around for you to get the bits that you need.

Ewan.

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

<Prev in Thread] Current Thread [Next in Thread>