Link to home
Start Free TrialLog in
Avatar of cgray1223
cgray1223

asked on

Creating a Linux Based (CentOS) Kickstart iso Install file

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

ASKER CERTIFIED SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial