Upload
jitendra-kasotia
View
16
Download
0
Embed Size (px)
DESCRIPTION
pxeboot
Citation preview
Yet another technology blog.
Search
Thursday, October 13, 2011
How to configure PXE Server in RHEL 6 ?
Server IP settings.
IP 192.168.0.70SUBNET 255.255.255.0nmcontrolled noonboot yesDNS1=192.168.0.1
Yum install system-config-kickstart# Install the kickstart package.
system-config-kickstart# run the kickstart utility.
In the second last option you can remove text mode installation option and opt For a graphical one.
Select the http installation method
10g (53)
11g (33)
11gR2 (13)
12c (1)
9i (1)
applications (3)
Concepts (12)
Dataguard (7)
GoldenGate (6)
GridControl (1)
Linux (12)
OEM (1)
Oracle (99)
RAC (25)
RHEL 5 (3)
RHEL 6 (10)
Tutorial (118)
Labels
Ask Tom
BlogSolute
DbaLounge
Freeware
Genius
Groovypost
How To Geek -
technical tips
and tricks
http://balakum
arnair.wordpres
s.com/
makeuseof
Neowin Tech
News
OracleFlash
OracleScripts
Physorg
Raymond
ShutDownAbor
t
Toolbase -
Hacking
Resources
Vgrigorian
(Good Oracle
Related
Practicals)
Webware Tech
News
Information Sources.
► 2013 (5)
► 2012 (77)
▼ 2011 (27)
► December
(11)
► November
(2)
▼ October (6)
How to
enable
grouplist
in yum :
RHEL 6 ?
How to
configure
Blog Archive
1Share More Next Blog» Create Blog Sign In
Yet another technology blog.: How to configure PXE Serv... http://practical-tech.blogspot.in/2011/10/how-to-configur...
1 of 6 Tuesday 30 April 2013 01:01 AM
Use the defaults.
In the disk label option choose the first option (Initialize the disk label).The partitions that I have created are like this.
Mount Point type size/boot ext4 500 swap swap 2048
/ ext4 18000
Make sure that SELinux option is disabled and Security level is set to Disable firewall.
Save the ks.cfg file to the filesystem.
Yum install –y syslinux xinetd tftp-server dhcp httpd# Install all the required packages through yum
mkdir /var/lib/tftpboot/pxelinux.cfgcp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
vi /etc/xinetd.d/tftp# Open the xinetd settings to enable tftp server.# at line 14 set the parameter to no from yes.Disable=no
service xinetd restart# Restart the service to apply the settings made.
chkconfig xinetd on# set the service to start with each subsequent system reboots.
vi /etc/dhcp/dhcpd.conf
Samba
Server in
RHEL 6 ?
How to
configure
PXE Server
in RHEL 6
?
How to
restore
Spfile from
autobacku
p ?
How to
configure
FTP Server
(vsftp) in
RHEL 6 ?
How to
configure
NFS in
RHEL 6 ?
► September
(4)
► July (2)
► April (1)
► February (1)
► 2010 (16)
Ajay Singh
Chandi
View my complete
profile
About Me
Yet another technology blog.: How to configure PXE Serv... http://practical-tech.blogspot.in/2011/10/how-to-configur...
2 of 6 Tuesday 30 April 2013 01:01 AM
# Open the file and configure the DHCP Server.
# Global OptionsAllow booting;Allow bootp;authoritative;
# Subnet definitionsubnet 192.168.0.0 netmask 255.255.255.0 {# Parameters for the local subnetoption routers 192.168.0.1;option subnet-mask 255.255.255.0;option domain-name “example.com”;option domain-name-servers 192.168.0.1;default-lease-time 21600;max-lease-time 43200;# Client IP rangerange dynamic-bootp 192.168.0.100 192.168.0.200;filename “pxelinux.0”;next-server 192.168.0.70;}
# Here the next–sever parameter is the address of the kickstart server.
service dhcpd restartChkconfig dhcpd on
# restart the service and make it permanent.
mkdir –p /var/pxe/rhel6mkdir /var/lib/tftpboot/rhel6# make some required directories.
Insert your RHEL 6 dvd
mount /dev/cdrom /mnt# Mount it to /mnt
ls –l /mnt# Check the contents to see if it is properly mounted.
cp –ivr /mnt/* /var/pxe/rhel6# copy all the contents to the /var/pxe/rhel6 directory.
umount /mnteject# after the file copy operation unmount and eject the dvd.
cp /var/pxe/rhel6/images/pxeboot/vmlinuz /var/lib/tftpboot/rhel6cp /var/pxe/rhel6/images/pxeboot/initrd.img /var/lib/tftpboot/rhel6# copy the vmlinuz and initrd.img files to the tftpboot directory.
cp /usr/share/syslinux/menu.c32 /var/lib/tftpboot/# copy the menu file.
vi /var/lib/tftpboot/pxelinux.cfg/default
timeout 100default menu.c32
menu title $$$$$$Boot Menu$$$$$$label 1 menu label ^ 1) RHEL6 kernel rhel6/vmlinuz append initrd=rhel6/initrd.img ks=http://192.168.0.70/ks/ks.cfg ksdevice=eth0
# Prepare the boot menu.
chkconfig httpd on
vi /etc/httpd/conf.d/pxeboot.conf
# create new entry
Alias /rhel6 /var/pxe/rhel6
Yet another technology blog.: How to configure PXE Serv... http://practical-tech.blogspot.in/2011/10/how-to-configur...
3 of 6 Tuesday 30 April 2013 01:01 AM
Posted by Ajay Singh Chandi at 3:41 PM
Labels: Linux, RHEL 6, Tutorial
Options Indexes FollowSymLinks Order Deny,Allow Deny from all Allow from 127.0.0.1 192.168.0.0/24# Ip address you allow
service httpd restart(ignore the domain name error if it occurs.)
# Prepare the httpd server
mkdir /var/www/html/ks
cp /ks.cfg /var/www/html/ks/ks.cfgchmod 644 /var/www/html/ks/ks.cfg
# make the directory and copy the kickstart file to it.# and make the kickstart file globally read only.
The pxe server is ready.
Plug a computer into the network and boot it through LAN using pxe.
The client pc should have a display as below.
+1 Recommend this on Google
Replies
Reply
17 comments:
Joe January 10, 2012 at 10:36 PM
MAN!!! u people are awesome was searching for some easy method for configuring PXE boot on RHEL 6. wat so ever i got before this was hell
confusing but you gave me easy n interactive method..... thankx a ton n hats off to u...
Reply
Anonymous January 18, 2012 at 6:08 AM
Awesome .. short and sweet ... A perfect quick start guide for PXE deployment
Reply
Anonymous July 12, 2012 at 4:00 PM
I followed the above procedure to configure on my RHEL6.2 Machine. I am unable to boot through PXE.
Its giving error:
PXE-E18: Server Response timeout
What should i do? Please reply
Ajay Singh Chandi July 12, 2012 at 4:59 PM
I think that you are booting through a client which is using UEFI (Unified Extensible Firmware Interface) instead of BIOS interface.
From Wikipedia - "The Unified Extensible Firmware Interface (UEFI) is a specification that defines a software interface between an operating
system and platform firmware. UEFI is meant as a replacement for the BIOS firmware interface."
If you can give me the Client and Server Model/Make details i may be able to help you out.
Anonymous January 26, 2012 at 7:55 PM
hey bro why have you stopped adding rhel 6 tuts??? please add more tuts
Reply
Yet another technology blog.: How to configure PXE Serv... http://practical-tech.blogspot.in/2011/10/how-to-configur...
4 of 6 Tuesday 30 April 2013 01:01 AM
Replies
Reply
Unknown July 15, 2012 at 11:58 AM
Awesome.......A perfect quick start guide for PXE deployment.
Reply
ajai July 28, 2012 at 1:24 PM
Hi..
I getting "TFTP open timeout" error
Reply
Ajay Singh Chandi July 28, 2012 at 6:20 PM
Did you specify the "next-server 192.168.0.70;" option while configuring the dhcpd.conf file?
Anonymous February 10, 2013 at 6:23 PM
If it is REDHAT 6 pls disable iptables and try.-pavan
Anonymous September 4, 2012 at 8:22 AM
hi friends please anyone help that dhcp configuration step... first am i want copy sample file from /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample? ....
after copy file when i edit it global option not available...pls
Reply
Anonymous October 6, 2012 at 2:09 AM
I would like to add a comment in the above config as i faced a issue while installing with the above procedure.
vi /etc/httpd/conf.d/pxeboot.conf
Alias /rhel6 /var/pxe/rhel6
Options Indexes FollowSymLinks
#Order Deny,Allow
#Deny from all
Allow from 127.0.0.1 192.168.0.0/24
Reply
Renjith K.M. November 1, 2012 at 2:11 PM
Simply awesome! Nothing else to say!!! :)
Reply
Anonymous November 21, 2012 at 6:07 PM
Thank you a lot .........
Reply
Anonymous November 22, 2012 at 8:45 AM
My linux teacher is a dumbass this helps me a lot....
Reply
Anonymous December 16, 2012 at 7:26 PM
If you copy and paste directly form this tutorial, you may get unexpected results and different types of double quotes are used that Linux may not
expect. Also 99% of commands start with lower case so if some of them fail while you follow along, you know why. This is done for proper sentence
structure in the tutorial. GREAT tutorial! Just a heads up to any new Linux users out there.
Reply
Anonymous January 11, 2013 at 5:47 AM
Hats off to you Sir....
Reply
Anonymous March 5, 2013 at 11:04 PM
hi I have done all step but I m restart the httpd service that time syntax error showing with /etc/httpd/conf.d/pxeboot.conf allow not allowed here.
Reply
Yet another technology blog.: How to configure PXE Serv... http://practical-tech.blogspot.in/2011/10/how-to-configur...
5 of 6 Tuesday 30 April 2013 01:01 AM
Newer Post Older PostHome
Subscribe to: Post Comments (Atom)
Enter your comment...
Comment as: Select profile...
Publish Preview
The opinions expressed here in this blog are mine. None of the advice is warranted to be free of errors and ommision. Please use at your own risk and after thorough testing in your
environment.
NOTICE:
Simple template. Powered by Blogger.
Yet another technology blog.: How to configure PXE Serv... http://practical-tech.blogspot.in/2011/10/how-to-configur...
6 of 6 Tuesday 30 April 2013 01:01 AM