Documentation for a newer release is available. View Latest

킥스타트로 설치 자동화

Kickstart installations offer a means to automate the installation process, either partially or fully. Kickstart files contain answers to all questions normally asked by the installation program, such as what time zone do you want the system to use, how should the drives be partitioned or which packages should be installed. Providing a prepared Kickstart file when the installation begins therefore allows the you to perform the installation automatically, without need for any intervention from the user. This is especially useful when deploying Fedora on a large number of systems at once.

모든 킥스타트 스크립트와 이들 실행 기록 파일은 설치 문제 디버깅을 지원하기 위해 /tmp 디렉토리에 저장됩니다.

킥스타트 설치 수행하는 방법

킥스타트 설치는 로컬 DVD, 로컬 하드 드라이브, 또는 NFS, FTP, HTTP 또는 HTTPS를 통해 수행 할 수 있습니다.

킥스타트를 사용하려면, 다음을 사용하여야 합니다:

  1. 킥스타트 파일을 생성합니다.

  2. 부트 미디어를 생성하거나 설치를 시작하는 데 사용 되어지는 네트워크 부트(PXE) 서버를 구성합니다.

  3. 이동식 미디어, 하드 드라이브 또는 네트워크 위치에서 사용 가능한 킥스타트 파일을 만듭니다.

  4. 설치자로 부팅하고 부트 옵션을 사용하여 설치자에 킥스타트 파일을 찾을 위치를 알려서 킥스타트 설치를 시작합니다.

이 장은 상세히 이런 단계를 설명합니다.

킥스타트 파일 생성하기

The Kickstart file itself is a plain text file, containing keywords listed in Kickstart Syntax Reference, which serve as directions for the installation. Any text editor able to save files as ASCII text (such as Gedit or vim on Linux systems or Notepad on Windows systems) can be used to create and edit Kickstart files.

The recommended approach to creating Kickstart files is to perform a manual installation on one system first. After the installation completes, all choices made during the installation are saved into a file named anaconda-ks.cfg, located in the /root/ directory on the installed system. You can then copy this file, make any changes you need, and use the resulting configuration file in further installations.

킥스타트 파일 생성 할 때에, 다음 사항을 유의하세요:

  • 파운드 기호(#)로 시작하는 줄은 주석으로 처리되거나 무시됩니다.

  • 부분은 순서대로 지정해야 합니다. 부분 내의 항목은 다르게 지정되지 않는 한 특정한 순서일 필요가 없습니다. 올바른 부분 순서는 다음과 같습니다:

    • The command section which contains actual Kickstart commands and options as listed in Kickstart Syntax Reference. Note that some commands, such as install, are mandatory, but most commands are optional.

    • 설치되어 있는 꾸러미와 꾸러미 그룹의 목록이 포함되어 있는 %packages 부분. 자세한 내용을 위해 %packages (필수적인) - 꾸러미 부분을 참고하세요.

    • The %pre and %post sections, containing a pre-installation and post-installation scripts. These two sections can be in any order and are not mandatory. See %pre (optional) - Pre-installation Script and %post (optional) - Post-installation Script for details.

      The %packages, %pre and %post sections must end with %end, otherwise the installation program will refuse the Kickstart file. The main command section has no special ending statement.

  • Omitting any required item results in the installation program prompting the user for an answer to the related item, just as the user would be prompted during a typical installation. Once the answer is given, the installation will continue. Note that if the system you are installing has no display, you will not be able to see the prompt, and the installation will appear to have failed.

킥스타트 파일 확인하기

When creating or customizing your kickstart file, it is useful to verify that it is valid before attempting to use it in an installation. Fedora includes the ksvalidator command line utility which can be used to do this. This tool is a part of the pykickstart package. To install this package, execute the following command:

# dnf install pykickstart

이 꾸러미를 설치 한 후에, 다음 명령을 사용하여 킥스타트 파일을 확인 할 수 있습니다:

$ ksvalidator /path/to/kickstart.ks

확인을 원하는 킥스타트 파일 경로를 갖는 _/path/to/kickstart.ks_로 교체합니다.

이 도구에 대해 더 많은 정보를 위해, ksvalidator(1) man 부분을 참고하세요.

Keep in mind that the validation tool has its limitations. The Kickstart file can be very complicated; ksvalidator can make sure the syntax is correct and that the file does not include removed options, but it cannot guarantee the installation will be successful. It also does not attempt to validate the %pre, %post and %packages sections of the Kickstart file.

킥스타트 파일을 사용 가능하도록 만들기

한번 킥스타트 파일을 생성하면, 다음 위치 중 하나에서 이를 배치 할 수 있습니다:

  • 설치 시스템에 연결된 DVD 또는 USB 플래시 드라이브와 같은 이동형 미디어 에서

  • 설치 시스템에 연결된 하드 드라이브 에서

  • 설치 시스템에서 접근 가능한 네트워크 공유 에서

Normally, a Kickstart file is copied to removable media or a hard drive, or made available on the network. Placing the file in a network location complements the usual approach to Kickstart installations, which is also network-based: the system is booted using a PXE server, the Kickstart file is downloaded from a network share, and software packages specified in the file are downloaded from remote repositories.

설치 서버 설정은 네트워크-기반을 위한 설치 준비에 대해 몇 가지 추가적인 정보를 제공합니다.

킥스타트 설치 시작하기

Once you have everything ready - you have created a valid Kickstart file and you have either local boot media or a PXE server available, you can start the Kickstart installation. You need to use the inst.ks= boot option either in the boot menu (when booting from local media), or add this option to your PXE server configuration. For information about boot options used in Kickstart installations, see Kickstart Boot Options.