[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] virt-install & kickstart



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.