I am trying to install Redhat over the network via http as it has mentioned in the book.
I did following steps:
1.service httpd start [o.k]
2.chkconfig httpd on
3.mkdir /var/www/pub
4.mount /dev/cdrom /mnt
5.cp -vR /mnt/* /var/www/pub/
6.mkdir /var/www/pub/kickstart
7. I do not have tree command so I can't see the directory structure
8. touch /var/www/pub/kickstart/abc.cfg
This is my abc.cfg
******************************************
install
lang en_US.UTF-8
keyboard us
key --skip
text
skipx
url --url
http://192.168.11.130/pub/
network --device eth0 --hostname Client01 --bootproto static --ip 192.168.11.131
--netmask 255.255.255.0 --gateway 192.168.11.2 --nameserver 192.168.11.130
rootpw --iscrypted <encrypt_password>
firewall --enabled --port=22:tcp
timezone --utc America/New_york
bootloader --location=mbr --driveorder=sda
clearpart --drives=sda --all --initlabel
part /boot --fstype ext3 --size=100
part / --fstype ext3 --size=5000
part swap --size=1000
part /home --fstype ext3 --size=100 --grow
%packages
@Core
@Base
openssh-clients
openssh-server
**************************************************
My 1ST iptables:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: INPUT ACCEPT [0:0]
: FORWARD ACCEPT [0:0]
: OUTPUT ACCEPT [0:0]
–A INPUT –P icmp –j ACCEPT
–A INPUT –i lo –j ACCEPT
–A INPUT -p tcp –m state --state NEW –m tcp --dport 22 –j ACCEPT
–A INPUT -p tcp –m state --state NEW –m tcp --dport 80 –j ACCEPT
–A Forward -m physdev --physdev-is-bridged –j ACCEPT
–A INPUT -j REJECT --reject-with icmp-host-prohibited
–A Forward -j REJECT --reject-with icmp-host- prohibited
COMMIT
***********************************
I also tried some other iptables as someone suggested me, but kickstart is not working.
on boot prompt I am passing this command:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
boot: linux ks=http://192.168.11.130/pub/kickstart/abc.cfg append ip=192.168.11.131 netmask=255.255.255.0
I am getting this error:
*******************************
" Unable to download the kickstart file. Please modify the kickstart parameter below or press cancel to proceed as an interactive instalation"
My home network setup:
*********************
I have internet modem/router:
default gateway:192.168.1.1
I have conected one 24 port switch with internet router/modem. All other pcs are connected with switch.
they are getting ip address in the range of 192.168.11.1 -192.168.11.254.
I have one physical machine with windows 7. Vmware 9 workstation is running in this pc. I have installed 4 Redhat linux enterprize edition servers on vmware.ALL 4 VM machines can ping and send data to each other. Network setup looks ok for these machines.
MY OBJECTIVE:
***********************************************
I am trying to install another linux on vmware via network using kickstart. I am using one of virtyal server RHL0SM001 for kickstart setup and want to install virtual client machine RHL0CM001 through network via kickstart file. But I am getting errorunable to download kickstart file.
AT the boot prompt new client machine (RHL0CM001)can ping server machine i.e RHL0SM001.
What I don't have:
******************************************************
I do not have ftp package in my machine. so I can not try with ftp either. I dont know if I can install ftp package from internet somewhere. I tried everything with yum or every possible option for ftp but no luck.
I spend 16 hrs yester day doing this lab but no luck. Please help me to get through this lab.