kickstart
From Glee
Examples
RHEL6 Headless
The following file is for a RHEL6 KVM virtual server running headless, with only a serial console in order to be able to log in from the KVM host using virsh console burst07. See virt-install for and installation example using this kickstart file. RHN packages are skipped, some other useful packages are added.
# Kickstart file for RHEL6 install text reboot url --url=http://192.168.19.254/install/os/rhel-server-6.0-x86_64 lang en_US.UTF-8 keyboard fr network --hostname burst07.marmotte.ici --device eth0 --bootproto static --ip 192.168.19.7 --netmask 255.255.255.0 --gateway 192.168.19.254 --nameserver 192.168.19.1 rootpw changemeIMMEDIATELY firewall --service=ssh --port=http:tcp services --disabled anacron,auditd authconfig --enableshadow --passalgo=sha512 --enablefingerprint selinux --enforcing timezone --utc Europe/Paris bootloader --location=mbr --append="console=ttyS0,9600 crashkernel=auto" clearpart --all --initlabel part / --asprimary --fstype=ext4 --size=100 --grow part swap --asprimary --recommended repo --name="Red Hat Enterprise Linux 6" --baseurl=http://192.168.19.254/install/os/rhel-server-6.0-x86_64/ --cost=100 %packages --nobase @core -rhn-check -rhn-client-tools -rhn-setup -rhnlib -rhnsd -yum-rhn-plugin bind-utils elinks iptraf lsof man mtr nmap openssh-clients prelink rsync screen strace sysstat tcpdump telnet vim-enhanced wget yum-utils %end %post --log=/root/ks-post.log wget -O /etc/yum.repos.d/custom.repo http://192.168.19.254/install/custom-el6.repo # Disable all tty consoles, since we run headless (the serial one is active) sed -i -e 's|RUNLEVEL=\[2345\]|RUNLEVEL=[45]|' /etc/init/start-ttys.conf # Install my GPG key for package signatures wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-matthias http://192.168.19.254/install/RPM-GPG-KEY-matthias %end