4.5. Kickstart File ExampleΒΆ

Below is an example of kickstart file that you can use to install and configure Acronis Storage 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
# Use CDROM as the installation media.
cdrom
# Install in a completely unattended mode.
cmdline
# Run the Setup Agent on first boot.
firstboot --enable
# Set the target device for the system here!
ignoredisk --only-use=sdc
# Use the English keyboard type.
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=<network_device> --ipv6=auto --activate
#network  --bootproto=dhcp --hostname=localhost.localdomain

# Set the encrypted root password for the server.
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=sdc
# 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=sdc --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 the external and internal IP addresses for the management panel.
#%addon com_vstorage --external-iface=eth0 --internal-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. Specify a token and the IP address of the management
# panel node to register the current node.
#%addon com_vstorage --storage --token=xxxxxxxxx --mgmt-node-addr=10.0.15.7
#%end