Introduction to Customised Linux ISO

Customised Linux ISO – 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 on Virtual and Physical environment.

Note:> We need to create separate ISO images for both Physical and Virtual server installation, This can be overridden by creating some Ifelse postscript under kickstart file.

Customised Linux Golden ISO

More articles related to OS Installation

Install the Required Package

Prepare Kickstart file with required actions, By following install the required package.

# yum install isomd5sum -y

Prepare customization

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 Customised Linux 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.

Conclusion

To automate the installation using an ISO file can be achieved by creating a Customised Linux ISO file. Above steps similar for RHEL based operating systems. Let us come up with new articles, Subscribe to our newsletter and stay connected.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here