#### hep2.ks.cfg adapted from hep1 and exa3 #### select "install CentOS 7", press TAB, append this: #### ks=http://scs-repo.lbl.gov/ks/hep2.ks.cfg #### backspace may not work correctly, try to avoid typo! #### tin 2021.0329 #### CentOS 7 will have a TUI menu (or graphical?) #### allowing to (8) set root password, (9) user creation, (7) Net config, etc #### worked as expected, install from rpm on DVD ISO for VM #### VBox created hd as sda #### could do disk mirror manually, then save the resulting /root/anaconda-ks.cfg install #version=DEVEL # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # Use text mode install text skipx # Use graphical install #graphical # Run the Setup Agent on first boot #xx firstboot --enable #xx ignoredisk --only-use=nvme0n1 ##++ # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=enp2s0f0 --onboot=off --ipv6=auto --no-activate network --bootproto=dhcp --device=enp2s0f1 --onboot=off --ipv6=auto network --bootproto=dhcp --device=enp66s0f0 --onboot=off --ipv6=auto network --bootproto=static --device=enp66s0f1 --gateway=128.3.7.1 --ip=128.3.7.18 --nameserver=131.243.5.1 --netmask=255.255.255.0 --ipv6=auto --activate network --bootproto=dhcp --device=enp69s0f3u2u3c2 --onboot=off --ipv6=auto network --hostname=ml4hep2 ##++ # Use network installation url --url="https://mirrors.sonic.net/centos/7/os/x86_64/" # Root password ##rootpw --iscrypted crypt-redacted # System services services --enabled="chronyd" # System timezone timezone America/Los_Angeles # System bootloader configuration ##bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=nvme0n1 ##++ ##bootloader --append=" crashkernel=auto" --location=mbr ##++ ##autopart --type=lvm # Partition clearing information ##clearpart --none --initlabel ##clearpart --all --initlabel ## config ref https://access.redhat.com/solutions/4361 zerombr bootloader --location=mbr --driveorder=sdb,sdc --append="crashkernel=auto" ## ++ use correct disk specific to the system clearpart --drives=sdb,sdc --initlabel part swap --size=8192 --ondisk=sdb ## these are just two swap partitions, no mirror etc part swap --size=8192 --ondisk=sdc part raid.0001 --size 1200 --asprimary --ondrive=sdb ## /boot, 1.2 G part raid.0002 --size 5000 --grow --ondrive=sdb ## rest of disk part raid.0003 --size 1200 --asprimary --ondrive=sdc part raid.0004 --size 5000 --grow --ondrive=sdc raid /boot --fstype ext4 --device md0 --level=RAID1 raid.0001 raid.0003 raid pv.0001 --device md1 --level=RAID1 raid.0002 raid.0004 volgroup VolumeGroup00 pv.0001 logvol / --fstype xfs --vgname=VolumeGroup00 --size=64000 --name=root # / as 64G %packages @^minimal @core chrony kexec-tools %end %addon com_redhat_kdump --enable --reserve-mb='auto' %end %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end