This is an old revision of the document!


xCAT - Stateless Image Customizations

The following procedure can be used to update/customize xCAT netboot images on the head node (xCAT master). Also, NIC drivers for the baremetal servers can be updated inside the netboot image.

1. On the Head Node (xCAT master) update the netboot image:

# chroot into the netboot image
chroot /install/netboot/centos/x86_64/bare-metal-worker/rootimg
mount -t proc proc /proc
cd ~
# update/customize the netboot image
yum clean all
yum update
# exit from chroot environment
umount  /proc
exit
# create stateless image from chroot netboot image
packimage centos-x86_64-netboot-bare-metal-worker

2. Create a slice with a baremetal node to boot up baremetal worker. Login to the worker node, download Mellanox Network Interface Card drivers and build RPMs.

Login to the baremetal worker:

cd ~
wget 'http://www.mellanox.com/downloads/Drivers/mlnx-en-3.3-1.0.0.0.tgz'
mkdir ~/tmp
tar xf mlnx-en-3.3-1.0.0.0.tgz
cd mlnx-en-3.3-1.0.0.0
./install.sh --build-only --tmpdir /root/tmp
# copy the RPMs to the head node
scp -r RPMS/rhel6u8 mcevik@10.101.0.1:~/mlnx-en-3.3-1.0.0.0-rhel6u8

3. On the Head Node (xCAT master) install NIC drivers to the chroot netboot image:

# first, copy the RPMs into the image directory
cp -r ~mcevik/mlnx-en-3.3-1.0.0.0-rhel6u8 /install/netboot/centos/x86_64/bare-metal-worker/rootimg/root/.
# chroot into the netboot image
chroot /install/netboot/centos/x86_64/bare-metal-worker/rootimg
mount -t proc proc /proc
# Uninstall existing RPMs
rpm -qa | egrep 'mlnx|mstflint'
rpm -e <RPMS>
 #rpm -e mlnx-en-doc-3.3-1.0.0.0.0.gf583963.rhel6u5.x86_64
 #rpm -e mlnx-en-debuginfo-3.3-1.0.0.0.0.gf583963.rhel6u5.x86_64
 #rpm -e mlnx-en-sources-3.3-1.0.0.0.0.gf583963.rhel6u5.x86_64
 #rpm -e kmod-mlnx-en-3.3-1.0.0.0.0.gf583963.rhel6u5.x86_64
 #rpm -e mlnx-en-utils-3.3-1.0.0.0.0.gf583963.rhel6u5.x86_64
# Install new RPMs
cd  /root/mlnx-en-3.3-1.0.0.0-rhel6u8/x86_64
rpm -ivh mlnx-en-*
rpm -ivh mstflint-*
rpm -ivh kmod-mlnx-*
# exit from chroot environment
umount  /proc
exit
# create stateless image from chroot netboot image
packimage centos-x86_64-netboot-bare-metal-worker
Navigation
Print/export