Linux diskless Workstation Erection instance _unix Linux
Source: Internet
Author: User
Summary
Set up a Linux diskless workstation instance where both the server and the client use Linux. Mainly involved: DHCP TFTP syslinux NFS (2003-03-12-08:52:24)
Description: The DHCP client obtains the IP address and downloads the start image file from the server with the TFTP protocol. I use Syslinux.
The Pxelinux inside the kit is used as a remote boot Loder.
3) Configure TFTP server
Using the Pxelinux as a boot tool requires a TFTP server that supports tsize parameters. Can be downloaded from http://www.kernel.org/pub/software/network/tftp/.
Using the TFTP service via xinetd, my/etc/xinetd.conf file is as follows
......
Service TFTP
{
Socket_type = Dgram
protocol = UDP
Wait = yes
user = root
Server =/USR/SBIN/IN.TFTPD
}
4) Configure Pxelinux
Install the Syslinux package first. Can be downloaded from http://www.kernel.org/pub/linux/utils/boot/syslinux/.
Copy the pxelinux.0 to the/tftpboot/directory, and then build the/tftpboot/syslinux.cfg/directory. A configuration file is stored in this directory.
Pxelinux uses the hexadecimal representation of an IP address as the filename of the configuration file for that IP address. such as Blade01 's
The IP address is 10.10.12.131, the configuration file name is 0a0a0c83, and the content is:
Default Linux
Label Linux
Kernel Vmlinuz
Append ip=dhcp root=/dev/nfsroot nfsroot=10.10.11.120:/remote/blade01 vga=normal
5) Configuring NFS
Create a root directory for each blade, which is specified in the blade's pxelinux configuration file to boot from this NFS export directory.
The root directory should be built with standard catalogs, as well as the USR, home, and public directories that need to be reinstalled.
My/etc/exports file:
#/etc/exports:the access Control list to filesystems which may exported
# to NFS clients. Exports (5).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.