Interactive PXE Boot Menu


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Interactive PXE Boot Menu
# 1  
Old 01-20-2012
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. I have attempted to complete this task by using a modular kickstart, and asking for user input in the %pre section, which failed miserably. I have also looked into the possibility of getting user input from the PXE boot menu. Is it somehow possible to refer back to the user input when using prompt 1....label? Can this information be referenced other than by using label? Is there a better way to accomplish this?

Unfortunately, installing extra packages or tools on our pxe server is not an option.
# 2  
Old 01-20-2012
I think you can pass kernel options on the PXElinux commandline, like 'kernel option anotheroption'. These would be passed into the kernel commandline of whatever's loaded, and it can decide from there how to deal with it. An initrd would be best so you could embed scripts for it before anything is mounted or what have you.
# 3  
Old 01-20-2012
Forgive me if my question seems silly, but are you referring to the append section (of pxelinux.cfg/defualt) as the place to pass kernel options? As in:

label centos6.0
kernel CentOS6.0/vmlinuz
append initrd=CentOS6.0/initrd.img ....... ks=....

I would like to use a variable to specify the kickstart file, so I could have something like:

ks=nfs:<IP-ADDRESS>/$PATH_TO_KICKSTART

As for initrd, I am not familiar with that. I will do some research. Thanks for the suggestion. Would an initrd allow me to add kernel options? PXE booting is obviously fairly new to me.
# 4  
Old 01-20-2012
No, I mean the place where the user types. You can specify options there, and they do get passed to the kernel commandline.
# 5  
Old 01-20-2012
I was under the impression that the PXE menu uses prompt to determine which label to go to to specify the said kernel options. How would I then prompt the user for the path to the kickstart file? If there is a way to refer back to what the user had typed (for instance, $1, as in a bash script) then I could simply leave out the menu options and intruct the user to type in the path to the kickstart file they wish to use. I am thinking, however, that this is not possible. Am I better off customizing an initrd.img file?
# 6  
Old 01-20-2012
Yes, it uses the labels. It should also be able to take options after the label, like
Code:
labelname option anotheroption

which would go into the kernel commandline options.

These options would be available via /proc/cmdline once the kernel boots, for you to use how you please in the initrd.

So you'd be customizing an initrd either way, really.
# 7  
Old 01-20-2012
Ok I see what you mean, but I still do not understand how I can prompt the user for a kickstart file path, store their input in a variable, and then reference said variable when I pass the ks= kernel commandline option. I understand how the PXE menu works, but the problem is that our menu file is growing rapidly as we add distros, and I have been asked specifically to get it down to one default entry. If there is a way to reference the user's input (other than by using a label) then this can be easily accomplished. I do not think this is possible to do at this point, however.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

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... (3 Replies)
Discussion started by: duckeggs01
3 Replies

2. 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

3. 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

4. Solaris

custom jumpstart on x86 with DHCP/PXE goes into interactive mode

client boots fine, it gets the ip 192.168.0.10 and the bootfile. Then there is : SunOS 5.10 Version Generic_141445-09 32-bit" ... Configuring devices. Custom JumpStart Reading ZFS config: done Setting up Java. Please wait ... NOTE: Not enough memory for graphical installation. Graphical... (4 Replies)
Discussion started by: TomSu
4 Replies

5. 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

6. Shell Programming and Scripting

Interactive Array Menu

This should be simple, but i haven't done it before... KSH I am reading a file into an array and currently displaying the values to the screen. What I need to do is to display a subset of those values, likely numbered, and prompt the user to select one. When they enter the number, it... (2 Replies)
Discussion started by: gecko2424
2 Replies

7. 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

8. 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

9. Shell Programming and Scripting

Interactive menu

Hi ,some time ago i did an interactive menu based on eval function for navigation , one of the post remind me it. I think it could be handy for others. #!/usr/bin/ksh keyRead () { tput smso echo "Enter option." tput rmso oldstty=$(stty -g) stty -icanon -echo min 1 time 1 Answer=$(dd... (0 Replies)
Discussion started by: Klashxx
0 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