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-users

Re: [Xen-users] Run a script after creating a domain

To: "Roberto Gonzalez Azevedo" <rgonzalez@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Run a script after creating a domain
From: "Henning Sprang" <henning_sprang@xxxxxx>
Date: Thu, 14 Sep 2006 14:37:32 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Sep 2006 05:38:15 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ZA5lQm1eDG1oY9p8cL7N/7GtX2pqBq4ZLnJMLz6izObrvvsPqnM/6LnxiavC+ALR4kOPZRso+pxNNGXw0HzewOCO4AB9ICJYLpQVMfSzjgnM6KL0t9M0BulKiZBEO88shHIQHTZBKUuwzVHbZX1xH876gMhty8UZ3/9HNbFRp+Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <450893C0.50505@xxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <450893C0.50505@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 9/14/06, Roberto Gonzalez Azevedo <rgonzalez@xxxxxxxxxxxxxxx> wrote:
[...]
Is it possible to run a script after creating a domain ?

Xen runs the network-script defined in the configuration.

Although you might not doing network-based stuff and so it might be
misleading to do other things there, you could append the start of
your script onto the network script.

Another way would be to let the domain's config file run a script with
a python syscall at the end (have it not exactly in my mind how this
should be done, so no example, sorry) of the config file, as config
files are only python scripts.

Henning

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