Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Creating a Linux Based (CentOS) Kickstart iso Install file

Posted on 2013-05-11
1
Medium Priority
?
972 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 35

Accepted Solution

by:
Duncan Roe earned 2000 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

688 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