natur@x240 ~/Downloads $ wget http://mirror.for.me.uk/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-netinstall.iso
natur@x240 ~/Downloads $ sudo mount -t iso9660 -o loop CentOS-6.5-x86_64-netinstall.iso /media/
[sudo] password for natur:
mount: block device /home/natur/Downloads/CentOS-6.5-x86_64-netinstall.iso is write-protected, mounting read-only
natur@x240 ~/Downloads $ cd /media
natur@x240 /media $ tar cf - . | (cd /home/natur/tmp/centos_netinstall_kickstart; tar xfp -)
natur@x240 /media $ cd /home/natur/tmp/centos_netinstall_kickstart
vim isolinux/isolinux.cfg
default linux
prompt 0
timeout 0
display boot.msg
menu background splash.jpg
menu title Welcome to CentOS 6.5!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000
label linux
menu label ^CentOS 6.5 x86_64 Kisckstart NetInstall
menu default
kernel vmlinuz
append initrd=initrd.img ks=http://172.25.1.25/provisioning/ks.cfg ksdevice=eth0 text
http://172.25.1.25/provisioning/ks.cfg
#platform=x86, AMD64, ou Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --enabled --ssh --service=ssh
# Install OS instead of upgrade
install
# Use network installation
url --url="http://mirror.centos.org/centos/6.5/os/x86_64"
# Root password
rootpw --iscrypted $6$/5bHGFFw$7KZMXchRo.FYWzTGyCyQWo200xZucm/XvT61ZlSIFBr1HNxLC8xaSoTb5gUSMrPu0j7Yr5Y/C8XMZdnlE2KY6/
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System authorization information
authconfig --enableshadow --passalgo=sha512
# Use text mode install
text
# System keyboard
keyboard gb
# System language
lang en_US.UTF-8
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone --isUtc Europe/London
# System bootloader configuration
bootloader --location=mbr --append="crashkernel=auto rhgb quiet"
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
%packages
@base
@core
@server-policy
@Development Tools
mc
vim
wget
curl
htop
%end
%post
useradd -m toor
echo anobii123 | passwd --stdin toor
#expire the password and force the user to enter the new password after first login
passwd -e toor
Generate base iso
natur@x240 ~/tmp/centos_netinstall_kickstart $ genisoimage -o /home/natur/CentOS-6.5-x86_64-kickstart-netinstall.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "Centos 6.5 x86_64 Kisckstar ISO" -input-charset UTF8 /home/natur/tmp/centos_netinstall_kickstart/
Size of boot image is 4 sectors -> No emulation
3.97% done, estimate finish Wed Jul 2 14:27:25 2014
7.93% done, estimate finish Wed Jul 2 14:27:25 2014
11.90% done, estimate finish Wed Jul 2 14:27:25 2014
15.87% done, estimate finish Wed Jul 2 14:27:25 2014
19.83% done, estimate finish Wed Jul 2 14:27:25 2014
23.80% done, estimate finish Wed Jul 2 14:27:29 2014
27.75% done, estimate finish Wed Jul 2 14:27:28 2014
31.72% done, estimate finish Wed Jul 2 14:27:28 2014
35.69% done, estimate finish Wed Jul 2 14:27:27 2014
39.65% done, estimate finish Wed Jul 2 14:27:27 2014
43.62% done, estimate finish Wed Jul 2 14:27:27 2014
47.57% done, estimate finish Wed Jul 2 14:27:27 2014
51.54% done, estimate finish Wed Jul 2 14:27:28 2014
55.50% done, estimate finish Wed Jul 2 14:27:28 2014
59.47% done, estimate finish Wed Jul 2 14:27:30 2014
63.43% done, estimate finish Wed Jul 2 14:27:29 2014
67.40% done, estimate finish Wed Jul 2 14:27:29 2014
71.36% done, estimate finish Wed Jul 2 14:27:30 2014
75.33% done, estimate finish Wed Jul 2 14:27:30 2014
79.29% done, estimate finish Wed Jul 2 14:27:30 2014
83.26% done, estimate finish Wed Jul 2 14:27:29 2014
87.22% done, estimate finish Wed Jul 2 14:27:30 2014
91.18% done, estimate finish Wed Jul 2 14:27:30 2014
95.15% done, estimate finish Wed Jul 2 14:27:30 2014
99.11% done, estimate finish Wed Jul 2 14:27:30 2014
Total translation table size: 2048
Total rockridge attributes bytes: 2276
Total directory bytes: 6144
Path table size(bytes): 56
Max brk space used 1c000
126127 extents written (246 MB)
Some usefull docs: