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] virt-install & kickstart

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: Re: [Xen-users] virt-install & kickstart
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: Mon, 13 Aug 2007 15:02:05 +0530
Cc: Brent Meshier <brent@xxxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 13 Aug 2007 02:32:33 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=tptjzAaP5RZaf90zhmuZ+CgfXuATXI7J7PFPnFgyHzgix+szu0iWSgPCeGz3wP21m+jMEtDUMCzflFY+P9dyofo3XPq7xaQOSZupe36HK/uJK5SsWHI6GpKDLMfaFkWNhKH0CqNPJsJSLPCtEUMIV5C3NgGES2+HO5/llvYhkWA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=lt3PzY+4JByzkrIggq/xopGI9CqXT5xOpS07PD5XQiyJ5ntqNrtiZp9Gtj8DXwKLhGd2R/ZYedh6BhLMGN7nZosamdWWE6mVrJ9C9HH/ToIZed3YFkfMYwROnQmz5a0Y31+xh67UfzICri7E+Ne8iVBi5GhYkJZAWK18iI12C1A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070601193756.GI6071@xxxxxxxxxx>
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: <6E8C86DBF08D1642BC8DB90F7A79D96095DBBD@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20070601193756.GI6071@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Daniel,

Could we pass the configuration file at nfs location instead of at webserver ?

Thanks,
Trilok

On 6/2/07, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
On Fri, Jun 01, 2007 at 03:31:26PM -0400, Brent Meshier wrote:
> Maybe I'm going about this the wrong way, but I want to create 10
> virtual domains each with their own IP (172.16.10.150 -> 172.16.10.160)
>
>
>
> I was using virt-install, but I then have to modify the kickstart file,
> changing the IP address manually each time.  Is there an easier way
> where I can specify the IP address for eth0 on the command line?
>
>
>
> virt-install
> -p-location=http://172.16.10.101/x86_64/-noautoconsole-file=/dev/vg_xen/
> lv_dom1-name=dom1-ram=4096-vnc -x "ks=http://172.16.10.101/ks.cfg
> ip=172.16.10.150 netmask= 255.255.255.0 dns=65.24.7.6
> gateway=172.16.10.1"

One option since your kickstart is already being hosted on a web server
is to simply make the kickstart file be a CGI script - and have a parameter
you pass to it to substitute in the IP address. eg,

-x "ks=http://172.16.10.101/ks.cfg?ip=172.16.10.150"

Or getting slightly more advanced, instead of passing in an IP address,
pass in a MAC address & then use that mac to lookup a whole bunch of
per-host custom parameters for your kickstar

Dan
--
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/                -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=|

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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>