pxe boot server

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat pxe boot server
# 1  
Old 04-09-2012
pxe boot server

Hi

Hoping someone can help ove setup a pxe/dhcp boot server for auto installs on centos My server seems to be providing dhcp fine but the installation fails to progress when it reaches the pxe boot menu. I make my selection and nothing happens. I am serving the media via http from the same system which is providing pxe/dhcp. Http seems to be working has i can open the url and get to the contents of the media.

Pxe Configuration
/var/lib/tftpboot

OS boot files (vmlinux/initrd.img)
/var/lib/tftpboot/rhel6.1

Dhcp config

default-lease-time 600;
max-lease-time 7200;

authoritative;

log-facility local7;

next-server 192.168.0.102;
filename "/pxelinux.0";
subnet 192.168.0.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.0.120 192.168.0.130;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
allow booting;
allow bootp;
}

boot menu config (/var/lib/tftpboot/pxelinux.cfg/default)
default menu.c32
prompt 0
timeout 300

menu title ################ PXE BOOT MENU ##################

LABEL RHEL 6.1
MENU LABEL RHEL 6.1 KS
kernel rhel6.1/vmlinux append initrd=rhel6.1/initrd.img
method=http://192.168.0.102/rhel61
#ks=http://192.168.0.102/kickstart/test.cfg ksdevice=eth0 devfs=nomount

(ive commented out the kickstart stuff on purpose for now)

TFTP config

service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}




The logs state the following when i boot the client;
Apr 9 12:02:35 senna dhcpd: DHCPDISCOVER from 00:0c:29:1f:24:7e via eth0
Apr 9 12:02:36 senna dhcpd: DHCPOFFER on 192.168.0.120 to 00:0c:29:1f:24:7e via eth0
Apr 9 12:02:38 senna dhcpd: DHCPREQUEST for 192.168.0.120 (192.168.0.102) from 00:0c:29:1f:24:7e via eth0
Apr 9 12:02:38 senna dhcpd: DHCPACK on 192.168.0.120 to 00:0c:29:1f:24:7e via eth0
Apr 9 12:02:38 senna in.tftpd[3162]: tftp: client does not accept options


I basically get to my pxe boot menu, but when i select the rhel option to do the install nothing happens??? Any ideas.
# 2  
Old 04-10-2012
Quote:
Originally Posted by duckeggs01
Hi

LABEL RHEL 6.1
MENU LABEL RHEL 6.1 KS
kernel rhel6.1/vmlinux append initrd=rhel6.1/initrd.img
method=http://192.168.0.102/rhel61
#ks=http://192.168.0.102/kickstart/test.cfg ksdevice=eth0 devfs=nomount

I basically get to my pxe boot menu, but when i select the rhel option to do the install nothing happens??? Any ideas.
You're almost there but your menu entry looks wrong.

If nothing happens when you attempt to select a menu entry it's almost certain the configuration options are either malformed or the item(s) you're attempting to load (notably, initrd.img and vmlinux) are not actually there.

I am fairly certain "method=" is not a valid option to put on the append line or otherwise. I've never seen it and I've been steeped in the Kickstart world for years. I would take it out.

I realize the forum software may have garbled the linebreaks, but just in case, for cleanliness, put each of these on their own line:
Code:
kernel rhel6.1/vmlinux 
append initrd=rhel6.1/initrd.img

Start with that. If that works then put ks=http://192.168.0.102/kickstart/test.cfg ksdevice=eth0 devfs=nomount back on the append line in the menu config.

If it still doesn't work then be really certain the rhel6.1 folder is in your tftpboot folder and that its permissions are correction; i.e.,
Code:
find -type d /yourtftpbootfolder -exec chmod 755 {} \; 
find -type f /yourtftpbootfolder -exec chmod 644 {} \;

If that all looks good and it still doesn't work you can use a tool like tcpdump to watch the tftp traffic to see how the daemon is responding; e.g.,
Code:
tcpdump -n -i eth0 port 69

You might get a clue if it's not finding the file(s) and/or folder(s) and resolve the issue from there.
# 3  
Old 04-11-2012
Hi
Thanks for your reply

I will def update my menu tonight with what you have suggested. I am 100% sure that the vmlinux and initr files are in place. The rhel6.1 directory also is withint he tftp location /var/lib/tftpboot/ (i will double check the permissions). Its frustrating as you say I'm almost there with this, so will post back later today with what happens. many thanks again

---------- Post updated at 03:10 PM ---------- Previous update was at 02:32 AM ----------

