.. _Kickstart File Example: Kickstart File Example ---------------------- Below is an example of kickstart file that you can use to install and configure |product_name| in the unattended mode. You can use this file as the basis for creating your own kickstart files. :: # Use the SHA-512 encryption for user passwords and enable shadow passwords. auth --enableshadow --passalgo=sha512 # Install from the CD-ROM drive. cdrom # Install without invoking the GUI. cmdline # Run the Setup Agent on first boot. firstboot --enable # Set the target device for the system here! ignoredisk --only-use=sda # Use the US English keyboard. keyboard --vckeymap=us --xlayouts='us' # Use English as the language during the installation and as the default system # language. lang en_US.UTF-8 # If you intend to run configuration scripts after installation, # uncomment the following and specify a network device to configure network. #network --bootproto=dhcp --device= --ipv6=auto --activate #network --bootproto=dhcp --hostname= # Specify the encrypted root password for the node. rootpw --iscrypted xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Disable SELinux. selinux --disabled # Enable time synchronization via NTP. services --enabled="chronyd" # Set the system time zone. timezone America/New_York # Configure the bootloader. Set the target device for the system as the first # drive in the BIOS boot order and write the boot record to MBR. bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda # Set the partition type to LVM. autopart --type=lvm # Configure the partition removal for the system drive. # Set the target device for the system here! clearpart --all --initlabel --drives=sda --disklabel=gpt # Make the installation program run the post-installation script and configure # it to add keys to RPM database and reinstall the vzlinux release. %post rpmkeys --import /etc/pki/rpm-gpg/* yum reinstall vzlinux-release -y # Uncomment to install the trial license. #vzlicupdate -a trial # Uncomment to configure SElinux. #yes | fixfiles -f -F relabel / %end # Install the packages on the node. %packages @^minimal %end # Enable kernel crash dumping during the installation. %addon com_redhat_kdump --enable --reserve-mb='auto' %end # Uncomment to install the management panel and storage components without # running scripts on the node after installation. If you do not intend to # install the storage component, remove the '--storage' parameter. # Specify an internal interface for the management network and # an external interface for the management panel network. #%addon com_vstorage --internal-iface=eth0 --external-iface=eth1 \ #--password=xxxxxxxxx --management --storage #%end # Uncomment to install the management panel and storage. Running configuration # scripts required after the installation. If you do not intend to install the # storage component, remove the --storage parameter. #%addon com_vstorage --management --storage --bare #%end # Uncomment to install the storage component without running scripts on the # node after installation. To register the node, specify the token as well as # the IP address of the management panel. #%addon com_vstorage --storage --token=xxxxxxxxx --mgmt-node-addr=10.37.130.1 #%end