Main Menu
Home
Search
Support
How To's
OpenWiki
Contact Us
Users Blogs
User HowTo's
Announcements
Google Translation

 

 

 

 

TFTP + PXE + syslinux + Fedora install PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Paul Matthews   

This is a how-to for a diskless installation of Fedora core 1/2/3/4/5 i'm sure they should all be pretty much the same just in the url's of the downloadable files change the 5 to whatever number your installing


Name: syslinux

Homepage: http://syslinux.zytor.com/

Function: The SYSLINUX Project covers lightweight bootloaders for floppy media, network booting and bootable "El Torito" CD-ROMs.


Name: Fedora

HomePage: http://fedora.redhat.com/

Function: Fedora Core is a free operating system that offers the best combination of stable and cutting-edge software that exists in the free software world

 

1. Firstly we need to get dhcp working.

nano /etc/dhcpd.conf

 

dhcpd.conf:
ddns-update-style interim;
ignore client-updates;
allow bootp;
allow booting;

subnet 192.168.0.0 netmask 255.255.255.0 {

    range 192.168.0.10 192.168.0.200;
    option routers 192.168.0.1;
    option subnet-mask 255.255.255.0;
    option domain-name "home.net";
    option domain-name-servers 192.168.0.254;
    next-server 192.168.0.254;
    default-lease-time 21600;
    max-lease-time 43200;
    option root-path "/tftpboot/";
    filename "pxelinux.0";

}


TFTP PXE syslinux Fedora install

2. Next we need to setup PXE boot, so download syslinux

wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.11.tar.gz

 

TFTP PXE syslinux Fedora install

3. Now install syslinux

tar -xvzf syslinux-3.11.tar.gz -C /usr/local/src

 

TFTP PXE syslinux Fedora install

4. Create the tftpd directory at the root directory, '/'.

mkdir /tftpboot

5. Now, we need to copy 2 files from here to our newly created tftpboot directory

cp /usr/local/src/syslinux-3.11/pxelinux.0 /tftpboot
cp /usr/local/src/syslinux-3.11/memdisk/memdisk /tftpboot

 

TFTP PXE syslinux Fedora install

6. Make sure you have the TFTPD-server installed and then edit the following file

nano /etc/xinetd.d/tftp

 

tftp:
service tftp

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


TFTP PXE syslinux Fedora install

7. Now set TFTP server & the DHCP Server to start on boot

chkconfig tftp on
chkconfig dhcpd on

 

TFTP PXE syslinux Fedora install

 

8. Once that is done restart the following services

 

/etc/init.d/dhcpd restart
/etc/init.d/xinetd restart

 

TFTP PXE syslinux Fedora install

9. Next you'll need to download the PXE files from the Fedora website

wget http://mirror.linux.duke.edu/pub/fedora/linux/core/5/i386/os/images/pxeboot/initrd.img

 

TFTP PXE syslinux Fedora install

wget http://mirror.linux.duke.edu/pub/fedora/linux/core/5/i386/os/images/pxeboot/vmlinuz

 

TFTP PXE syslinux Fedora install

wget http://mirror.linux.duke.edu/pub/fedora/linux/core/5/i386/os/images/diskboot.img

 

TFTP PXE syslinux Fedora install

10. Now, copy these 2 files into the /tftpboot directory, look at how I named them.

cp initrd.img /tftpboot/fc2-initrd.img
cp vmlinuz /tftpboot/fc2-vmlinuz

 

TFTP PXE syslinux Fedora install

11. Now move into the tftp directory and make the PXE configuration directory

cd /tftpboot/
mkdir pxelinux.cfg/

12. Change into the pxelinux.cfg directory

cd pxelinux.cfg

 

TFTP PXE syslinux Fedora install

13. now make the default configuration file

nano /tftpboot/pxelinux.cfg/default

 

default:
# Perform a local boot by default
default install
# Always prompt
prompt 1
display pxeboot.msg
# Boot automatically after 30 seconds in tenths of a second
timeout 300
label local
localboot 0
label install
kernel vmlinuz
append initrd=initrd.img



TFTP PXE syslinux Fedora install

14. Now mount the Fedora Core 5 DVD ISO, or the Fedora Core 5 DVD

mount -o loop -t iso9660 /tmp/Fedora-Core-5.iso /media/cdrom/

mount /dev/cdrom /media/cdrom

15. Make a NFS share

nano /etc/exports

 

exports:
/media/cdrom 192.168.0.0/255.255.255.0(rw)

 

TFTP PXE syslinux Fedora install

16. Start the nts server

/etc/init.d/nfs start

 

TFTP PXE syslinux Fedora install

17. Now just set your client to boot from network with it asks you for the source choose the NFS share.

 


BookMarking:

 

cell1

cell3 Submit to del.icio.us
cell4
AddThis Social Bookmark Button

 


Trouble Shooting:


Go to the wiki page

Go to the 'Contact Us ' Forum

Go to the how-to's Support Forum


External Links:

 

http://lotso.livejournal.com/1863.html

Last Updated ( Sunday, 03 June 2007 )
 
< Prev