Jump to content











Photo
- - - - -

Issue trying to build a multiple image PXE server


  • Please log in to reply
No replies to this topic

#1 cerpika

cerpika
  • Members
  • 1 posts
  •  
    United States

Posted 14 October 2010 - 06:24 AM

Hello..... I am attempting to build a PXE server from a Fedora 13 box using dhcp, tftp, and http packages.

When only advertising a single image to deploy to clients, it all works well. Now I am trying to expand it so PXE clients can choose which image they want deployed on their machine (i.e. redhat, ubuntu, etc).

I know that I create the menu options by editing pxelinux.cfg/default file. And I have succesfully done that to make the menu and load the appropriate vmlinuz and initrd files. The only problem is, I cant figure out how to configure the PXE server to direct the client to the appropriate http based source repository for the rest of the install files. I am assuming this is an argument that attached to the 'append' line in each menu option.

As it is now, the clients (regardless of what they have selected in the menu), try and find the source files in 'http://1.1.1.2/cdserver' which is the 'server name' found in the dhcpd.conf. How can I make it so that is changed based upon what the client has select in the pxe menu?

my dhcpd.conf and default files are pasted below. Thanks for the help!

----dhcpd.conf----
ddns-update-style none;
server-name "http://1.1.1.2/cdserver";
server-identifier 1.1.1.2;
next-server 1.1.1.2;

subnet 1.1.1.0 netmask 255.255.255.0 {
range 1.1.1.10 1.1.1.254;
default-lease-time 3600;
max-lease-time 4800;
option time-offset -8;
filename "pxelinux.0";
}


----pxelinux.cfg/default----
serial 0 19200
default linux
prompt 0
timeout 5000
display boot.msg
label linux
kernel 10.2/vmlinuz
append initrd=10.2/initrd.img root=/dev/ram0 console=tty0 console=ttyS0,19200 quiet action=install mode=silent dhclient ramdisk_size=143855




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users