In this guide, we are about to see how to create a customised Golden ISO image with the kickstart file. During RedHat, CentOS, Oracle Linux installation we need to manually interact for every step. To automate those steps by predefined actions under the kickstart file we can save a lot of time and make an automated environment to quickly deploy the required machines in Virtual and Physical environment.
Note:> We need to create separate ISO images for both Physical and Virtual server installation, This can be override by creating some Ifelse post script under kickstart file.
More articles related OS Installation
Install the Required Package
Prepare Kickstart file with required actions, By following install the required package.
# yum install isomd5sum -y
Create a directory for customized image build, enable shopt to copy all hidden files.
# mkdir /OEL_6.8_Custom/
# shopt -s dotglob
Mount the required ISO file from somewhere
Mount ISO to copy the files
# mount -t iso9660 -o loop /dev/sr0 /mnt/
Copy all the file including hidden files, Copy kickstart file under the custom directory
# sudo cp -riv /mnt/* /OEL_6.8_Custom/ # sudo cp /root/ks.cfg /OEL_6.8_Custom/
Change the required parameter
# sudo vim /OEL_6.8_Custom/isolinux/isolinux.cfg
Creating ISO file
Create the ISO using mkisofs
# sudo mkisofs -o /OEL68.iso -b isolinux/isolinux.bin -c isolinux/boot.cat --no-emul-boot --boot-load-size 4 --boot-info-table -J -R -V disks .
Verify the Custom Build ISO
Add MD5 checksum in ISO file, Check for MD5 implementation using checkisomd5.
# implantisomd5 /iso/custom_dvd.iso
# checkisomd5 --verbose /iso/custom_dvd.iso
That’s it, We have done with creating a new Golden image. Hereafter if we need to install any servers without human interaction this ISO can be used.
To automate the installation using a ISO file can be achieved by creating a golden image. Above steps similar for RHEL based operating systems. Let us come up with new articles, Subscribe to our newsletter and stay connected.