Hi

Thanks for you help just wanted to say it has worked. The tc[dump helped to diagnose the problem. I had a typo in the menu vmlinux should of read vmlinuz

Ive left the menu default at the moment with what you had suggested, i'll now add in the kickstart script. Thanks again for your helpfull pointers
# 4  
Old 04-13-2012
Quote:
Originally Posted by duckeggs01

Thanks for you help just wanted to say it has worked. The tc[dump helped to diagnose the problem. I had a typo in the menu vmlinux should of read vmlinuz

Ive left the menu default at the moment with what you had suggested, i'll now add in the kickstart script. Thanks again for your helpfull pointers
Sure! Glad it helped. Yea usually the kernels are named vmlinuz or linux, depending on the distribution. I completely missed that.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Problem in displaying message on RHEL6 on EFI during PXE boot

Hi, I am doing PXE boot for RHEL6.4 on EFI and want to display custom messsage before loading vmlinuz and initrd.img, which is not working. boot server side (In case of BIOS client): In /var/lib/tftpboot/default file I am putting the message in below format: SAY hello world boot... (0 Replies)
Discussion started by: indus123
0 Replies

2. Red Hat

Moving boot SSD from a dead server to a new server

Hi all, We have a disk array that has the boot drive on an OCZ SSD on a PCIe card. Well, the motherboard died and we got a new motherboard. We moved the controllers, NICs, etc, to the exact same slots on the new motherboard, except now it won't boot. I guess it doesn't recognize the OS on the... (1 Reply)
Discussion started by: glowe57
1 Replies

3. Red Hat

Interactive PXE Boot Menu

I have been asked to modify our PXE server such that there will be only one entry in the pxelinux.cfg/default file, where the same kernel and initrd.img will be used regardless of what operating system is to be installed, and the user will type in the path to the kickstart file that will be used. ... (7 Replies)
Discussion started by: ceb
7 Replies

4. Solaris

PXE boot problems in Solaris 10

Hi folks, I was trying to setup Network based NFS installation with PXE. I'm using virtual box for this purpose. I have one redhat (DHCP) server and Solaris 10 (Install server - Source) and on the other one am trying to install solaris using PXE. As in, dhcp address and boot file can be fetched... (2 Replies)
Discussion started by: vijaytrendz
2 Replies

5. Boot Loaders

PXE boot not taking the init= option

Hi Experts, I am doing PXE boot for my GNU/Linux device and pxelinux.0 loads the kernel as well as initrd images I have mentioned in the config file but it looks like it is not considering the init= option. Instead it starts the default INIT program. I wanted my customized init program to be... (3 Replies)
Discussion started by: learn more
3 Replies

6. UNIX for Advanced & Expert Users

PXE diskless boot fails

Hi, I am trying to setup a server for a diskless boot of a computer class (with ubuntu) I followed the guidelines in https://help.ubuntu.com/community/DisklessUbuntuHowto I have two computers: one is the server I installed and the other is my macbook on which I run a virtual machine... (8 Replies)
Discussion started by: yotamhc
8 Replies

7. Solaris

boot server / install server

I have a compaq evo n400c. This computer has no cdrom or floppy drive. In order to boot from thumb drive i need to update bios. The only way to boot is network boot from my desktop. I am trying to follow a guide JumpStart Server Configuration ? Solaris 10 I am a bit confused at this steps. ... (3 Replies)
Discussion started by: kc2dws
3 Replies

8. UNIX for Advanced & Expert Users

Setting up a PXE Boot Server

I've set up a PXE boot server and I'm having a slight snag in the booting process. On the client machine, DHCP renders fine and TFTP seems to begin but then the system hangs. On the server, the error message "Client does not accept options" occurs -- which from reading online is a common message... (2 Replies)
Discussion started by: Colton
2 Replies

9. UNIX for Dummies Questions & Answers

what is PXE boot bare-metal

hi members i am reading RHEL and i am unable to under stand about PXE boot and bare metal (1 Reply)
Discussion started by: wagmare
1 Replies

10. HP-UX

PXE boot port issue

Hi,all: I want to boot an IA unix box from network, I am sure I set the DHCP and boot server, but it still failed ! It says : Client MAC Address: 00 18 FE 28 91 82 .....- PXE-E16: Valid PXE offer not received. Load of Core LAN Gb A failed: Not Found I use the nettl command to trace the UDP... (0 Replies)
Discussion started by: bluepluto
0 Replies
Login or Register to Ask a Question