Article title: Linux diskless workstation instance setup. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The client is a blade that supports PXE startup and uses Linux as the server. the server configuration is as follows:
1) install the DHCP server dhcpd
2) configure the/etc/dhcpd. conf file. The following is the file on my machine.
Note: the dhcp client obtains the IP address and uses the TFTP protocol to download the startup image file from the server. I use syslinux
The pxelinux in the toolkit serves as the loder for remote startup.
3) configure the tftp server
To use pxelinux as a boot tool, you must support the tftp server with the TSIZE parameter. Download from http://www.kernel.org/pub/software/network/tftp.
Use the tftp service through xinetd. the 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
First install the syslinux software package. Download from http://www.kernel.org/pub/linux/utils/boot/syslinux.
Copy pxelinux.0 to the/tftpboot/directory and create the/tftpboot/syslinux. cfg/directory. Stores configuration files in this directory.
Pxelinux uses the hexadecimal representation of the IP address as the name of the configuration file of the IP address. Such as blade01
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 = 10.10.11.120:/remote/blade01 vga = normal
5) configure nfs
Create a root directory for each blade and specify to start from the nfs export directory in the pxelinux configuration file of the blade.
Standard directories should be created in the root directory, and the usr, home, and public directories that need to be re-mounted must also be export.
My/etc/exports file:
#/Etc/exports: the access control list for filesystems which may be exported
# To NFS clients. See 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.