<commit_before>
vi /etc/security/limits.conf
root - nofile 32768
root - nproc  65536
 *   - nofile 32768
 *   - nproc  65536

vi /etc/sysconfig/selinux
SELINUX=permissive

systemctl disable firewalld
systemctl stop    firewalld

# Disable virbr in RHEL/CentOS
virsh net-destroy   default
virsh net-autostart default --disable
virsh net-undefine  default
systemctl disable libvirtd.service
systemctl stop    libvirtd.service


mkdir -p /mnt/cdrom
mount -o loop /mnt/ISO/CentOS-7-x86_64-Everything-1511.iso /mnt/cdrom


# mount ISO as repo
vi /etc/yum.repos.d/cdrom.repo
[cdrom]
name=cdrom
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0


tar -jxvf xcat-core-2.11.1-linux.tar.bz2
tar -jxvf xcat-dep-2.11.1.tar.bz2


          /home/xcat-core/mklocalrepo.sh
/home/xcat-dep/rh7/x86_64/mklocalrepo.sh


yum clean   all
rpm --import   /mnt/cdrom/RPM-GPG-KEY-CentOS-*
yum install xCAT



copycds -n centos7.2 /mnt/ISO/CentOS-7-x86_64-Everything-1511.iso
tabdump osimage


#tabedit site

"domain","alltrix.local"
"keyboard","us"
"master","192.168.1.100",,
"nameservers","192.168.1.100",,

"consoleondemand","no",,
"forwarders","8.8.8.8,8.8.4.4",,
"timezone","Asia/Kuala_Lumpur",,




chtab node=compute noderes.netboot=pxe noderes.tftpserver=192.168.1.100 noderes.nfsserver=192.168.1.100 noderes.installnic=eth0 noderes.primarynic=eth0
chtab node=compute nodetype.os=centos7.2 nodetype.arch=x86_64 nodetype.profile=compute nodetype.nodetype=osi
chtab key=system passwd.username=root passwd.password=<PASSWORD>#$
-- chtab netname=internal networks.dynamicrange="192.168.1.31-192.168.1.39"


nodeadd node1 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.139 mac.mac=22:98:23:82:40:41

nodeadd KPGNSYSNN01 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.139 mac.mac=38:4C:4F:F8:33:5E
nodeadd KPGNSYSLN01 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.140 mac.mac=38:4C:4F:F8:33:76
nodeadd KPGNSYSDN01 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.141 mac.mac=38:4C:4F:F8:33:46
nodeadd KPGNSYSDN02 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.142 mac.mac=38:4C:4F:F8:33:56
nodeadd KPGNSYSDN03 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.143 mac.mac=38:4C:4F:F8:33:52
nodeadd KPGNSYSDN04 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.144 mac.mac=38:4C:4F:F8:33:6E


nodeset KPGNSYSNN01 osimage=centos7.2-x86_64-install-compute
nodeset KPGNSYSLN01 osimage=centos7.2-x86_64-install-compute

nodeset KPGNSYSDN03 osimage=centos7.2-x86_64-install-compute
nodeset KPGNSYSDN04 osimage=centos7.2-x86_64-install-compute


nodeset KPGNSYSNN01 boot





tabdump nodelist
tabdump nodehm
tabdump mac
tabdump passwd
tabdump osimage



9. Create a network boot root image
# mknb x86_64


11. Build the network table first
# makenetworks

12. Update dns and dhcp config
# vi /etc/hosts
192.168.1.100 xcatmaster.alltrix.local  xcatmaster
192.168.1.41       node1.alltrix.local  node1


# makedns
# makedhcp -n
# makedhcp -a

<commit_msg>xCAT steps<commit_after>
vi /etc/security/limits.conf
root - nofile 32768
root - nproc  65536
 *   - nofile 32768
 *   - nproc  65536

vi /etc/sysconfig/selinux
SELINUX=permissive

systemctl disable firewalld
systemctl stop    firewalld

