Skip to content

Instantly share code, notes, and snippets.

@brasey
Created January 6, 2015 18:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brasey/cb503c6d0344728d15c4 to your computer and use it in GitHub Desktop.
Save brasey/cb503c6d0344728d15c4 to your computer and use it in GitHub Desktop.
Create kickstart ISO image for RHEL

Create kickstart ISO image for RHEL

Notes

I'm mounting the downloaded disk image in a directory called 'cd'.

I'm creating the new disk image in a directory called 'cd.new'.

Steps

Download the boot.iso from redhat.com.

Mount the iso in read-only mode

mkdir cd
sudo mount -o loop Downloads/rhel-server-6.5-x86_64-boot.iso cd

Copy the disk image to another directory

mkdir cd.new
rsync -av cd/ cd.new

Edit the boot config on the new disk image

cd cd.new
vim isolinux/isolinux.cfg

isolinux.cfg should look something like this, but especially the part with a URI to the kickstart file

default vesamenu.c32

display boot.msg

menu background splash.jpg
menu title Welcome to Red Hat Enterprise Linux 6.5!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000

label linux
  menu label ^Kickstart Manheim host
  menu default
  kernel vmlinuz
  append initrd=initrd.img ks=http://ove-dc3prl-satellite.ove.local/cblr/svc/op/ks/profile/kickstart_name:01:OrganizationName

If you're on a Linux system already, copy the boot menu to the new image

cp /usr/share/syslinux/vesamenu.c32 .

Create the new iso image

sudo mkisofs -o ./kickstart-host.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -l -r -T -v -V "Image Name" .

Resources

https://access.redhat.com/documentation/en-US/Red_Hat_Network_Satellite/5.3/html/Deployment_Guide/satops-kickstart.html http://vuksan.com/linux/kickstart_boot_cd.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment