Kickstart Using Pxeboot and NFS: Server Side
Kickstart Using Pxeboot and NFS: Server Side
Server Side:
cd /home
mkdir RHELdump
cp –fr /media/ RHEL DVD/ /home/RHELdump/
Configuring DHCP:
1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=ServerMACAddress
IPADDR=192.168.1.2
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes
2. yum install dhcp*
3. cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
4. vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
host cutslinuxserver02 {
hardware Ethernet ClientHWaddr;
fixed-address 192.168.1.15;
next-server 192.168.1.2;
filename “linux-install/pxelinux.0”;
}
}
5. service dhcpd restart
Configuring NFS:
1. vi /etc/exports
/home/RHELdump 192.168.1.15(ro,sync)
2. exportfs –a
3. showmount –e
Output should be as follows:
Export list
/home/RHELdump 192.168.1.15
4. service portmap start
5. service nfs start
6. service iptables stop
label local
kernel RHEL5Server/vmlinuz
append initrd=RHEL5Server/initrd.img
ks=nfs:192.168.1.2:/home/RHELdump/ks.cfg
prompt 1
timeout 100
9. Assign file permission as follows:
chmod 777 01-00-02-b3-b9-f0-dc
10. chkconfig --list | grep ftp
11. chkconfig tftp on
1. cp /root/anaconda-ks.cfg /home/RHELdump/ks.cfg
2. chmod 777 ks.cfg
3. Edit ks.cfg file as per your needs. Remember to include install method
nfs --server = 192.168.1.2 --dir=/home/RHELdump
Client Side:
Server Side:
cd /home
mkdir RHELdump
cp –fr /media/ RHEL DVD/ /home/RHELdump/
Configuring DHCP:
1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=ServerMACAddress
IPADDR=192.168.1.2
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes
2. yum install dhcp*
3. cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
4. vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
host cutslinuxserver02 {
hardware Ethernet ClientHWaddr;
fixed-address 192.168.1.15;
next-server 192.168.1.2;
filename “linux-install/pxelinux.0”;
}
}
5. service dhcpd restart
1. cp /root/anaconda-ks.cfg /var/www/html/ks.cfg
2. chmod 777 ks.cfg
3. Edit ks.cfg file as per your needs. Remember to include install method
url --url=http://192.168.1.2/RHELdump
Configuring HTTP:
1. yum install http*
2. Create soft link RHELdump
ln –s /home/RHELdump /var/www/html
3. service httpd start
label local
kernel RHEL5Server/vmlinuz
append initrd=RHEL5Server/initrd.img ks=http://192.168.1.2/RHELdump
prompt 1
timeout 100
9. Assign file permission as follows:
chmod 777 01-00-02-b3-b9-f0-dc
10. chkconfig --list | grep ftp
11. chkconfig tftp on
12. service iptables stop
Client Side: