![]() |
Unslung.PxeBootServer HistoryHide minor edits - Show changes to markup May 27, 2006, at 11:28 AM
by -- Removed one config line
Deleted line 23:
not authoritative; May 27, 2006, at 11:19 AM
by -- Added pxe boot server setup
Added lines 1-107:
Using unslung as pxe boot serverA short description how to setup a diskless boot server on unslung with the standard packages. I used this setup to install fedora core 5. Packages to installTo use diskless booting the slug has to provide the boot information and the files to load. Dhcp is used to give the booting device a ip number and the name of the file to load. tftp is used to load the file from the server. In my setup i use the following packages
dhcp configurationDhcp has to assign a ip number and tell the client which file it has to load to boot. I use the following configuration in "/opt/etc/dhcp.conf" to boot unknown clients with pxe boot:
not authoritative;
ddns-update-style none;
ignore client-updates;
option ntp-servers 192.168.0.2;
option domain-name-servers 192.168.0.2, 192.168.0.10;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.2;
option subnet-mask 255.255.255.0;
option domain-name "lan";
range dynamic-bootp 192.168.0.225 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.0.10;
filename "pxelinux.0";
}
tftp configurationTftp has to deliver the files to the booting system. In the normal slug configuration tftp is started from "xinetd" with the configuration "/opt/etc/xinetd.conf":
service tftp
{
flags = REUSE
socket_type = dgram
protocol = udp
instances = 30
wait = yes
user = root
server = /opt/sbin/in.tftpd
server_args = -vt 30 -s /opt/tftpboot
cps = 100 2
log_on_success = HOST PID
log_on_failure = HOST
disable = no
}
pxe configurationPxe is a small bootloader which is used as secondary bootloader for network boots. You have to place the pxe executable in "/opt/tftpboot". I use the "pxelinux.0" image from the redhat syslinux package with the configuration file "/opt/tftpboot/pxelinux.cfg/default":
default fc5
timeout 1000
label fc5
kernel fc5.vmlinuz
append load_ramdisk=1 initrd=fc5.initrd.img network
Of course i have placed the netboot images from "fc5" "vmlinuz" and "initrd.img" with a prefix in "/opt/tftpboot". Trouble shooting tips
Other documentationThere are many other websites about diskless booting and pxe:
Exercises for the readers
|