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

[Xen-users] run script on DomU startup?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] run script on DomU startup?
From: Rudolph Bott <rb@xxxxxxxxxxx>
Date: Mon, 17 Mar 2008 16:07:11 +0100
Delivery-date: Mon, 17 Mar 2008 08:05:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Reply-to: rb@xxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (X11/20071022)
Hey list,

does anybody know if its possible to run a script on domU startup (or actually 
before it's started)?

I'm using xen from Debian packages (amd64 etch) with iscsi initiator. I would 
like to automate the iscsi login procedure to be able to use xen's 
domU-autostart-init-scripts without having to care if the iscsi device is 
already connected or not. e.g. something in the DomU-configuration file like

startup-script = /usr/local/bin/iscsi_check.sh <DomUname>

By convention the domU-name always equals the name of the iscsi target (at 
least the last part of it). Therefore iscsi_check.sh would check if the given 
target is already connected  and/or connect to it if neccessary.



Mit freundlichen Grüßen / with kind regards

Rudolph Bott
--
Megabit Informationstechnik GmbH
Karstr.25  41068 Moenchengladbach  Tel:02161/30898-0  Fax:-18
AG MG HRB 10141, GF: Dipl.-Ing. Thomas Tillig, Michael Benten

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] run script on DomU startup?, Rudolph Bott <=