mkdir -p /diskless/x86_64/centos5.4/root mkdir /diskless/x86_64/centos5.4/snapshot |
rsync -auv -e ssh --delete --exclude='/proc/*' --exclude='/sys/*' --exclude='/tmp/*'--exclude='/var/log/*' root@10.0.70.72:/ /diskless/x86_64/centos5.4/root/ |
yum -y install tftp tftp-server yum -y install busybox vi /etc/xinetd/tftp diskable=no chkconfig --level 345 xinetd on chkconfig --level 345 tftp on service xinetd start |
yum -y install dhcp-server chkconfig --level 345 dhcpd on vi /etc/dhcpd.conf allow booting; allow bootp; class "pxeclients" { match if substring(option vendor-class-identifier, 0, 9) = "PXEClient"; next-server <server-ip>; filename "linux-install/pxelinux.0"; } service dhcpd start |
yum -y install portmap nfs vi /etc/exports /diskless/x86_64/centos5.4/root *(ro,sync,no_root_squash) /diskless/x86_64/centos5.4/snapshot/ *(rw,sync,no_root_squash) service portmap start service nfs start |
If starting the Network Booting Tool for the first time, select Diskless from the First Time Druid. Otherwise, select Configure => Diskless from the pull-down menu, and then click Add. A wizard appears to step you through the process: 1、Click Forward on the first page. 2、On the Diskless Identifier page, enter a Name and Description for the diskless environment. Click Forward. 3、Enter the IP address or domain name of the NFS server configured in Section 4.3 Configuring the NFS Server as well as the directory exported as the diskless environment. Click Forward. 4、The kernel versions installed in the diskless environment are listed. Select the kernel version to boot on the diskless system. 5、Click Apply to finish the configuration. |
1、Hostname or IP Address/Subnet — Specify the hostname or IP address of a system to add it as a host for the diskless environment. Enter a subnet to specify a group of systems. 2、Operating System — Select the diskless environment for the host or subnet of hosts. 3、Serial Console — Select this checkbox to perform a serial installation. 4、Snapshot name — Provide a subdirectory name to be used to store all of the read/write content for the host. 5、Ethernet — Select the Ethernet device on the host to use to mount the diskless environment. If the host only has one Ethernet card, select eth0. |