- 论坛徽章:
- 0
|
经过一个多星期的摸索,我终于搞定了如何在Intel GPP-K,GPP-W板上创建无盘工作站了,现把我写的文档发布上来,希望对有需要的朋友有所帮助.
How to build RHEL-4.3 diskiless enviroment
(use the kenicoff blade)
1:Configure dhcp(onle configure one balde for example)
# vi /etc/dhcpd.conf
allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = " XEClient";
Subnet 10.197.0.0 netmask 255.255.240.0 {
Option routers 10.197.0.1;
Option subnet-mask 255.255.255.0;
Range 10.197.1.1 10.197.1.254;
Host blade1-eth0 {
Hardware Ethernet 00:0E:0C:73:67:4E;
Fixed-address: 10.197.1.1;
Filename “pxelinux.0”;
}
Host blade1-eth1 {
Hardware Ethernet 00:0E:0C:73:67:4F;
Fixed-address: 10.197.1.1;
Filename “pxelinux.0”;
}
2:Create network install directory
#mkdir –p /export/rhel-4.3
Insert the install cdrom to PC cdrom then use the follow orders:
#dd if=/dev/cdrom of=e/xport/rhel-4.3/disk1.iso
#dd if=/dev/cdrom of=/export/rhel-4.3/disk2.iso
#dd if=/dev/cdrom of=/export/rhel-4.3/disk3.iso
#dd if=/dev/cdrom of=/export/rhel-4.3/disk4.iso
3:Configure the NFS
Vi /etc/exports
/export/rhel-4.3/ *(ro,no_root_quash,no_subtree_chrck,sync)
#exportfs –r
#service nfs restart
4: Configure the Client blade BIOS and boot from NETWORK
5:Configure tftp
# vi /etc/xinetd.d/tftp
# service xinetd restart
#chkConfigure –-level 345 tftp on
#chkConfigure --level 345 xinetd on
6:Configure pxe
Copy /image/pxeboot/initrd.img, and vmlinuz to /tftpboot/
Vi /pxelinux.cfg/01-00-0e-oc-b4-8b-1c (00-0e-oc-b4-8b-1c is the master-blade mac address)
Serial 0 57600
Prompt 1
Timeout 5
Default rhel-4.3
Label rhel-4.3
Kernel vmlinuz
Append rw console=ttyS0,57600 initrd=initrd.img root=/dev/ram
7:reset the master-blade, then chose the NFS image install.
8:After installation OS successful then reboot and Configure the Client blade BIOS boot from harddisk
9:when enter the blade install the package busybox-anaconada-*.rpm in master-blade
# rpm –ivh busybox-anaconada-*.rpm
Diskless Environment Configure
After the blade Os installed, we must configure the diskless environment:
1:Create diskless directory in server
Mkdir –p /export/diskless/root
Mkdir –p /export/diskless/snapshot
2: Copy rhel-4.3 OS from the master-blade to the server using rsync
Time rsync -auv -e ssh -–delete --exclude='/proc/*' --exclude='/sys/*' --exclude=’/mnt/’ root@10.197.1.2:/ /export/diskless/root
3:Reinstall the system-config-netboot in master blade(only in the system-netconfig-netboot of the OS is not work case)
Download address: http://rpmfind.net/linux/rpm2htm ... p;system=&arch=
I choose the system-config-netboot-0.1.40_EL4.src.rpm
#rpm -i system-config-netboot-0.1.40_EL4.src.rpm
#cd /usr/src/redhat/SPECS
# rpmbuild -bb system-config-netboot.spec
# cd /usr/src/redhat/RPMS/i386(the RPM packet may be in the i686 or noarch)
#rpm –ivh system-config-netboot-0.1.40_EL4.i386.rpm
#rpm –ivh system-config-netboot-debuginfo-0.1.40_EL4.i386.rpm
4:Configure the server NFS and dhcpd
1) Configure the NFS
# vi /etc/exports
/export/diskless/root *(ro,no_root_squash,sync)
/export/diskless/snapshot *(rw,no_root_squash.sync)
# exportfs –a
Service nfs restart
2)configure the dhcpd
Add the configuration as follows:
Host blade3-eth0 {
Hardware Ethernet 00:0E:0C:B4:8A:1E;
Fixed-address: 10.197.1.1;
Filename “pxelinux.0”;
}
Host blade3-eth1 {
Hardware Ethernet 00:0E:0C:B4:8A:1F;
Fixed-address: 10.197.1.3;
Filename “pxelinux.0”;
}
5 pen system-config-netboot in the master-balde
When the GUI displhay as follows:
“Name”:rhel-4.3
“Describtion”:test
“Enter the NFS information”
Server:10.197.1.100
“ Directory”:/export/diskless/root and select the kernel for diskless clients is 2.6.9-5.ELsmp
“Select the kernel for diskless clients”: chose the 2.6.9-5.ELsmp
6: add host
Click the New button to add hosts. I added the balde3 and its IP is 10.197.1.3
7:copy the diskless configuration from master-blade to server /tftpboot
Cd /tftpboot/linux-install(in master-blade)
Scp –r * root@10.197.1.100:/tftpboot/
Now the tftpboot/ has some subdirectorys msgs/ pxelinux.cfg/ rhel-4.3/ and a file pxelinux.0
8:Amended the client PXE configuration in server
Cd /pxelinux.cfg/
Vi the hex doc( eg: vi 0AC5103 (the blade IP=10.197.1.3)),the PXE configuration like follows:
Default rhel-4.3
Label rhel-4.3
Kernel rhel-4.3/vmlinuz
Append console=ttyS0,57600 initrd=rhel-4.3/initrd.img root=/dev/ram0 init=disklessrc NFSROOT=10.197.1.100:/export/diskless ramdisk_size=10000 ETHERNET=eth0 SNAPSHOT=test-03
9:reboot the blade3 |
|