xcat master hostname: xcat ip: 192.168.31.102 xcat node hostname: xcat1 ip: 192.168.31.251
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
chtab key=master site.value=192.168.31.102 chtab key=domain site.value=xcatdomain # 根据具体情况配置,这个属性最后会被写到每个node的/etc/resolv.conf文件里 chtab key=nameservers site.value=192.168.31.102 # 根据具体情况配置,这个属性最后会被写到每个node的/etc/resolv.conf文件里 chtab key=forwarders site.value=192.168.31.1
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. 配置password,可以使用“tabdump passwd”查看
chtab key=system passwd.username=root passwd.password=Letmein
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
tabdump nodelist tabdump nodetype tabdump noderes tabdump mac tabdump hosts
makehosts
127.0.0.1 localhost 192.168.31.102 xcat 192.168.31.251 xcat1
* 注意xcat master必须配置进去,因为 makedns 命令要求管理节点必须是domain的一部分,所以如果没有需要手动添加。
6. 配置dns
makedns -n service named restart
7. 配置DHCP
makedhcp -n
user=dhcpd group=dhcpd 改为 user=root group=root
/etc/init.d/dhcpd restart
nodeset xcat1 osimage=centos5.11-x86_64-install-compute
xcat1: install centos6.6-x86_64-compute
chtab node=xcat1 \ nodetype.os=centos5.11 \ nodetype.arch=x86_64 \ nodetype.profile=compute \ nodetype.nodetype=osi nodeset xcat1 install
xcat1: install centos5.11-x86_64-compute