Difference between revisions of "Install M2 on Stock Minimal CentOS/RHEL Install"

From AN!Wiki
Jump to: navigation, search
(Setup Install Target)
 
Line 4: Line 4:
  
 
= Check the Latest Release =
 
= Check the Latest Release =
 +
 +
{{note|1=At this time, the master branch must be used. 2.0.7 won't work for UEFI clients trying to boot off of the 'Install Target' feature.}}
  
 
Find the link to the latest Anvil! M2 release
 
Find the link to the latest Anvil! M2 release
Line 12: Line 14:
 
<syntaxhighlight lang="text">
 
<syntaxhighlight lang="text">
 
striker:https://github.com/ClusterLabs/striker/archive/v2.0.7.zip
 
striker:https://github.com/ClusterLabs/striker/archive/v2.0.7.zip
 +
master:https://github.com/ClusterLabs/striker/archive/master.zip
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 24: Line 27:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Install needed packages;
+
Update the OS and then install needed packages;
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
yum install perl usbutils wget
+
yum -y update && yum -y install perl usbutils wget unzip
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
Switch to the <span class="code">root</span> user's home page, download and extract the source and copy the <span class="code">striker-installer</span> into place.
 
Switch to the <span class="code">root</span> user's home page, download and extract the source and copy the <span class="code">striker-installer</span> into place.
 +
 +
== Stable Release ==
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd ~
 
cd ~
wget https://github.com/ClusterLabs/striker/archive/v2.0.7.tar.gz
+
wget https://github.com/ClusterLabs/striker/archive/v2.0.7.zip
tar -xvzf v2.0.7.tar.gz
+
unzip v2.0.7.tar.gz
 +
mv striker-master striker
 +
cp striker/tools/striker-installer ~/
 +
</syntaxhighlight>
 +
 
 +
== Master branch ==
 +
 
 +
<syntaxhighlight lang="bash">
 +
cd ~
 +
wget https://github.com/ClusterLabs/striker/archive/master.zip
 +
unzip master.zip
 
mv striker-2.0.7 striker
 
mv striker-2.0.7 striker
 
cp striker/tools/striker-installer ~/
 
cp striker/tools/striker-installer ~/
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
== Install Striker ==
  
 
Run the installer.  
 
Run the installer.  
Line 45: Line 62:
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
./striker-installer -b 10.20.4.1/16 -c Alteeve -i 192.168.122.41/24,dg=192.168.122.1,dns1=8.8.8.8 -n an-striker01.alteeve.com -p 10.20.1.200:10.20.1.210 --router-mode -u admin:Initial1  
+
./striker-installer \
 +
-b 10.20.4.1/16 \
 +
-c Alteeve -i 192.168.122.41/24,dg=192.168.122.1,dns1=8.8.8.8 \
 +
-n an-striker01.alteeve.com \
 +
-p 10.20.1.200:10.20.1.210 \
 +
--router-mode \
 +
-u admin:Initial1  
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 20:31, 11 February 2020

 AN!Wiki :: How To :: Install M2 on Stock Minimal CentOS/RHEL Install

This is meant to show how to install the Striker dashboard and Anvil! nodes using machines with generic EL6 minimal installs. This is needed in some cases, like when installing on UEFI machines.

Contents

[edit] Check the Latest Release

Template note icon.png
Note: At this time, the master branch must be used. 2.0.7 won't work for UEFI clients trying to boot off of the 'Install Target' feature.

Find the link to the latest Anvil! M2 release

At the time of writing, this is:

striker:https://github.com/ClusterLabs/striker/archive/v2.0.7.zip
master:https://github.com/ClusterLabs/striker/archive/master.zip

[edit] Setup a Striker Dashboard

Template note icon.png
Note: You will still need the install media if you want to have Striker operate as an install target post-setup. To do this, see: Build the Anvil! m2 Install Media.

Add the Alteeve repo;

yum install https://www.alteeve.com/an-repo/el6/RPMS/noarch/alteeve-repo-0.1-4.noarch.rpm

Update the OS and then install needed packages;

yum -y update && yum -y install perl usbutils wget unzip

Switch to the root user's home page, download and extract the source and copy the striker-installer into place.

[edit] Stable Release

cd ~
wget https://github.com/ClusterLabs/striker/archive/v2.0.7.zip
unzip v2.0.7.tar.gz
mv striker-master striker
cp striker/tools/striker-installer ~/

[edit] Master branch

cd ~
wget https://github.com/ClusterLabs/striker/archive/master.zip
unzip master.zip
mv striker-2.0.7 striker
cp striker/tools/striker-installer ~/

[edit] Install Striker

Run the installer.

Template note icon.png
Note: Change the options to suit your environment. Run: /root/striker-installer --help to see options.
./striker-installer \
 -b 10.20.4.1/16 \
 -c Alteeve -i 192.168.122.41/24,dg=192.168.122.1,dns1=8.8.8.8 \
 -n an-striker01.alteeve.com \
 -p 10.20.1.200:10.20.1.210 \
 --router-mode \
 -u admin:Initial1

[edit] Setup Install Target

Template note icon.png
Note: This tutorial assumes you are running CentOS. If you have installed RHEL proper, replace centos6 with rhel6.

To setup the install target feature, please mount the Anvil! ISO in the striker dashboard. This section assume it is mounted at /mnt/source.

# Apache directories
mkdir -p /var/www/html/centos6/x86_64/{img,iso,ks,files}
 
# PXE/tftp directories
mkdir -p /var/lib/tftpboot/boot/centos6/x86_64/
mkdir /var/lib/tftpboot/pxelinux.cfg
 
# Create the source mount point.
mkdir /mnt/source;
 
# Make sure the optical drive is mounted.
mount /dev/cdrom /mnt/source;
 
# Create a copy of the install ISO on Striker.
echo 'Copying the install iso image using dd. Be patient'
dd if=/dev/cdrom of=/var/www/html/centos6/x86_64/iso/Anvil_m2.iso bs=1M
 
# Copy the raritan and alteeve-variant APC fence agents into place.
echo 'Copying fence_raritan_snmp into /usr/sbin/'
cp /mnt/source/Tools/fence/fence_raritan_snmp /usr/sbin/
 
echo 'Copying fence_apc_alteeve into /usr/sbin/'
cp /mnt/source/Tools/fence/fence_apc_alteeve /usr/sbin/
 
# Copy the node and dashboard KSes into place
echo 'Copying the KS scripts into place.'
cp /mnt/source/ks/pxe-new-node01_from-striker01.ks /var/www/html/centos6/x86_64/ks/pxe-new-node01.ks
cp /mnt/source/ks/pxe-new-node02_from-striker01.ks /var/www/html/centos6/x86_64/ks/pxe-new-node02.ks
cp /mnt/source/ks/pxe-new-striker01.ks             /var/www/html/centos6/x86_64/ks/
cp /mnt/source/ks/pxe-new-striker02.ks             /var/www/html/centos6/x86_64/ks/
Template note icon.png
Note: Edit the kickstart scripts in /var/www/html/centos6/x86_64/ks/ and change all instances of the IP addresses 10.20.4.1 to the BCN IP address you assigned to your first Striker, and 10.20.4.2 to the IP address of your second striker.
# A little flair...
echo 'Setting the PXE wallpaper.'
cp /mnt/source/syslinux/splash.jpg /var/lib/tftpboot/
 
echo "Copying 'Tools' into /var/www/html/centos6/x86_64/files/"
rsync -av /mnt/source/Tools /var/www/html/centos6/x86_64/files/
 
# Copy the ISO contents to the apache 'img' folder.
echo 'Copying the ISO source to apache...'
cp -Rvp /mnt/source/*         /var/www/html/centos6/x86_64/img/
cp      /mnt/source/.discinfo /var/www/html/centos6/x86_64/img/
cp      /mnt/source/.treeinfo /var/www/html/centos6/x86_64/img/

[edit] Prepare Nodes for Install Manifest Run

[edit] Install Partitioning

When installing, partition the system to have;

Mount Minimum Size
/boot 512 MiB
swap 4 GiB
/ 40 GiB

Leave the rest of the drive unpartitioned. The unused space will be configured by Install Manifest for hosting VMs.

 

TODO:

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Us: Alteeve's Niche! Support: Mailing List IRC: #clusterlabs on Freenode   © Alteeve's Niche! Inc. 1997-2019
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.
Personal tools
Namespaces

Variants
Actions
Navigation
projects
Toolbox