Kickstart pour Ubuntu - Infoscience
Is kickstart compatible with Linux?
However, some people want to deploy networks including other GNU/Linux distributions. Red Hat's Kickstart tool is a popular system here. The goal of the Kickstart compatibility project is to allow Kickstart to be used as a layer on top of debian-installer preseeding.
What is a Kickstart installation?
When we perform a Kickstart installation, instead of interactively answering to the system installer questions about the various aspects of the installation process, we pass a series of command/instructions in the so called Kickstart file.
Can Debian & Red Hat kickstart work together?
While Debian's preseed can fully automate the entire Ubuntu installation, the official Red Hat kickstart language cannot. For this reason, Ubuntu kickstart includes a special command preseed which allows using preseed options inside a Kickstart file. Here is an example of mixing kickstart syntax with some preseed syntax.
How do I create a kickstart file in Ubuntu?
Create a kickstart file. Ubuntu includes a graphical utility for creating kickstart files, in the package 'system-config-kickstart'. Create a boot disk with the kickstart file, or make the kickstart file available on the network. Start the kickstart installation by specifying the boot parameter ks=. For example:
Introduction
When we perform a Kickstart installation, instead of interactively answering to the system installer questions about the various aspects of the installation process, we pass a series of command/instructions in the so called Kickstart file. In it, we define what partitions layout we want to use, what locale and timezone to use for the new system, wh
Setting The Installation Source
In the kickstart file above, as a first thing, we defined the installation source. The installation source can be either “local” (a cdrom, for example) or remote, (an installation tree), accessed via one of the supported protocols, such as ftp or http. The latter is exactly what we used in the example: With the url command we specified we want to u
Using Additional Repositories During The Installation
The second line in the kickstart file we used in the example is the following: The repo command is optional: it is used to specify additional repositories to be used during the installation. In the example we added the RPMFusion repository as a software source; it contains packages which, for a reason or another, are not available in the official F
Managing System Users
In the example above we used two commands to manage users in the newly installed system: 1. rootpw 2. user The first command. rootpw is mandatory: it is used to setup the password of the root user. In this case, we passed the --lockoption to the command, which, as you can imagine, is used to lock the password, in order to disable direct root login:
Locale, Keyboard and Timezone Settings
Another, very important part of the system configuration/installation is the localization. In the example we used three directives to setup the system language, the keyboard layout and the system timezone; they are respectively: lang, keyboard and timezone. The langdirective sets both the language to use during the installation, and the system lang
Disk Partitioning and Bootloader Installation
Disk partitioning is probably the most crucial aspect of a system installation. Using the Kickstart file in the example results in the creation of two standard partitions (the EFI partition, and a dedicated “boot” partition), and the installation of the rest of the system on a LVM (Logical Volume Manager) layout. As a first thing, we used the ignor
Specifying The Package List
By using Kickstart, we can specify, in detail, the packages which should be installed in the new system, and those which should be excluded. We list packages inside the %packages section, one per line. The section must be closed with the %endtag: linuxconfig.org
The %pre and %post Sections
Let’s talk about two sections we didn’t use in our example: %pre and %post: these sections inside a Kickstart file can be very useful, since in them we can perform custom actions using one of the available scripting language on the system (Bash is the default). Both sections must be closed with an %end tag, but are executed in different stages of t
Passing The Kickstart File to The Installer
Once our Kickstart file is ready, we must tell the installer where to find it. We do this via the inst.ks boot option. We can, for example, make the Kickstart file available online, than point the installer to it as we did below (we saved the file as test.ks): linuxconfig.org
Conclusions
In this tutorial we learned the Kickstart basics. We saw how to use the appropriate commands to set the installation source, add extra repositories, set the system locale and define a partition layout. We also saw how to specify what packages should be installed and talked about the %pre and %post sections which can be used to script custom actions
Automatiser votre installation avec kickstart
veillance d'installation et de configuration pour les systèmes d'exploitation GNU/Linux RedHat et dérivés. Fiche descriptive. Anaconda (Kickstart). Domaine. |
Efficient large-scale graph processing: optimisations for storage
Many in-memory systems were presented at top tier conferences and every system compared to the previous in algorithm execution time. What is not clearly |