XCAT physical machine operating system deployment (new)
First, assume that the machine names and IP addresses are as follows:
Xcat master hostname: xcat1 ip: 192.168.31.102 xcat node hostname: xcat1 ip: 192.168.31.133
The procedure is as follows:
Configure basic xCAT Information
Chtab key = master site. value = 192.168.31.102 chtab key = domain site. value = xcatdomain # according to the specific configuration, this attribute will be written to the/etc/resolv of each node. in the conf file, chtab key = nameservers site. value = 192.168.31.102 # according to the specific configuration, this attribute will be written to the/etc/resolv of each node. in the conf file, chtab key = forwarders site. value = 192.168.31.1
In addition, run the "tabdump networks" command to check whether the networks table information is consistent with the information of the above site table. If the table information is inconsistent, run the following command to modify the table information:
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
Configure Password
You can use "tabdump passwd" to view
chtab key=system passwd.username=root passwd.password=Letmein
Configure Host
makehosts
After configuration, the content of the/etc/hosts file is roughly as follows:
127.0.0.1 localhost 192.168.31.102 xcat xcat.xcatdomain
Note that the xcat master must be configured, because the makedns Command requires that the management node must be part of the domain, so if you do not need to manually add it.
Configure DNS
makedns -n service named restart
Configure DHCP
makedhcp -n
If the dhcp service cannot be started at this time, edit the/etc/init. d/dhcpd file
User = dhcpd group = dhcpd to user = root group = root
Then restart the dhcpd service.
/etc/init.d/dhcpd restart
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 copycds /appstore/iso/rhel-server-6.5-x86_64-dvd.iso
Run the following command to view the details.
lsdef -t osdistrolsdef -t osimage
Configure 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 after adding
tabdump nodelist tabdump nodetype tabdump noderes tabdump mac tabdump hosts
Run the following command:
makehosts xcat1makedhcp xcat1
Set Deployment System
nodeset xcat1 osimage=centos5.11-x86_64-install-compute
Because the virtual machine is used for testing and there is no IPMI function, we can only manually start the xcat1 machine, and then we will find that xcat1 enters the automatic installation system.
If a physical machine supports IPMI, refer to another blog I posted earlier.
XCAT remote deployment and installation of the operating system through IPMI