First we assume that the two machines, the machine name and the IP address are as follows
Xcat Master
hostname:xcat
ip:192.168.31.102
xcat node
hostname:xcat1
ip:192.168.31.251
The specific steps are as follows:
1. Create a local operating system installation file
Copycds-n centos5.11-a x86_64 centos-5.11-x86_64-bin-dvd-1of2.iso centos-5.11-x86_64-bin-dvd-2of2.iso
Copycds- n centos6.6-a x86_64 Centos-6.6-x86_64-bin-dvd1.iso Centos-6.6-x86_64-bin-dvd2.iso
2. Configure Xcat Basic information
Chtab key=master site.value=192.168.31.102
chtab key=domain # Depending on the circumstances, this attribute is eventually written to each node's/ The
chtab key=nameservers site.value=192.168.31.102 # in the etc/resolv.conf file is configured according to the circumstances, and this attribute is eventually written to the/etc/of each node resolv.conf file
chtab key=forwarders site.value=192.168.31.1
In addition, use the "tabdump Networks" command to check if the networks table information is consistent with the above site table information, if inconsistent can be modified using the following command
Chtab netname=192_168_31_0-255_255_255_0 \
networks.net=192.168.31.0 \
networks.mask=255.255.255.0 \
networks.gateway=192.168.31.1 \
networks.dhcpserver=192.168.31.102 \
networks.tftpserver=192.168.31.102 \
networks.nameservers=192.168.31.102 \
networks.ntpservers=192.168.31.102
3. Configure password, you can use "Tabdump passwd" to view
Chtab Key=system Passwd.username=root Passwd.password=letmein
4. Configuring nodes
Nodeadd xcat1 \
groups=compute,all \
mac.interface=eth0 \
mac.mac=08:00:27:2c:30:8c \
hosts.ip= 192.168.31.251 \
noderes.netboot=pxe \
noderes.xcatmaster=192.168.31.102 \
noderes.installnic=eth0 \
noderes.primarynic=eth0 \
noderes.nfsserver=192.168.31.102 \
nodetype.os=centos6.6
\ nodetype.arch=x86_64 \
nodetype.profile=compute \
Nodetype.nodetype=osi
You can use the following command to view various information when you have finished adding
Tabdump nodelist
tabdump nodetype tabdump noderes-tabdump
mac Tabdump
hosts
5. Configure Host
Makehosts
The contents of the/etc/hosts file after configuration are roughly as follows
127.0.0.1 localhost
192.168.31.102 xcat
* Note that Xcat Master must be configured because the MAKEDNS command requires that the admin node be part of domain, so if you do not need to add it manually.
6. Configure DNS
Makedns-n
Service named restart
7. Configure DHCP
Makedhcp-n
* Edit the/ETC/INIT.D/DHCPD file to
USER=DHCPD
GROUP=DHCPD
changed to
user=root
group=root
Then restart the DHCPD service
/ETC/INIT.D/DHCPD restart
8. Set up Deployment system
NodeSet XCAT1 Osimage=centos5.11-x86_64-install-compute
You can see output similar to the following, indicating that the XCAT1 machine will install Centos6.6-x86_64-compute
Xcat1:install Centos6.6-x86_64-compute
If we need to modify the installed system, we can use the following command to modify the
Chtab node=xcat1 \
nodetype.os=centos5.11 \
nodetype.arch=x86_64 \
nodetype.profile=compute \
Nodetype.nodetype=osi
nodeset xcat1 Install
At this point you can see that the XCAT1 machine will be installed Centos5.11-x86_64-compute
Xcat1:install Centos5.11-x86_64-compute
9. With the use of virtual machines for testing and no IPMI capabilities, we can only manually start the XCAT1 machine, and then we will find XCAT1 into the automated installation system.