#pay attention to the comments inline !! install #cmdline #use a mirror close to you or even better, the local one provided by your organization url --url http://mirror.centos.org/centos/6/os/x86_64 repo --name=updates --baseurl=http://mirror.centos.org/centos/6/updates/x86_64/ lang en_US.UTF-8 keyboard us skipx network --device eth0 --bootproto dhcp #do not forget to change the password ! #rootpw test1234 rootpw --iscrypted $1$.A66cJ18$2YhwhpQs.fRNno/PAzqc7/ firewall --enabled selinux --enforcing authconfig --enableshadow --passalgo=sha512 --enablefingerprint services --enabled auditd,cups,ntpd,ntpdate,acpid, timezone --utc Europe/London zerombr bootloader --location=mbr clearpart --all --initlabel --drives=sda part /boot --fstype ext3 --size=250 --asprimary part / --fstype ext4 --size=10000 --asprimary --grow #%packages %packages --nobase #use the next line instead of the previous one if you do not care about the doc files #%packages --nobase --excludedocs coreutils yum rpm e2fsprogs lvm2 grub openssh-server openssh-clients dhclient yum-presto irqbalance sudo crontabs cronie-anacron postfix NetworkManager -atmel-firmware -ipw*-firmware -bfa-firmware -ivtv-firmware -iwl*-firmware -ql*-firmware -libertas-usb8388-firmware -rt61pci-firmware -rt73usb-firmware -aic94xx-firmware -zd1211-firmware -b43-openfwwf -sysstat-9.0.4-11.el6.i686 -yum-utils-1.1.26-11.el6.noarch -info -cyrus-sasl acpid %end %post /bin/echo "multilib_policy=best" >> /etc/yum.conf >> /root/postinstall.log 2>&1 rm /etc/udev/rules.d/70-persistent-net.rules sed -i "/HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0 tune2fs -i 0 /dev/sda1 %end