For setup a PXE server there are some prerequisites like :
DHCP server, TFTP server, NFS server, syslinux .
Server IP Address: 192.168.1.1
1. # yum install dhcp
2. # yum install tftp-server
3. # yum install syslinux
Configure the TFTP server:
# chkconfig tftp on
# chkconfig xinetd on
# service xinetd start
Configure the NFS server:
# cp -ra /media/Fedora(CD) /pub
# vi /etc/exports
/pub *(rw,sync)
# exportfs -a
# chkconfig nfs on
# chkconfig portmap on
# service portmap start
# service nfs start
Make sure /pub/Fedora(CD) must have images directory.
Syslinux :
# find / -name pxelinux.0
/usr/share/syslinux/pxelinux.0
# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot
# cp /media/Fedora(CD)/images/pxeboot/vmlinuz /var/lib/tftpboot
# cp /media/Fedora(CD)/images/pxeboot/initrd.img /var/lib/tftpboot
# cd /var/lib/tftpboot
# mkdir pxelinux.cfg
# vi pxelinux.cfg/default
default install
label install
kernel vmlinuz
append initrd=initrd.img
Configure DHCP server:
# vi /etc/dhcp/dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.254;
default-lease-time 600;
max-lease-time 7200;
next-server 192.168.1.1;
filename "pxelinux.0";
}
# service dhcpd start
After configure the above services the PXE server is setup. Now take the another host for testing the PXE server-
1. Start the host machine
2. Press F12 for network booting.
3. This host take IP address from your previously configured DHCP server (i.e. 192.168.1.1) . Make sure no other DHCP server is running.
4. PXE lan booting start.
5. Then it require the installation source then provides the NFS server IP address and source directory i.e. 192.168.1.1 and /pub.
6. Boot will Start.
Congratulations you successfully configure the PXE server............:)
DHCP server, TFTP server, NFS server, syslinux .
Server IP Address: 192.168.1.1
1. # yum install dhcp
2. # yum install tftp-server
3. # yum install syslinux
Configure the TFTP server:
# chkconfig tftp on
# chkconfig xinetd on
# service xinetd start
Configure the NFS server:
# cp -ra /media/Fedora(CD) /pub
# vi /etc/exports
/pub *(rw,sync)
# exportfs -a
# chkconfig nfs on
# chkconfig portmap on
# service portmap start
# service nfs start
Make sure /pub/Fedora(CD) must have images directory.
Syslinux :
# find / -name pxelinux.0
/usr/share/syslinux/pxelinux.0
# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot
# cp /media/Fedora(CD)/images/pxeboot/vmlinuz /var/lib/tftpboot
# cp /media/Fedora(CD)/images/pxeboot/initrd.img /var/lib/tftpboot
# cd /var/lib/tftpboot
# mkdir pxelinux.cfg
# vi pxelinux.cfg/default
default install
label install
kernel vmlinuz
append initrd=initrd.img
Configure DHCP server:
# vi /etc/dhcp/dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.254;
default-lease-time 600;
max-lease-time 7200;
next-server 192.168.1.1;
filename "pxelinux.0";
}
# service dhcpd start
After configure the above services the PXE server is setup. Now take the another host for testing the PXE server-
1. Start the host machine
2. Press F12 for network booting.
3. This host take IP address from your previously configured DHCP server (i.e. 192.168.1.1) . Make sure no other DHCP server is running.
4. PXE lan booting start.
5. Then it require the installation source then provides the NFS server IP address and source directory i.e. 192.168.1.1 and /pub.
6. Boot will Start.
Congratulations you successfully configure the PXE server............:)
Comments
Post a Comment