This article needs additional citations for verification .(September 2009) |
The Red Hat Kickstart installation method is used by Fedora, Red Hat Enterprise Linux and related Linux distributions to automatically perform unattended operating system installation and configuration. Red Hat publishes Cobbler as a tool to automate the Kickstart configuration process. [1]
Kickstart is normally used at sites with many such Linux systems, to allow easy installation [2] and consistent configuration of new computer systems.
Kickstart configuration files can be built three ways:
Anaconda will produce an anaconda-ks.cfg configuration file at the end of any manual installation. This file can be used to automatically reproduce the same installation or edited (manually or with system-config-kickstart).
The kickstart file is a simple text file, containing a list of items, each identified by a keyword.
While not strictly required, there is a natural order for sections that should be followed. Items within the sections do not have to be in a specific order unless otherwise noted. The section order is:
%packages
section – listing of software packages to be installed & related options.%pre
, %pre-install
, %post
, %onerror
, and %traceback
sections – can contain scripts that will be executed at the appropriate time during the installation.The %packages
, %pre
, %pre-install
, %post
, %onerror
, and %traceback
sections are all required to be closed with %end
.
Items that are not required for the given installation run can be omitted.
Lines starting with a pound sign (#
) are treated as comments and are ignored.
If deprecated commands, options, or syntax are used during a kickstart installation, a warning message will be logged to the anaconda log. Since deprecated items are usually removed within a release or two, it makes sense to check the installation log to make sure you haven’t used any of them. When using ksvalidator
, deprecated items will cause an error.
A simple Kickstart for a fully automated Fedora installation.
# use Fedora mirror as installation source, set Fedora version and target architecture url--mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-33&arch=x86_64 # set installation language langen_US.UTF-8 # set keyboard keyboardus # set root password rootpw12345# create a sudo capable user user--namewikipedia-user--password12345--groups=wheel #set timezone timezoneAmerica/New_York # clear all existing storage (!) zerombr clearpart--all--initlabel # automatically create default storage layout autopart %packages # install the Fedora Workstation environment @^FedoraWorkstation # install some package groups @3DPrinting @CDevelopmentToolsandLibraries @SystemTools # install some packages vim git mc %end
A Linux distribution is an operating system made from a software collection that includes the Linux kernel and often a package management system. They are often obtained from the website of each distribution, which are available for a wide variety of systems ranging from embedded devices and personal computers to servers and powerful supercomputers.
Security-Enhanced Linux (SELinux) is a Linux kernel security module that provides a mechanism for supporting access control security policies, including mandatory access controls (MAC).
YaST is a Linux operating system setup and configuration tool.
Advanced package tool, or APT, is a free-software user interface that works with core libraries to handle the installation and removal of software on Debian and Debian-based Linux distributions. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from precompiled files or by compiling source code.
GNU GRUB is a boot loader package from the GNU Project. GRUB is the reference implementation of the Free Software Foundation's Multiboot Specification, which provides a user the choice to boot one of multiple operating systems installed on a computer or select a specific kernel configuration available on a particular operating system's partitions.
The Yellowdog Updater Modified (YUM) is a free and open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager. Though YUM has a command-line interface, several other tools provide graphical user interfaces to YUM functionality.
Installation of a computer program, is the act of making the program ready for execution. Installation refers to the particular configuration of software or hardware with a view to making it usable with the computer. A soft or digital copy of the piece of software (program) is needed to install it. There are different processes of installing a piece of software (program). Because the process varies for each program and each computer, programs often come with an installer, a specialised program responsible for doing whatever is needed for the installation. Installation may be part of a larger software deployment process.
Anaconda is a free and open-source system installer for Linux distributions.
Linuxconf was a system configuration tool for the Linux operating system. It features different user interfaces: a text interface or a graphical user interface in the form of a Web page or native application. Most Linux distributions consider it deprecated compared to other tools such as Webmin, the system-config-* tools on Red Hat Enterprise Linux/Fedora, drakconf on Mandriva, YaST on openSUSE and so on. Linuxconf was deprecated from Red Hat Linux in version 7.1 in April 2001.
Technical variations of Linux distributions include support for different hardware devices and systems or software package configurations. Organizational differences may be motivated by historical reasons. Other criteria include security, including how quickly security upgrades are available; ease of package management; and number of packages available.
This is a comparison of notable free and open-source configuration management software, suitable for tasks like server configuration, orchestration and infrastructure as code typically performed by a system administrator.
Spacewalk is open-source systems management software for system provisioning, patching and configuration licensed under the GNU GPLv2.
Preseeding is a method for automating the installation of the Debian operating system and its derivatives. Answers to installation questions, which would normally be answered interactively by an operator, are predetermined and supplied via a configuration file. This is similar to unattended installations of Windows operating systems using an answer file.
Cobbler is a Linux provisioning server that facilitates and automates the network-based system installation of multiple computer operating systems from a central point using services such as Dynamic Host Configuration Protocol, Trivial File Transfer Protocol, and Domain Name System. It can be configured for Preboot Execution Environment, reinstallations, and virtualized guests using Xen, Kernel-based Virtual Machine or VMware. Cobbler interacts with the koan
program for re-installation and virtualization support. koan
and Cobbler use libvirt to integrate with different virtualization software. Cobbler is able to manage complex network scenarios like bridging on a bonded Ethernet link.
RPM Package Manager (RPM) is a free and open-source package management system. The name RPM refers to the .rpm
file format and the package manager program itself. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the Linux Standard Base.
Fedora Linux is a popular Linux distribution developed by the Fedora Project. Fedora attempts to maintain a six-month release schedule, offering new versions in May and November, although some releases have experienced minor delays.
Dracut is a set of tools that provide enhanced functionality for automating the Linux boot process. The tool named dracut is used to create a Linux boot image (initramfs) by copying tools and files from an installed system and combining it with the Dracut framework, which is usually found in /usr/lib/dracut/modules.d.
firewalld is a firewall management tool for Linux operating systems. It provides firewall features by acting as a front-end for the Linux kernel's netfilter framework. firewalld's current default backend is nftables. Prior to v0.6.0, iptables was the default backend. Through its abstractions, firewalld acts as an alternative to nft and iptables command line programs. The name firewalld adheres to the Unix convention of naming system daemons by appending the letter "d".