|
Blue Forest http://www.lslnet.com at 3:18 p.m. on August 18, 2006
Linux diskless workstation set up examples By linux_tao
Client support PXE way blades start using Linux as a server, the server configuration is as follows :
1) installation of DHCP Server dhcpd
2) allocation /etc/dhcpd.conf document, the following is the paper machine
Max-lease-time 1;
Note : IP addresses default-lease-time never expired # 1;
Option subnet-mask 255.0.0.0;
Option routers 10.0.0.1;
Option domain-name-servers 10.10.10.10;
# Option netbios-name-servers 10.10.10.10;
Option broadcast-address 10.255.255.255;
# Option dhcp-class-identifier "PXEClient";
# Option vendor-encapsulated-options 01:04:00:00:00:00:ff;
# Option option-135 "start";
Subnet 10.0.0.0 netmask 255.0.0.0 --
Range 10.10.12.131 10.10.12.150;
-- Host blade01
Hardware ethernet 00:e0:43:00:02:00;
Fixed-address 10.10.12.131;
Filename "/tftpboot/pxelinux.0"; # Note : The paper started mapping
}
-- Host blade02
Hardware ethernet 00:e0:43:00:02:02;
Fixed-address 10.10.12.132;
Filename "/tftpboot/pxelinux.0";
}
-- Host blade03
Hardware ethernet 00:e0:43:00:02:04;
Fixed-address 10.10.12.133;
Filename "/tftpboot/pxelinux.0";
}
-- Host blade04
Hardware ethernet 00:e0:43:00:02:06;
Fixed-address 10.10.12.134;
Filename "/tftpboot/pxelinux.0";
}
-- Host blade05
Hardware ethernet 00:e0:43:00:02:08;
Fixed-address 10.10.12.135;
Filename "/tftpboot/pxelinux.0";
}
}
Note : dhcp clients IP addresses downloaded using TFTP server start mapping documents from the agreement. I used syslinux
As a long-distance tool kit inside the pxelinux started loder.
3) tftp server configuration
Pxelinux guide for the use of the tools needed to support TSIZE tftp server parameters. Can be downloaded from http://www.kernel.org/pub/software/network/tftp/.
Tftp service through Xineted to use my /etc/xinetd.conf following documents
......
Tftp service
{
Socket_type = dgram
Udp protocol =
Wait = yes
User = root
Server = /usr/sbin/in.tftpd
}
4) allocation PXELINUX
Syslinux installed software. Can be downloaded from http://www.kernel.org/pub/linux/utils/boot/syslinux/.
/tftpboot/ Will pxelinux.0 copy of the catalog, and then build /tftpboot/syslinux.cfg/ catalog. Contents of the stored configuration files.
Pxelinux use of the ip address expressed as hexadecimal system ip address configuration documents in the name. If the blade01
Ip address 10.10.12.131, the configuration file named 0A0A0C83, says :
Default Linux
Label Linux
Kernel vmlinuz
Append ip=dhcp root=/dev/nfsroot nfsroot=10.10.11.120:/remote/blade01 vga=normal
5) distribution nfs
Each blade root for the creation of a list of the blade configuration pxelinux nfs export documents from the list of designated start.
The list of the roots should have completed a list of criteria, and the need to re-mount usr, home, public and other catalog also export.
I /etc/exports documents :
# /etc/exports : The access control list for filesystems which may be exported
# To NFS clients. See exports (5).
/remote/blade01 Blade01 (rw, async, no_root_squash)
/remote/blade02 Blade02 (rw, async, no_root_squash)
/remote/blade03 Blade03 (rw, async, no_root_squash)
/remote/blade04 Blade04 (rw, async, no_root_squash)
/remote/blade05 Blade05 (rw, async, no_root_squash)
/remote/root * (Rw, async, no_root_squash)
/remote/home * (Rw, async, no_root_squash)
/usr * (Ro, async, no_root_squash)
/sbin * (Ro, async, no_root_squash)
/bin * (Ro, async, no_root_squash)
/lib * (Ro, async, no_root_squash)
/home * (Ro, async, no_root_squash)
6) For each blade revises its /etc/fstab documents to blade01 example, it is the root nfs /remote/blade01
/remote/blade01/etc/fstab Following documents :
# /etc/fstab : Static file system information.
#
#
10.10.11.120:/remote/blade01 / nfs defaults, WIPO 0 1
10.10.11.120:/remote/root /root nfs defaults, WIPO 0 1
10.10.11.120:/remote/home /home nfs defaults, WIPO 0 1
10.10.11.120:/bin /bin nfs defaults, WIPO 0 1
10.10.11.120:/usr /usr nfs defaults, WIPO 0 1
10.10.11.120:/sbin /sbin nfs defaults, WIPO 0 1
10.10.11.120:/lib /lib nfs defaults, WIPO 0 1
None /proc procedure defaults, WIPO 0 1
Each razor blades and also to modify its network configuration file, ip address configuration, start two card etc.. .
7) Core Compiler
Inserts core, and should support the Kernel Level Auto Configuration of DHCP agreement, supporting NFS and NFS support ROOT.
Vmlinuz kernel of a good compiler assumptions, it /tftpboot/ copy of the catalog.
Reference files :
Http://syslinux.zytor.com/pxe.php
Http://syslinux.zytor.com/faq.php
Http://www.cn-cio.org/xx/show.php?article_id=1680
Http://www-900.ibm.com/developerWorks/cn/linux/l-tip-prompt/l-pex/index.shtml |
Linux diskless workstation set up examples I originally read this article, it suffices to follow, but in vain
There are many cultural mistake! ! ! Attention! ! ! |
Linux diskless workstation set up examples Ha ha
Landlord conscious test brothers, cruel
Strive ah |
Linux diskless workstation set up examples What is the concept of blades? ? ? |
Linux diskless workstation set up examples Firebird What is the concept? :) |
Linux diskless workstation set up examples Linux diskless stations will be an F-up? |
| |