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] slightly less random random macs

To: Henning Sprang <henning_sprang@xxxxxx>
Subject: Re: [Xen-users] slightly less random random macs
From: Tim Post <tim.post@xxxxxxxxxxxxxxx>
Date: Sat, 02 Dec 2006 02:42:08 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 01 Dec 2006 10:42:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45707431.3020402@xxxxxx>
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>
Organization: Net Kinetics
References: <1164793951.8377.174.camel@tower> <45707431.3020402@xxxxxx>
Reply-to: tim.post@xxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2006-12-01 at 19:28 +0100, Henning Sprang wrote:

> 
> One point coming to my mind would be, to implement this in python and
> directly put it into the vm config files.
> 

I do things centrally. 1 dom-u controls literally hundreds of xen
servers. I put everything into a sqlite DB, then use simple php to
enable me to :

lynx --source http://domain.com/get.php?domname=xyz > domu.cfg

from the nodes.

This allows me to signal any node to pick up a config file, and signal
my nas to create the appropriate LVM backends and viola :)

My bash scripts help create the info in the sqlite db.

If python was a spoken language I'd studder horribly, but I know it can
be accomplished with 1 or 2 lines of code. Then again I studder with
most spoken languages anyway. 

> (unfotunately I had some troubles including code in vm config files, so
> it needed to be copied in each file manually...)

Me too :)

> O.K., these are rather generic thoughts on how to add functionality to
> vm config scripts...

There's always ways to make something better, but stick with what you
know .. until you know better :) The end result : it needs to work for
you.

Best,
-Tim



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

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