|
First, we assume that the two xCAT machines, machine name and ip address are as follows
xcat master
hostname: xcat
ip: 192.168.31.102
xcat node
hostname: xcat1
ip: 192.168.31.251
Specific steps are as follows:
1. Create a local operating system installation files
chtab key = master site.value = '< host ip>' 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 the master property
chtab key = master site.value = ''
3. Configure the password, you can use the "tabdump passwd" View
chtab key = system passwd.username = root passwd.password = Letmein
4. Configuration node
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
After completion you can use the following command to view a variety of information
tabdump nodelist
tabdump nodetype
tabdump noderes
tabdump mac
tabdump hosts
5. Configure host
makehosts
After configuring the / etc / hosts file contents as follows
127.0.0.1 localhost
192.168.31.102 xcat
192.168.31.251 xcat1
6. Configure DHCP
makedhcp -n
After you configure in my environment dhcpd start there will be problems, so I did the following modifications
* Delete the following lines in the file /etc/dhcp/dhcpd.conf
zone. {
primary NORESOLUTION; key xcat_key;
}
zone 31.168.192.IN-ADDR.ARPA. {
primary NORESOLUTION; key xcat_key;
}
* Edit /etc/init.d/dhcpd file,
user = dhcpd
group = dhcpd
To
user = root
group = root
Then restart dhcpd service
/etc/init.d/dhcpd restart
7. Set Deployment System
nodeset xcat1 install
You can now see something like the following output, indicating that the machine will be installed xcat1 centos6.6-x86_64-compute
xcat1: install centos6.6-x86_64-compute
If we need to modify the installation of the system 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 xcat1 machine will install centos5.11-x86_64-compute
xcat1: install centos5.11-x86_64-compute
8. The use of the virtual machine to do the test, no IPMI functionality, so we can only be started manually xcat1 machine, then you will find xcat1 entered automatically install the system. |
|
|
|