# Disable virbr in RHEL/CentOS
virsh net-destroy   default
virsh net-autostart default --disable
virsh net-undefine  default
systemctl disable libvirtd.service
systemctl stop    libvirtd.service


mkdir -p /mnt/cdrom
mount -o loop /mnt/ISO/CentOS-7-x86_64-Everything-1511.iso /mnt/cdrom


# mount ISO as repo
vi /etc/yum.repos.d/cdrom.repo
[cdrom]
name=cdrom
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0


tar -jxvf xcat-core-2.11.1-linux.tar.bz2
tar -jxvf xcat-dep-2.11.1.tar.bz2


          /home/xcat-core/mklocalrepo.sh
/home/xcat-dep/rh7/x86_64/mklocalrepo.sh


yum clean   all
rpm --import   /mnt/cdrom/RPM-GPG-KEY-CentOS-*
yum install xCAT



copycds -n centos7.2 /mnt/ISO/CentOS-7-x86_64-Everything-1511.iso
tabdump osimage


#tabedit site

"domain","alltrix.local"
"keyboard","us"
"master","192.168.1.100",,
"nameservers","192.168.1.100",,

"consoleondemand","no",,
"forwarders","8.8.8.8,8.8.4.4",,
"timezone","Asia/Kuala_Lumpur",,




chtab node=compute noderes.netboot=pxe noderes.tftpserver=192.168.1.100 noderes.nfsserver=192.168.1.100 noderes.installnic=eth0 noderes.primarynic=eth0
chtab node=compute nodetype.os=centos7.2 nodetype.arch=x86_64 nodetype.profile=compute nodetype.nodetype=osi
chtab key=system passwd.username=root passwd.password=<PASSWORD>#$
-- chtab netname=internal networks.dynamicrange="192.168.1.31-192.168.1.39"


nodeadd node1 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.139 mac.mac=22:98:23:82:40:41

nodeadd KPGNSYSNN01 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.139 mac.mac=38:4C:4F:F8:33:5E
nodeadd KPGNSYSLN01 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.140 mac.mac=38:4C:4F:F8:33:76
nodeadd KPGNSYSDN01 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.141 mac.mac=38:4C:4F:F8:33:46
nodeadd KPGNSYSDN02 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.142 mac.mac=38:4C:4F:F8:33:56
nodeadd KPGNSYSDN03 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.143 mac.mac=38:4C:4F:F8:33:52
nodeadd KPGNSYSDN04 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.144 mac.mac=38:4C:4F:F8:33:6E

nodeset KPGNSYSNN01 osimage=centos7.2-x86_64-install-compute
nodeset KPGNSYSLN01 osimage=centos7.2-x86_64-install-compute
nodeset KPGNSYSDN03 osimage=centos7.2-x86_64-install-compute
nodeset KPGNSYSDN04 osimage=centos7.2-x86_64-install-compute

nodeset KPGNSYSNN01 boot





nodeadd node01 groups=compute,all mac.interface=eth0 hosts.ip=192.168.1.101 mac.mac=38:4C:4F:F8:33:5E
nodeset node01 osimage=centos7.2-x86_64-install-compute
nodeset node01 boot



tabdump hosts
tabdump nodelist
tabdump nodehm
tabdump mac
tabdump passwd
tabdump osimage



9. Create a network boot root image
# mknb x86_64


11. Build the network table first
# makenetworks

12. Update dns and dhcp config
# vi /etc/hosts
192.168.1.100 xcatmaster.alltrix.local  xcatmaster
192.168.1.41       node1.alltrix.local  node1


# makedns
# makedhcp -n
# makedhcp -a


{'fraction_non_alphanumeric': 0.12400455062571103, 'fraction_numerical': 0.11847879083373963, 'mean_word_length': 4.762172284644195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 35, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6776662', 'n_tokens_mistral': 3018, 'n_tokens_neox': 2606, 'n_words': 445}