[ILUG] PXE

bobb bobb at redbrick.dcu.ie
Thu Apr 29 11:51:35 IST 2004


Ronan Cunniffe hath declared on Thursday the 29 day of April 2004  :-:
 
> (listing of the tftpboot/pxelinux.cfg dir):
> 
> -rw-r--r--    1 root     root           98 eden_xterm

> (eden_xterm is a text file containing):
> PROMPT 0
> DEFAULT linux-rhine-initrd
> APPENDIP 1
> APPEND initrd=linuxrootfs.gz ramdisk_size=16384 rw
 
Just thought I'd share with the group something I took a while to
figure out....  :)

I prefear my machines to boot totally off local disk (under normal operation)
without getting their kernels over the network (hey, I'm weird like that :).

However I would also like them to be configured to boot from the network
by default so that I don't have to go frikkin' around with BIOSs on loads
of machines whenever I get the urge to re-install them.

You can use the following PXE config in /tftp/pxelinux.cfg/default

    DEFAULT local-boot
    LABEL local-boot
    LOCALBOOT 0

Which, assuming theres no other config matching the ip of the machine, 
will tell it to boot, surprisingly, from the local disk.

You can then create a specific config for the machine(s) whenever you
want to re-install. fai-chboot(8) does this if you are using fai... 

*shrug*

Probably something terribly obvious which everyone knows... but I
was thrilled when I found out it could be done :)

- bobb

-- 
Mr. Rogers could explain shoe-tying and make it seem like the coolest 
thing in the world. He was our Uncle and older brother. He told us we 
were special, and we knew he'd be there for us.
A cult leader, right down to the sneakers.



More information about the ILUG mailing list