| 1 | | * Kickstart is a method for automated installation of Red Hat, Fedora, CentOS linux. It contains installation steps that would normally be performed during a typical installation. Following is an example of a kickstart file for CentOS minimum install based on a discussion on uabgrid-dev list. |
|---|
| 2 | | {{{ |
|---|
| 3 | | #platform=x86, AMD64, or Intel EM64T |
|---|
| 4 | | # System authorization information |
|---|
| 5 | | # Install OS instead of upgrade |
|---|
| 6 | | install |
|---|
| 7 | | text |
|---|
| 8 | | # Installation logging level |
|---|
| 9 | | logging --level=info |
|---|
| 10 | | # Use CDROM installation media |
|---|
| 11 | | cdrom |
|---|
| 12 | | # Reboot after installation |
|---|
| 13 | | reboot |
|---|
| 14 | | auth --useshadow --enablemd5 |
|---|
| 15 | | # System bootloader configuration |
|---|
| 16 | | # For EL5 virtual machines, Append the following in Grub to help keep the clock from drifting |
|---|
| 17 | | # and to reduce the interupt requests |
|---|
| 18 | | # 32bit: --append="rhgb quiet divider=10 clocksource=acpi_pm" |
|---|
| 19 | | # 64bit: --append="rhgb quiet notsc divider=10" |
|---|
| 20 | | bootloader --location=mbr --md5pass=$1$mXSD1l6mO$BBCk1gYArAATS7dlCQGthN. --append="rhgb quiet divider=10 clocksource=acpi_pm" |
|---|
| 21 | | # Run the Setup Agent on first boot |
|---|
| 22 | | firstboot --disable |
|---|
| 23 | | # System keyboard |
|---|
| 24 | | keyboard us |
|---|
| 25 | | # System language |
|---|
| 26 | | lang en_US.UTF-8 |
|---|
| 27 | | #Root password |
|---|
| 28 | | rootpw --iscrypted $1$SWhuHTeF$zQ2rNyyyVgrQavWqrGJIX. |
|---|
| 29 | | # Network settings |
|---|
| 30 | | network --device eth0 --bootproto dhcp |
|---|
| 31 | | # Firewall configuration |
|---|
| 32 | | firewall --enabled --http --ftp --ssh --telnet --smtp |
|---|
| 33 | | # SELinux configuration |
|---|
| 34 | | selinux --permissive |
|---|
| 35 | | # Do not configure the X Window System |
|---|
| 36 | | skipx |
|---|
| 37 | | # System timezone |
|---|
| 38 | | timezone America/Chicago |
|---|
| 39 | | # Partition clearing information |
|---|
| 40 | | clearpart --all --initlabel |
|---|
| 41 | | # Disk partitioning information |
|---|
| 42 | | # Disk partitioning information |
|---|
| 43 | | part /boot --bytes-per-inode=4096 --fstype="ext3" --grow --maxsize=64 --size=10 |
|---|
| 44 | | part pv.1 --size=0 --grow --maxsize=8032 |
|---|
| 45 | | volgroup VolGroup00 pv.1 |
|---|
| 46 | | logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --maxsize=7520 --grow |
|---|
| 47 | | logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512 |
|---|
| | 1 | == Introduction == |
|---|
| | 2 | Kickstart is a method for automated installation of Red Hat and Fedora like linux distros. It contains installation steps that would normally be performed manually during a typical installation. |
|---|
| 71 | | ######################################## |
|---|
| 72 | | # Disable cpuspeed on VM guests, this service will cause time drift |
|---|
| 73 | | /sbin/chkconfig cpuspeed off |
|---|
| | 18 | == Kickstart configuration == |
|---|
| | 19 | === Security === |
|---|
| | 20 | * SELinux is disabled by default. |
|---|
| | 21 | * Firewall is disabled by default, but HTTP, SSH, telnet, and SMTP ports are opened in the configuration. |
|---|