<div dir="ltr"><div>Hello,<br><br><br></div><div>I have following scenario:<br></div><div>- need to install very large number of physical servers <br></div><div>- RHEL repository is on the network filer (url install, NFS install available)<br></div><div>- there is no DHCP available (and it is not possible to have one - long story)<br>- I know serial number and IP for each server<br><br></div><div>My idea was to boot from installation image rhel-server-6.5-x86_64-boot.iso where I modified following:<br></div><div>- isolinux.cfg to load kickstart file<br><br>label Project<br>  menu label Project<br>  menu default<br>  kernel vmlinuz<br>  append ks=cdrom:/isolinux/ks.cfg initrd=initrd.img<br><br></div><div>add kickstart file containing network configuration in %pre script (get serial number from dmidecode, assign IP, install from network.  + configure hw raid etc etc)<br><br></div><div>Basically, something like this:<br><br><br>install<br>url --url 1.2.3.4.7/rhel-x86_64-server-6.5<br>...<br><br>%include /tmp/network<br><br><br>%pre<br>#!/bin/sh<br>#------------------------------------------------------------------------------#<br>#                     PRE-INSTALL NETWORK SETUP        #<br>#------------------------------------------------------------------------------#<br><br>echo "network --bootproto=static --vlanid=123 --ip=1.2.3.4 --netmask=255.255.248.0 --gateway=1.2.3.5 --nameserver=1.2.3.6 --device=eth0" > /tmp/network<br></div><div><br></div><div>But. System asks for network settings when booted.<br>I understand that I need to have stage2 loaded before anaconda starts %pre section. So, I need it to use stage2 from iso. But it looks for stage2 on the network when there is url as source in kickstart file. Is there any way how to tell installer:<br></div><div>- start Anaconda from CD (use local install.img), run %pre, download packages from url ?<br><br></div><div>file copied to /tmp/ks.cfg<br></div><div>setting up kickstart<br></div><div>kickstart forcing text mode<br></div><div>kickstartFromUrl<br></div><div>results of url ks, url <a href="http://1.2.3.7/rhel-x86_64-server-6.5">http://1.2.3.7/rhel-x86_64-server-6.5</a><br></div><div>trying to mount CD device /dev/sr0 on /mnt/stage2<br></div><div>drive status is CDC_DISC_OK<br></div><div>transferring /mnt/stage2/images/install.img to /tmp<br></div><div>mounted loopback device /mnt/runtime on /dev/loop0 as /tmp/install.img   #Perfect<br></div><div>Looking for updates in /mnt/stage2/images/updates.img<br></div><div>Looking for product in /mnt/stage2/images/product.img<br></div><div>mounted loopback device /tmp/product-disk on /dev/loop7 as /mnt/stage2/images/product.img<br></div><div>umounting loopback /tmp/product-disk /dev/loop7  <br></div><div>umounting loopback /mnt/runtime /dev/loop0                      #Why?? <br></div><div>no stage2= given, assuming <a href="http://1.2.3.7/rhel-x86_64-server-6.5/images/install.img">http://1.2.3.7/rhel-x86_64-server-6.5/images/install.img</a>   #you have it in /tmp already!<br></div><div>setting language to en_US.UTF-8<br></div><div>starting STEP_METHOD<br></div><div>need to set up networking<br>...<br><br></div><div>Do you have any idea if it possible to somehow change this stage2 behavior? I found Anaconda boot options but I am unable to set stage2 either by stage2= or inst.stage2=.  <br></div><div>(Any other idea how to set IP in ks.cfg and use it for packages downloading without DHCP would be also appreciated.) <br></div><div><br></div><div><br></div><div><br><br><br></div><div><br></div><div><br><br></div><div><br></div><div><br></div></div>