Solved

Creating a Linux Based (CentOS) Kickstart iso Install file

Posted on 2013-05-11
1
887 Views
Last Modified: 2013-05-13
Hi All,

I'm trying to create a custom CentOS iso using Kickstart and I'm following this example.

I have a VirtualBox CentOS 6.4 32 bit install that was installed using the appropriate iso file.  I've created my Kickstart configuration file and I'm ready to run the below command to create the custom install in /root/test/ but I don't know what to supply for the -o and the -c parameters.  I have all the rpm's from the iso file used to create this CentOS VirtualBox insall in /root/kickstart_build/all_rpms.  

mkisofs Questions:
-What should I specify for -o without a iso file?  
-Regarding -c, I don't have a isolinux/boot.cat file, but I do have a boot.msg, is that the same?

Command to Generate the custom iso using Kickstart:
#cd /root/test/ &&
mkisofs -o /home/fedora-kickstart.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V “Fedora” .

Open in new window



kickstart config file:
# Start here ---------------------------

text
skipx
install
url --url http://mirror.cogentco.com/pub/linux/centos/6.4/os/i386/
repo --name=epel --baseurl=http://download.fedoraproject.org/pub/epel/6/i386/
repo --name=updates --baseurl=http://mirror.cogentco.com/pub/linux/centos/6.4/updates/i386/
lang en_US.UTF-8
keyboard us
rootpw 123456
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone Etc/UTC
bootloader --location=mbr
zerombr
clearpart --all --initlabel
part /boot --fstype ext4 --fsoptions="noatime" --size=200
part pv.1 --size 1 --grow
volgroup vg0 --pesize=4096 pv.1
logvol / --fstype ext4 --fsoptions="noatime" --name=root --vgname=vg0 --size=8192
logvol swap --fstype swap --name=swap --vgname=vg0 --size 2048
logvol /var --fstype ext4 --fsoptions="noatime,nodev" --name=var --vgname=vg0 --size=4096
logvol /home --fstype ext4 --fsoptions="noatime,nodev" --name=home --vgname=vg0 --size=2048
 
services --enabled=sendmail,network,ntpd,ntpdate
 
reboot
 
%packages --nobase
epel-release
openssh-clients
openssh-server
yum
at
acpid
vixie-cron
cronie-noanacron
crontabs
logrotate
ntp
ntpdate
tmpwatch
rsync
sendmail
mailx
which
wget
-postfix
-prelink
-selinux-policy-targeted
%end

# End here -----------------------

Open in new window


isolinux.cfg additions

label kickstart install
  menu label ^kickstart install
  menu default
  kernel vmlinuz
  append initrd=initrd.img ks=/root/ks.cfg xdriver=vesa nomodeset

Open in new window

0
Comment
Question by:cgray1223
1 Comment
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
Comment Utility
-o introduces the name of the file you are going to create. That will be an ISO9660 image, because that's what mkisofs always creates.
-c identifies the name of a file which mkisofs will create. This file must not exist in your source tree. So go ahead and specify isolinux/boot.cat.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now