How to do PXE boot

View previous topic View next topic Go down

How to do PXE boot

Post  Admin on Tue Nov 17, 2009 9:52 pm

This pxe boot method will work only on redhat el5
try it and please let me know if there is any bug
#mkdir /iso
#cp -av /media/Rhel_iso/images/boot.iso /root/Desktop
#mount -o loop /root/Desktop/boot.iso /iso
#cp -av /iso/isolinux/* /tftpboot
#mkdir /tftpboot/pxelinux.cfg
#cp -a /usr/lib/syslinux/pxelinux.0 /tftpboot/
#cp -a /usr/lib/syslinux/memdisk /tftpboot/
#cp -av /tftpboot/isolinux.cfg /tftpboot/pxelinux.cfg/
#mv /tftpboot/pxelinux.cfg/isolinux.cfg /tftpboot/pxelinux.cfg/default
#setenforce 0
#getenforce
check firewall
#setsebool -P tftpd_disable_trans=1
#service dhcpd restart
#service xinetd restart
#iptables -L


#vim /etc/dhcpd.conf
***
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.1.90;
option subnet-mask 255.255.255.0;

option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.1.128 192.168.1.234;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host cl {
hardware ethernet 00:01:6C:9D:68:41;
fixed-address 192.168.1.222;
filename "pxelinux.0";
next-server 192.168.1.90;
}
}
**
[root@sun ~]# ll /tftpboot/
total 7140
-r--r--r-- 1 root root 2048 Oct 1 18:47 boot.cat
-rw-r--r-- 1 root root 292 Oct 1 18:47 boot.msg
-rw-r--r-- 1 root root 919 Oct 1 18:47 general.msg
-rw-r--r-- 1 root root 5245144 Oct 1 18:47 initrd.img
-r--r--r-- 1 root root 10648 Oct 1 18:47 isolinux.bin
-r-xr-xr-x 1 root root 366 Oct 1 18:47 isolinux.cfg
-r--r--r-- 1 root root 94600 Oct 1 18:47 memtest
-rw-r--r-- 1 root root 817 Oct 1 18:47 options.msg
-rw-r--r-- 1 root root 517 Oct 1 18:47 param.msg
-rw-r--r-- 1 root root 13148 Aug 22 2006 pxelinux.0
drwxr-xr-x 2 root root 4096 Oct 1 18:50 pxelinux.cfg ---> default
-rw-r--r-- 1 root root 490 Oct 1 18:47 rescue.msg
-rw-r--r-- 1 root root 23107 Oct 1 18:47 splash.lss
-r--r--r-- 1 root root 2659 Oct 1 18:47 TRANS.TBL
-rw-r--r-- 1 root root 1791572 Oct 1 18:47 vmlinuz
avatar
Admin
Admin

Posts : 32
Join date : 2009-09-13
Age : 31
Location : Chennai

View user profile http://linux.nsguru.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum