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" My kickstart file: #platform=x86, AMD64, or Intel EM64T # System authorization information auth --useshadow --enablemd5 # System bootloader configuration bootloader --location=mbr # Partition clearing information clearpart --all --initlabel # Use text mode install text # Firewall configuration firewall --disabled # Run the Setup Agent on first boot firstboot --disable # System keyboard keyboard us # System language lang en_US # Installation logging level logging --level=info # Use network installation url --url=http://172.16.10.101/x86_64/ # Network information network --bootproto=static --device=eth0 --gateway=172.16.10.1 --ip=172.16.10.150 --nameserver=172.16.10.1 --netmask=255.255.255.0 --onboot=on #Root password rootpw password # SELinux configuration selinux --disabled # Do not configure the X Window System skipx # System timezone timezone America/Los_Angeles # Install OS instead of upgrade install # Disk partitioning information part /boot --fstype="ext3" --size=100 part pv.2 --size=0 --grow volgroup VolGroup00 pv.2 logvol swap --fstype="swap" --name=LogVol01 --vgname=VolGroup00 --size=2048 logvol / --fstype="ext3" --name=LogVol00 --vgname=VolGroup00 --size=1 --grow %packages @base @mysql @mail-server @web-server @dns-server @ftp-server _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com http://lists.xensource.com/xen-users
Daniel, Could we pass the configuration file at nfs location instead of at webserver ? Thanks, Trilok On 6/2/07, Daniel P. Berrange <berrange@redhat.com> 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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Aug 13, 2007 at 03:02:05PM +0530, trilok nuwal wrote:> Daniel, > > Could we pass the configuration file at nfs location instead of at webserver > ?Yeah, I think anaconda supports that. 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@lists.xensource.com http://lists.xensource.com/xen-users
Daniel P. Berrange wrote:> On Mon, Aug 13, 2007 at 03:02:05PM +0530, trilok nuwal wrote: > >> Daniel, >> >> Could we pass the configuration file at nfs location instead of at webserver >> ? >> > > Yeah, I think anaconda supports that. > > Dan. >It does. Any firewalls in the way have to support it, and I don''t like NFS for various support reasons, but it works. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users