Solved

Creating a Linux Based (CentOS) Kickstart iso Install file

Posted on 2013-05-11
1
892 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
ID: 39158964
-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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to install software on a provisioned vagrant image 3 62
linux ssh 4 57
i can not do linux commands in cygwin windows 10 6 60
how to rebuild XFS volume from LV 19 34
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 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

20 Experts available now in Live!

Get 1:1 Help Now