Solved

Creating a Linux Based (CentOS) Kickstart iso Install file

Posted on 2013-05-11
1
918 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS EC2 HTTP & HTTPS 2 117
Apache LDAP Authentication 20 72
IMAP copying tool 14 76
comm diff cmp unix commands 2 18
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses

734 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