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: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Run a script after creating a domain
From: Timo Benk <timo.benk@xxxxxx>
Date: Thu, 14 Sep 2006 14:47:11 +0200
Delivery-date: Thu, 14 Sep 2006 05:48:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <5bb00b3f0609140537k82e22d4pa8d0903ee0ed559b@xxxxxxxxxxxxxx>
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: <5bb00b3f0609140537k82e22d4pa8d0903ee0ed559b@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: RoundCube Webmail/0.1b
Hello,

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

Unfortunately that will only work at domain creation time. That means, 
the skript will not run if the domain is simply rebooted without destroying
the domain.

I ran into a similar problem while trying to make the scheduler parameters
persistent (there is no config file parameter for that matter in 3.0.2).

Until now i did not find any suitable way to solve that problem.

Greetings,
-timo


On Thu, 14 Sep 2006 14:37:32 +0200, "Henning Sprang" <henning_sprang@xxxxxx> 
wrote:
> 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.
> 
> 
> Henning
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
--
Timo Benk - Jabber ID: fry@xxxxxxxxxx - ICQ ID: #241877854
PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc



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