Differences
This shows you the differences between two versions of the page.
linux_wiki:os_install_kickstart [2015/12/30 17:38] billdozor [OS Install: Kickstart] |
linux_wiki:os_install_kickstart [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== OS Install: Kickstart ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | How to install Enterprise Linux using a kickstart file. | ||
- | |||
- | **Checklist** | ||
- | * Enterprise Linux 6/7 Install DVD | ||
- | * NFS Server sharing the kickstart file and install iso | ||
- | * [[linux_wiki: | ||
- | |||
- | ---- | ||
- | |||
- | ====== Kickstart Install ====== | ||
- | |||
- | * Boot a system to installation media | ||
- | * On the " | ||
- | * After " | ||
- | * **Note**: This can be pasted into the console by using most KVM menus. (Keyboard > Send Text to Target... > Paste in text > click Ok) | ||
- | |||
- | ---- | ||
- | |||
- | ====== CentOS 6 Example Kickstart File ====== | ||
- | |||
- | The following kickstart file performs a network install of CentOS 6 minimal, on /dev/sda, with LVM, and reboots after installation. | ||
- | |||
- | Modify the IP addresses in the " | ||
- | |||
- | <code bash centos6-ks.cfg> | ||
- | #### Title: CentOS 6 Generic Kickstart file | ||
- | #### Description: | ||
- | |||
- | ######################################## | ||
- | #### CUSTOMIZE THESE SECTIONS BELOW #### | ||
- | ######################################## | ||
- | |||
- | ## Install Location ## | ||
- | install | ||
- | nfs --server=10.0.0.200 --dir=/ | ||
- | |||
- | ## Locale Settings ## | ||
- | lang en_US.UTF-8 | ||
- | keyboard us | ||
- | |||
- | ## Networking ## | ||
- | network --onboot yes --device eth0 --bootproto static --ip 10.0.0.100 --netmask 255.255.255.0 --gateway 10.0.0.254 --noipv6 --nameserver 10.0.0.1, | ||
- | |||
- | ## System Configuration ## | ||
- | rootpw | ||
- | |||
- | ####################################### | ||
- | #### END OF CUSTOMIZATION SECTIONS #### | ||
- | ####################################### | ||
- | |||
- | ## System Configuration ## | ||
- | firewall --service=ssh | ||
- | authconfig --enableshadow --passalgo=sha512 | ||
- | selinux --disabled | ||
- | timezone --utc America/ | ||
- | bootloader --location=mbr --driveorder=sda --append=" | ||
- | |||
- | ## Disk Partitioning ## | ||
- | |||
- | # Clear Partitions => clear disk /dev/sda partitions, initialize partition tables (zerombr) # | ||
- | clearpart --drives=sda --all | ||
- | zerombr | ||
- | |||
- | # Physical Partitions # | ||
- | part /boot --fstype=ext4 --size=512 --ondisk=sda | ||
- | part pv.01 --grow --size=18500 --ondisk=sda | ||
- | |||
- | # LVM Setup # | ||
- | volgroup vglocal --pesize=4096 pv.01 | ||
- | logvol /home --fstype=ext4 --name=lvhome --vgname=vglocal --size=4096 | ||
- | logvol / --fstype=ext4 --name=lvroot --vgname=vglocal --size=4096 | ||
- | logvol swap --name=lvswap --vgname=vglocal --size=4096 | ||
- | logvol /tmp --fstype=ext4 --name=lvtmp --vgname=vglocal --size=2048 | ||
- | logvol /var --fstype=ext4 --name=lvvar --vgname=vglocal --size=4096 | ||
- | |||
- | ## Packages to Install ## | ||
- | %packages | ||
- | @core | ||
- | @server-policy | ||
- | @workstation-policy | ||
- | nfs-utils | ||
- | %end | ||
- | |||
- | ## Reboot After Installation ## | ||
- | reboot | ||
- | </ | ||
- | |||
- | ---- | ||